presencesettingsui/inc/psuigsplugincontainer.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:23:14 +0100
branchRCL_3
changeset 18 fbd2e7cec7ef
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201027 Kit: 201035

/*
* Copyright (c) 2006 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:    Header for Presence Settings UI GS plugin container.
*
*/




#ifndef PSUIGSPLUGINCONTAINER_H
#define PSUIGSPLUGINCONTAINER_H

// INCLUDES
#include <eikmobs.h>
#include <gsbasecontainer.h>

// FORWARD DECLARATIONS
class CPSUIGSPlugin;

// CLASS DECLARATION

/**
* CPSUIGSPluginContainer container class
* @since Series60_3.2
*/
class CPSUIGSPluginContainer : public CGSBaseContainer,
                               public MEikMenuObserver
    {
    public: // Constructors and destructor
        
        /**
        * Default constructor.
        */        
        CPSUIGSPluginContainer( CPSUIGSPlugin* aView );

        /**
        * Destructor.
        */
        ~CPSUIGSPluginContainer();
    
    private: // Functions from base classes
        
        /**
        * From CGSBaseContainer
        * See base class.        
        */    
        void ConstructListBoxL( TInt aResLbxId );

        /**
        * From CGSBaseContainer
        * See base class.        
        */    
        TKeyResponse OfferKeyEventL( 
            const TKeyEvent& aKeyEvent,
            TEventCode aType );        

        /**
        * From CCoeControl
        * See base class.        
        */ 
        void GetHelpContext( TCoeHelpContext& aContext ) const;
        
        /**
         * From MEikMenuObserver
         */
        void SetEmphasis( CCoeControl* /*aMenuControl*/, TBool /*aEmphasis*/ ){};
      
        
        /**
         * From MEikMenuObserver
         */
        void ProcessCommandL( TInt /*aCommandId*/ ){};
        
    private: // New

        /**
        * Sets empty texts to listbox
        *
        * @param none
        */
        void SetEmptyTextsToListboxL();

    private: // Constructor
    
        /**
        * Symbian OS constructor.
        *
        * @param aRect Listbox's rect.
        */
        void ConstructL( const TRect& aRect );
        
    private: // Data
    
        // Handle to view        
        CPSUIGSPlugin* iView; // not owned
        
        /**
         * Menubar.
         * Own.
         */
        CEikMenuBar* iEikMenuBar;
        
#ifdef _DEBUG
    friend class UT_CPSUIGSPluginContainer;
#endif
    };

#endif //PSUIGSPLUGINCONTAINER_H   
// End of File