16 */ |
16 */ |
17 |
17 |
18 #ifndef C_RADIOSETTINGSIMP_H |
18 #ifndef C_RADIOSETTINGSIMP_H |
19 #define C_RADIOSETTINGSIMP_H |
19 #define C_RADIOSETTINGSIMP_H |
20 |
20 |
|
21 // System includes |
|
22 #include <barsc.h> |
21 // User includes |
23 // User includes |
22 #include "cradiosettings.h" |
24 #include "cradiosettings.h" |
23 |
25 |
24 // Forward declarations |
26 // Forward declarations |
25 class CCoeEnv; |
|
26 class CRadioApplicationSettings; |
27 class CRadioApplicationSettings; |
27 class CRadioEngineSettings; |
28 class CRadioEngineSettings; |
28 class CRadioRepositoryManager; |
|
29 class RConeResourceLoader; |
29 class RConeResourceLoader; |
|
30 |
|
31 // The name of the radio settings resource file. |
|
32 _LIT( KRadioSettingsResourceFile, "fmradioenginesettings.rsc" ); |
30 |
33 |
31 /** |
34 /** |
32 * Manages persistent application settings. |
35 * Manages persistent application settings. |
33 * |
36 * |
34 * Exposes access to the underlying settings implementations. |
37 * Exposes access to the underlying settings implementations. |
36 NONSHARABLE_CLASS( CRadioSettingsImp ) : public CRadioSettings |
39 NONSHARABLE_CLASS( CRadioSettingsImp ) : public CRadioSettings |
37 { |
40 { |
38 |
41 |
39 public: |
42 public: |
40 |
43 |
41 static CRadioSettingsImp* NewL( CCoeEnv* aCoeEnv = NULL ); |
44 static CRadioSettingsImp* NewL(); |
42 |
45 |
43 ~CRadioSettingsImp(); |
46 ~CRadioSettingsImp(); |
44 |
47 |
|
48 RFs& FsSession(); |
|
49 |
45 // from base class CRadioSettings |
50 // from base class CRadioSettings |
46 |
51 |
47 TBool IsRegionAllowed( TRadioRegion aRegionId ) const; |
52 TBool IsRegionAllowed( TRadioRegion aRegionId ) const; |
48 MRadioApplicationSettings& ApplicationSettings() const; |
53 MRadioApplicationSettings& ApplicationSettings() const; |
49 MRadioEngineSettings& EngineSettings() const; |
54 MRadioEngineSettings& EngineSettings() const; |
50 MRadioSettingsSetter& RadioSetter() const; |
55 MRadioSettingsSetter& RadioSetter() const; |
51 CRadioRepositoryManager& Repository() const; |
|
52 void ResolveDriveL( TFileName& aFileName, const TDesC& aPath ); |
56 void ResolveDriveL( TFileName& aFileName, const TDesC& aPath ); |
53 |
57 |
54 private: |
58 private: |
55 |
59 |
56 CRadioSettingsImp(); |
60 CRadioSettingsImp(); |
57 |
61 |
58 void ConstructL( CCoeEnv* aCoeEnv ); |
62 void ConstructL(); |
59 |
|
60 /** |
|
61 * Loads the resources required by the settings. |
|
62 */ |
|
63 void LoadResourcesL(); |
|
64 |
63 |
65 private: // data |
64 private: // data |
66 |
|
67 /** |
|
68 * The central repository manager. |
|
69 * Own. |
|
70 */ |
|
71 CRadioRepositoryManager* iRepositoryManager; |
|
72 |
|
73 /** |
|
74 * Resource loader for the settings resources. |
|
75 * Own. |
|
76 */ |
|
77 RConeResourceLoader* iResourceLoader; |
|
78 |
65 |
79 /** |
66 /** |
80 * Implementation of the application settings. |
67 * Implementation of the application settings. |
81 * Own |
68 * Own |
82 */ |
69 */ |