6 Copyright (C) 2011 Luciano Montanaro <mikelima@cirulla.net>
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; see the file COPYING. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA.
25 #include <QMainWindow>
32 class StationView : public QMainWindow
36 explicit StationView(QWidget *parent = 0);
38 void setStation(const QString &station);
39 void setBaseUrl(const QUrl &theBaseUrl);
42 void aboutTriggered(void);
43 void settingsChangeRequested(void);
44 void stationListSelectTriggered(void);
47 void updateView(const QByteArray &page);
50 void changeView(void);
51 void viewSelectionGroupTriggered(QAction *);
59 QAction *showArrivalsAction;
60 QAction *showDeparturesAction;
61 QAction *showSettingsAction;
62 QAction *showStationListSelectAction;
63 QAction *showAboutAction;
64 QActionGroup *viewSelectionGroup;
70 #endif // STATIONVIEW_H