radioengine/settings/api/cradiosettings.h
branchRCL_3
changeset 19 cce62ebc198e
equal deleted inserted replaced
18:1a6714c53019 19:cce62ebc198e
       
     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_RADIOSETTINGS_H
       
    19 #define C_RADIOSETTINGS_H
       
    20 
       
    21 // System includes
       
    22 #include <e32base.h>
       
    23 
       
    24 // User includes
       
    25 #include "radioengine.hrh"
       
    26 
       
    27 // Forward declarations
       
    28 class CCoeEnv;
       
    29 class MRadioApplicationSettings;
       
    30 class MRadioEngineSettings;
       
    31 class MRadioSettingsSetter;
       
    32 class CRadioRepositoryManager;
       
    33 class MRadioPresetSettings;
       
    34 class RFs;
       
    35 
       
    36 /**
       
    37  * Manages persistent application settings.
       
    38  *
       
    39  * Exposes access to the underlying settings implementations.
       
    40  */
       
    41 NONSHARABLE_CLASS( CRadioSettings ) : public CBase
       
    42     {
       
    43 
       
    44 public:
       
    45 
       
    46     IMPORT_C static CRadioSettings* NewL();
       
    47 
       
    48     IMPORT_C virtual ~CRadioSettings();
       
    49 
       
    50     /**
       
    51      * Determines if region is allowed.
       
    52      */
       
    53     virtual TBool IsRegionAllowed( TRadioRegion aRegionId ) const = 0;
       
    54 
       
    55     /**
       
    56      * Returns the implemented application settings interface.
       
    57      *
       
    58      * @return  The implemented application settings interface.
       
    59      */
       
    60     virtual MRadioApplicationSettings& ApplicationSettings() const = 0;
       
    61 
       
    62     /**
       
    63      * Returns the implemented radio settings interface.
       
    64      *
       
    65      * @return  The implemented radio settings interface.
       
    66      */
       
    67     virtual MRadioEngineSettings& EngineSettings() const = 0;
       
    68 
       
    69     /**
       
    70      * Returns the implemented radio settings interface.
       
    71      *
       
    72      * @return  The implemented setter interface for radio settings.
       
    73      */
       
    74     virtual MRadioSettingsSetter& RadioSetter() const = 0;
       
    75 
       
    76     /**
       
    77      * Resolves the most recently updated location for a file.
       
    78      *
       
    79      * @param   aFileName      The file name to be searched.
       
    80      *                         On return, will contain the full path to the file.
       
    81      * @param   aPath          The absolute path to the file. If drive letter is
       
    82      *                         given then that one will be first tried.
       
    83      */
       
    84     virtual void ResolveDriveL( TFileName& aFileName, const TDesC& aPath ) = 0;
       
    85 
       
    86     };
       
    87 
       
    88 #endif // C_RADIOSETTINGS_H
       
    89