equal
deleted
inserted
replaced
25 #include <QSharedPointer> |
25 #include <QSharedPointer> |
26 |
26 |
27 // Forward declarations |
27 // Forward declarations |
28 class RadioWindow; |
28 class RadioWindow; |
29 class RadioStationModel; |
29 class RadioStationModel; |
|
30 class XQSettingsManager; |
30 |
31 |
31 #ifdef BUILD_WIN32 |
32 #ifdef BUILD_WIN32 |
32 class Win32Window; |
33 class Win32Window; |
33 #endif // BUILD_WIN32 |
34 #endif // BUILD_WIN32 |
34 |
35 |
44 |
45 |
45 ~RadioApplication(); |
46 ~RadioApplication(); |
46 |
47 |
47 private slots: |
48 private slots: |
48 |
49 |
|
50 void checkOfflineMode(); |
|
51 void handleOfflineQueryAnswer(); |
|
52 |
|
53 private: |
|
54 |
49 void init(); |
55 void init(); |
|
56 bool isInOfflineMode() const; |
|
57 void askOfflineModePermission( const QString& question ); |
50 |
58 |
51 private: // data |
59 private: // data |
52 |
60 |
53 #ifdef BUILD_WIN32 |
61 #ifdef BUILD_WIN32 |
54 QScopedPointer<Win32Window> mWin32Window; |
62 QScopedPointer<Win32Window> mWin32Window; |
55 #endif // BUILD_WIN32 |
63 #endif // BUILD_WIN32 |
56 |
64 |
57 /** |
65 /** |
58 * Application main window |
66 * Application main window |
59 * Own |
67 * Own |
60 */ |
68 */ |
61 QScopedPointer<RadioWindow> mMainWindow; |
69 QScopedPointer<RadioWindow> mMainWindow; |
|
70 |
|
71 /** |
|
72 * Pointer to settings manager |
|
73 * Own. |
|
74 */ |
|
75 XQSettingsManager* mSettingsManager; |
62 |
76 |
63 }; |
77 }; |
64 |
78 |
65 #endif // _RADIOAPPLICATION_H_ |
79 #endif // _RADIOAPPLICATION_H_ |