author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 18 Aug 2010 09:49:03 +0300 | |
changeset 41 | 3a6b55c6390c |
parent 24 | 6df133bd92e1 |
child 51 | bbebb0235466 |
permissions | -rw-r--r-- |
24 | 1 |
/* |
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of "Eclipse Public License v1.0" |
|
6 |
* which accompanies this distribution, and is available |
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
* |
|
9 |
* Initial Contributors: |
|
10 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
* Description: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#ifndef _RADIOAPPLICATION_H_ |
|
19 |
#define _RADIOAPPLICATION_H_ |
|
20 |
||
21 |
// System includes |
|
22 |
#include <HbApplication> |
|
23 |
||
24 |
//#define QT_SHAREDPOINTER_TRACK_POINTERS // Debugging support for QSharedPointer |
|
25 |
#include <QSharedPointer> |
|
26 |
||
27 |
// Forward declarations |
|
28 |
class RadioWindow; |
|
29 |
class RadioStationModel; |
|
41
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
30 |
class XQSettingsManager; |
24 | 31 |
|
32 |
#ifdef BUILD_WIN32 |
|
33 |
class Win32Window; |
|
34 |
#endif // BUILD_WIN32 |
|
35 |
||
36 |
// Class declaration |
|
37 |
class RadioApplication : public HbApplication |
|
38 |
{ |
|
39 |
Q_OBJECT |
|
40 |
Q_DISABLE_COPY( RadioApplication ) |
|
41 |
||
42 |
public: |
|
43 |
||
44 |
explicit RadioApplication( int &argc, char *argv[] ); |
|
45 |
||
46 |
~RadioApplication(); |
|
47 |
||
48 |
private slots: |
|
49 |
||
41
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
50 |
void checkOfflineMode(); |
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
51 |
void handleOfflineQueryAnswer(); |
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
52 |
|
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
53 |
private: |
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
54 |
|
24 | 55 |
void init(); |
41
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
56 |
bool isInOfflineMode() const; |
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
57 |
void askOfflineModePermission( const QString& question ); |
24 | 58 |
|
59 |
private: // data |
|
60 |
||
61 |
#ifdef BUILD_WIN32 |
|
41
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
62 |
QScopedPointer<Win32Window> mWin32Window; |
24 | 63 |
#endif // BUILD_WIN32 |
64 |
||
65 |
/** |
|
66 |
* Application main window |
|
67 |
* Own |
|
68 |
*/ |
|
41
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
69 |
QScopedPointer<RadioWindow> mMainWindow; |
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
70 |
|
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
71 |
/** |
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
72 |
* Pointer to settings manager |
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
73 |
* Own. |
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
74 |
*/ |
3a6b55c6390c
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
75 |
XQSettingsManager* mSettingsManager; |
24 | 76 |
|
77 |
}; |
|
78 |
||
79 |
#endif // _RADIOAPPLICATION_H_ |