radioengine/settings/inc/cradiosettingsimp.h
changeset 13 46974bebc798
child 28 075425b8d9a4
equal deleted inserted replaced
0:f3d95d9c00ab 13:46974bebc798
       
     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 C_RADIOSETTINGSIMP_H
       
    19 #define C_RADIOSETTINGSIMP_H
       
    20 
       
    21 // User includes
       
    22 #include "cradiosettings.h"
       
    23 
       
    24 // Forward declarations
       
    25 class CCoeEnv;
       
    26 class CRadioApplicationSettings;
       
    27 class CRadioEngineSettings;
       
    28 class CRadioRepositoryManager;
       
    29 class RConeResourceLoader;
       
    30 
       
    31 /**
       
    32  * Manages persistent application settings.
       
    33  *
       
    34  * Exposes access to the underlying settings implementations.
       
    35  */
       
    36 NONSHARABLE_CLASS( CRadioSettingsImp ) : public CRadioSettings
       
    37     {
       
    38 
       
    39 public:
       
    40 
       
    41     static CRadioSettingsImp* NewL( CCoeEnv* aCoeEnv = NULL );
       
    42 
       
    43     ~CRadioSettingsImp();
       
    44 
       
    45 // from base class CRadioSettings
       
    46 
       
    47     TBool IsRegionAllowed( TRadioRegion aRegionId ) const;
       
    48     MRadioApplicationSettings& ApplicationSettings() const;
       
    49     MRadioEngineSettings& EngineSettings() const;
       
    50     MRadioSettingsSetter& RadioSetter() const;
       
    51     CRadioRepositoryManager& Repository() const;
       
    52     void ResolveDriveL( TFileName& aFileName, const TDesC& aPath );
       
    53 
       
    54 private:
       
    55 
       
    56     CRadioSettingsImp();
       
    57 
       
    58     void ConstructL( CCoeEnv* aCoeEnv );
       
    59 
       
    60     /**
       
    61      * Loads the resources required by the settings.
       
    62      */
       
    63     void LoadResourcesL();
       
    64 
       
    65 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 
       
    79     /**
       
    80      * Implementation of the application settings.
       
    81      * Own
       
    82      */
       
    83     CRadioApplicationSettings*  iApplicationSettings;
       
    84 
       
    85     /**
       
    86      * Implementation of the radio settings.
       
    87      * Own
       
    88      */
       
    89     CRadioEngineSettings*       iEngineSettings;
       
    90 
       
    91     };
       
    92 
       
    93 #endif // C_RADIOSETTINGSIMP_H
       
    94