fmradio/fmradio/inc/fmradioidlecontroller.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 00:17:10 +0200
changeset 0 f3d95d9c00ab
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  fmradio idle area controller
*
*/

#ifndef CMRADIOIDLECONTROLLER_H
#define CMRADIOIDLECONTROLLER_H

// INCLUDES
#include <e32base.h> 

// FORWARD DECLARATIONS
class MFMRadioIdleControlInterface;
// CONSTANTS

/**
 * fmradio idle area controller
 */
class CFMRadioIdleController : public CBase
    {

    public:         
        /**
         * Two-phased constructor.
        */
        static CFMRadioIdleController* NewL();
		
        /**
         * Destructor.
         */
        virtual ~CFMRadioIdleController();
            
    public: // New functions
        /**
         * Adds new item to control.
         * @aControl control to add
         */
        void AddControlItem( const MFMRadioIdleControlInterface& aControl );
        
        /**
         * Shows a control and hides all other controls
         * @param aControl control to show
         */
        void ShowControl( const MFMRadioIdleControlInterface& aControl );
        
        /**
         * Deactivates all controlled items
         */
        void DeactivateControls();
        
        /**
         * Hide all controlled items
         */
        void HideAllControls();
        
    private:
        /**
         * C++ default constructor.
         */        
        CFMRadioIdleController();

        /**
        * EPOC default constructor.
        */        
        void ConstructL();
        
        
    private: // data
        // array of controlled items
        RPointerArray<MFMRadioIdleControlInterface> iControlArray;


    };


#endif // CMRADIOIDLECONTROLLER_H