radioengine/settings/inc/cradiosettingsimp.h
changeset 28 075425b8d9a4
parent 13 46974bebc798
equal deleted inserted replaced
24:6df133bd92e1 28:075425b8d9a4
    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      */
    85     /**
    72     /**
    86      * Implementation of the radio settings.
    73      * Implementation of the radio settings.
    87      * Own
    74      * Own
    88      */
    75      */
    89     CRadioEngineSettings*       iEngineSettings;
    76     CRadioEngineSettings*       iEngineSettings;
       
    77     
       
    78     /**
       
    79      * File session.
       
    80      * Own
       
    81      */
       
    82     RFs*                        iFsSession; 
    90 
    83 
    91     };
    84     };
    92 
    85 
    93 #endif // C_RADIOSETTINGSIMP_H
    86 #endif // C_RADIOSETTINGSIMP_H
    94 
    87