17 |
17 |
18 #ifndef RADIOPRESETSTORAGE_P_H_ |
18 #ifndef RADIOPRESETSTORAGE_P_H_ |
19 #define RADIOPRESETSTORAGE_P_H_ |
19 #define RADIOPRESETSTORAGE_P_H_ |
20 |
20 |
21 // System includes |
21 // System includes |
22 #ifndef COMPILE_WITH_NEW_PRESET_UTILITY |
|
23 # include <RadioPresetUtility.h> |
|
24 #endif // COMPILE_WITH_NEW_PRESET_UTILITY |
|
25 |
|
26 #include <QScopedPointer> |
22 #include <QScopedPointer> |
27 #include <e32std.h> |
|
28 |
23 |
29 // User includes |
24 // User includes |
30 |
25 |
31 // Forward declarations |
26 // Forward declarations |
32 #ifdef COMPILE_WITH_NEW_PRESET_UTILITY |
27 class CPresetUtility; |
33 class CPresetUtility; |
|
34 typedef QScopedPointer<CPresetUtility> PresetUtilityPtr; |
|
35 #else |
|
36 class CRadioFmPresetUtility; |
|
37 typedef QScopedPointer<CRadioFmPresetUtility> PresetUtilityPtr; |
|
38 #endif // COMPILE_WITH_NEW_PRESET_UTILITY |
|
39 |
28 |
40 class RadioPresetStoragePrivate |
29 class RadioPresetStoragePrivate |
41 #ifndef COMPILE_WITH_NEW_PRESET_UTILITY |
|
42 : public MRadioPresetObserver |
|
43 #endif // COMPILE_WITH_NEW_PRESET_UTILITY |
|
44 { |
30 { |
45 public: |
31 public: |
46 |
32 |
47 RadioPresetStoragePrivate(); |
33 RadioPresetStoragePrivate(); |
48 ~RadioPresetStoragePrivate(); |
34 ~RadioPresetStoragePrivate(); |
49 |
35 |
50 bool init(); |
36 bool init(); |
51 |
37 |
52 #ifndef COMPILE_WITH_NEW_PRESET_UTILITY |
|
53 private: |
|
54 void MrpeoPresetChanged( TPresetChangeEvent /*aChange*/, TInt /*aIndex*/ ) {} |
|
55 #endif // COMPILE_WITH_NEW_PRESET_UTILITY |
|
56 |
|
57 public: // data |
38 public: // data |
58 |
39 |
59 PresetUtilityPtr mPresetUtility; |
40 QScopedPointer<CPresetUtility> mPresetUtility; |
60 |
41 |
61 }; |
42 }; |
62 |
43 |
63 #endif // RADIOPRESETSTORAGE_P_H_ |
44 #endif // RADIOPRESETSTORAGE_P_H_ |