radioengine/settings/inc/cradiosettingsimp.h
branchRCL_3
changeset 46 93c594350b9a
parent 45 cce62ebc198e
child 52 5a31ddd3bfd9
equal deleted inserted replaced
45:cce62ebc198e 46:93c594350b9a
     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 // System includes
       
    22 #include <barsc.h>
       
    23 // User includes
       
    24 #include "cradiosettings.h"
       
    25 
       
    26 // Forward declarations
       
    27 class CRadioApplicationSettings;
       
    28 class CRadioEngineSettings;
       
    29 class RConeResourceLoader;
       
    30 
       
    31 // The name of the radio settings resource file.
       
    32 _LIT( KRadioSettingsResourceFile, "fmradioenginesettings.rsc" );
       
    33 
       
    34 /**
       
    35  * Manages persistent application settings.
       
    36  *
       
    37  * Exposes access to the underlying settings implementations.
       
    38  */
       
    39 NONSHARABLE_CLASS( CRadioSettingsImp ) : public CRadioSettings
       
    40     {
       
    41 
       
    42 public:
       
    43 
       
    44     static CRadioSettingsImp* NewL();
       
    45 
       
    46     ~CRadioSettingsImp();
       
    47 
       
    48     RFs& FsSession();
       
    49     
       
    50 // from base class CRadioSettings
       
    51 
       
    52     TBool IsRegionAllowed( TRadioRegion aRegionId ) const;
       
    53     MRadioApplicationSettings& ApplicationSettings() const;
       
    54     MRadioEngineSettings& EngineSettings() const;
       
    55     MRadioSettingsSetter& RadioSetter() const;
       
    56     void ResolveDriveL( TFileName& aFileName, const TDesC& aPath );
       
    57 
       
    58 private:
       
    59 
       
    60     CRadioSettingsImp();
       
    61 
       
    62     void ConstructL();
       
    63 
       
    64 private: // data
       
    65 
       
    66     /**
       
    67      * Implementation of the application settings.
       
    68      * Own
       
    69      */
       
    70     CRadioApplicationSettings*  iApplicationSettings;
       
    71 
       
    72     /**
       
    73      * Implementation of the radio settings.
       
    74      * Own
       
    75      */
       
    76     CRadioEngineSettings*       iEngineSettings;
       
    77     
       
    78     /**
       
    79      * File session.
       
    80      * Own
       
    81      */
       
    82     RFs*                        iFsSession; 
       
    83 
       
    84     };
       
    85 
       
    86 #endif // C_RADIOSETTINGSIMP_H
       
    87