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