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 <QApplication>
27 #include <QGeoPositionInfoSource>
29 class QNetworkAccessManager;
33 class StationListView;
34 class StationListModel;
38 class App : public QObject
42 explicit App(QObject *parent = 0);
45 static QString dataDir(void);
50 void queryStation(const QString &station);
51 void downloadFinished(void);
52 void showAboutDialog(void);
53 void showSettingsDialog(void);
54 void showStationSelectView(void);
55 void setShowingArrivals(bool);
57 void saveSettings(void);
58 void readSettings(void);
60 QNetworkAccessManager *accessManager;
61 QNetworkReply *stationQueryReply;
62 QGeoPositionInfoSource *positionInfoSource;
63 StationView *stationView;
64 StationListModel *stationListModel;
65 StationListView *stationListView;
72 #endif // APPLICATION_H