presencesettingsui/inc/psuigsplugincontainer.h
branchRCL_3
changeset 34 2669f8761a99
parent 31 2580314736af
child 35 fbd2e7cec7ef
equal deleted inserted replaced
31:2580314736af 34:2669f8761a99
     1 /*
       
     2 * Copyright (c) 2006 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:    Header for Presence Settings UI GS plugin container.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef PSUIGSPLUGINCONTAINER_H
       
    22 #define PSUIGSPLUGINCONTAINER_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <eikmobs.h>
       
    26 #include <gsbasecontainer.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CPSUIGSPlugin;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 * CPSUIGSPluginContainer container class
       
    35 * @since Series60_3.2
       
    36 */
       
    37 class CPSUIGSPluginContainer : public CGSBaseContainer,
       
    38                                public MEikMenuObserver
       
    39     {
       
    40     public: // Constructors and destructor
       
    41         
       
    42         /**
       
    43         * Default constructor.
       
    44         */        
       
    45         CPSUIGSPluginContainer( CPSUIGSPlugin* aView );
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         ~CPSUIGSPluginContainer();
       
    51     
       
    52     private: // Functions from base classes
       
    53         
       
    54         /**
       
    55         * From CGSBaseContainer
       
    56         * See base class.        
       
    57         */    
       
    58         void ConstructListBoxL( TInt aResLbxId );
       
    59 
       
    60         /**
       
    61         * From CGSBaseContainer
       
    62         * See base class.        
       
    63         */    
       
    64         TKeyResponse OfferKeyEventL( 
       
    65             const TKeyEvent& aKeyEvent,
       
    66             TEventCode aType );        
       
    67 
       
    68         /**
       
    69         * From CCoeControl
       
    70         * See base class.        
       
    71         */ 
       
    72         void GetHelpContext( TCoeHelpContext& aContext ) const;
       
    73         
       
    74         /**
       
    75          * From MEikMenuObserver
       
    76          */
       
    77         void SetEmphasis( CCoeControl* /*aMenuControl*/, TBool /*aEmphasis*/ ){};
       
    78       
       
    79         
       
    80         /**
       
    81          * From MEikMenuObserver
       
    82          */
       
    83         void ProcessCommandL( TInt /*aCommandId*/ ){};
       
    84         
       
    85     private: // New
       
    86 
       
    87         /**
       
    88         * Sets empty texts to listbox
       
    89         *
       
    90         * @param none
       
    91         */
       
    92         void SetEmptyTextsToListboxL();
       
    93 
       
    94     private: // Constructor
       
    95     
       
    96         /**
       
    97         * Symbian OS constructor.
       
    98         *
       
    99         * @param aRect Listbox's rect.
       
   100         */
       
   101         void ConstructL( const TRect& aRect );
       
   102         
       
   103     private: // Data
       
   104     
       
   105         // Handle to view        
       
   106         CPSUIGSPlugin* iView; // not owned
       
   107         
       
   108         /**
       
   109          * Menubar.
       
   110          * Own.
       
   111          */
       
   112         CEikMenuBar* iEikMenuBar;
       
   113         
       
   114 #ifdef _DEBUG
       
   115     friend class UT_CPSUIGSPluginContainer;
       
   116 #endif
       
   117     };
       
   118 
       
   119 #endif //PSUIGSPLUGINCONTAINER_H   
       
   120 // End of File