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 RADIOSETTINGS_H_ |
|
19 #define RADIOSETTINGS_H_ |
|
20 |
|
21 // System includes |
|
22 #include <QtGlobal> |
|
23 #include <QScopedPointer> |
|
24 |
|
25 // User includes |
|
26 #include "radiosettingsif.h" |
|
27 |
|
28 // Forward declarations |
|
29 class RadioSettingsPrivate; |
|
30 |
|
31 // Class declaration |
|
32 class RadioSettings : public RadioSettingsIf |
|
33 { |
|
34 Q_DECLARE_PRIVATE_D( d_ptr.data(), RadioSettings ) |
|
35 Q_DISABLE_COPY( RadioSettings ) |
|
36 |
|
37 friend class RadioEngineWrapperPrivate; |
|
38 |
|
39 public: |
|
40 |
|
41 virtual ~RadioSettings(); |
|
42 |
|
43 private: |
|
44 |
|
45 RadioSettings(); |
|
46 |
|
47 // from base class RadioSettingsIf |
|
48 |
|
49 bool isFirstTimeStart(); |
|
50 void setFirstTimeStartPerformed( bool firstTimeStartPerformed ); |
|
51 bool showFavorites() const; |
|
52 void setShowFavorites( bool showFavorites ); |
|
53 bool toggleShowFavorites(); |
|
54 |
|
55 private: // data |
|
56 |
|
57 /** |
|
58 * Unmodifiable pointer to the private implementation |
|
59 */ |
|
60 const QScopedPointer<RadioSettingsPrivate> d_ptr; |
|
61 |
|
62 }; |
|
63 |
|
64 #endif // RADIOSETTINGS_H_ |
|