mmserv/radioutility/fmpresetutility/src/RadioFmPresetRadioSettings.h
changeset 12 5a06f39ad45b
parent 0 71ca22bcf22a
child 14 80975da52420
equal deleted inserted replaced
0:71ca22bcf22a 12:5a06f39ad45b
     1 /*
       
     2 * Copyright (c) 2005 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:  Contains implementation of the TRadioSettings class, which holds 
       
    15 *                       the RadioFmPresetUtility settings.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef RADIOFMPRESETRADIOSETTINGS_H
       
    21 #define RADIOFMPRESETRADIOSETTINGS_H
       
    22 
       
    23 
       
    24 // CLASS DECLARATION
       
    25 class CRadioFmPresetUtility;
       
    26 
       
    27 
       
    28 /**
       
    29 *  TRadioSettings class.
       
    30 *  Maintain the radio setting data.
       
    31 * 
       
    32 */
       
    33 class TRadioSettings
       
    34     {
       
    35     public:
       
    36         /**  
       
    37         * default constructor.
       
    38         */
       
    39        TRadioSettings();
       
    40    
       
    41         /**
       
    42         * return current preset number.
       
    43         * @since Series 60 2.7
       
    44         * @return current preset number
       
    45         */
       
    46        TInt CurrentPreset() const; 
       
    47         /**
       
    48         * return current frequency.
       
    49         * @since Series 60 2.7
       
    50         * @return current frequency
       
    51         */
       
    52        TInt Frequency() const; 
       
    53         /**
       
    54         * check if radio is on.
       
    55         * @since Series 60 2.7
       
    56         * @return true/false
       
    57         */
       
    58        TBool IsRadioOn() const;
       
    59         /**
       
    60         * Set current preset number.
       
    61         * @since Series 60 2.7
       
    62         * @return current preset number
       
    63         */
       
    64        void SetCurrentPreset(const TInt aChannel);
       
    65         /**
       
    66         * set current frequency .
       
    67         * @since Series 60 2.7
       
    68         * @param aFrequency the frequency to be set
       
    69         * @return none
       
    70         */
       
    71        void SetFrequency(const TInt aFrequency);
       
    72         /**
       
    73         * set radio on.
       
    74         * @since Series 60 2.7
       
    75         * @return none
       
    76         */
       
    77        void SetRadioOn();
       
    78         /**
       
    79         * set radio off.
       
    80         * @since Series 60 2.7
       
    81         * @return none
       
    82         */
       
    83        void SetRadioOff();
       
    84  
       
    85     private: 
       
    86         TInt iCurrentPreset; 
       
    87         /// current frequency
       
    88         TInt iFrequency; 
       
    89         //  radio on/off flag
       
    90         TBool iRadioOn;
       
    91     };
       
    92 
       
    93 #endif  // FMPRESETRADIOSETTINGS_H
       
    94 
       
    95 // End of File