fmradio/fmradio/inc/fmradioidlecontroller.h
branchRCL_3
changeset 19 cce62ebc198e
parent 18 1a6714c53019
child 20 93c594350b9a
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:  fmradio idle area controller
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMRADIOIDLECONTROLLER_H
       
    19 #define CMRADIOIDLECONTROLLER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h> 
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class MFMRadioIdleControlInterface;
       
    26 // CONSTANTS
       
    27 
       
    28 /**
       
    29  * fmradio idle area controller
       
    30  */
       
    31 class CFMRadioIdleController : public CBase
       
    32     {
       
    33 
       
    34     public:         
       
    35         /**
       
    36          * Two-phased constructor.
       
    37         */
       
    38         static CFMRadioIdleController* NewL();
       
    39 		
       
    40         /**
       
    41          * Destructor.
       
    42          */
       
    43         virtual ~CFMRadioIdleController();
       
    44             
       
    45     public: // New functions
       
    46         /**
       
    47          * Adds new item to control.
       
    48          * @aControl control to add
       
    49          */
       
    50         void AddControlItem( const MFMRadioIdleControlInterface& aControl );
       
    51         
       
    52         /**
       
    53          * Shows a control and hides all other controls
       
    54          * @param aControl control to show
       
    55          */
       
    56         void ShowControl( const MFMRadioIdleControlInterface& aControl );
       
    57         
       
    58         /**
       
    59          * Deactivates all controlled items
       
    60          */
       
    61         void DeactivateControls();
       
    62         
       
    63         /**
       
    64          * Hide all controlled items
       
    65          */
       
    66         void HideAllControls();
       
    67         
       
    68     private:
       
    69         /**
       
    70          * C++ default constructor.
       
    71          */        
       
    72         CFMRadioIdleController();
       
    73 
       
    74         /**
       
    75         * EPOC default constructor.
       
    76         */        
       
    77         void ConstructL();
       
    78         
       
    79         
       
    80     private: // data
       
    81         // array of controlled items
       
    82         RPointerArray<MFMRadioIdleControlInterface> iControlArray;
       
    83 
       
    84 
       
    85     };
       
    86 
       
    87 
       
    88 #endif // CMRADIOIDLECONTROLLER_H