gssettingsuis/Gs/GSPrslnPlugin/inc/GSPrslnPlugin.h
branchRCL_3
changeset 24 8ee96d21d9bf
parent 23 8bda91a87a00
child 25 7e0eff37aedb
equal deleted inserted replaced
23:8bda91a87a00 24:8ee96d21d9bf
     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:    Header file for plugin.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GSPRSLNPLUGIN_H
       
    20 #define GSPRSLNPLUGIN_H
       
    21 
       
    22 // Includes
       
    23 #include <GSParentPlugin.h>
       
    24 #include <GSFWViewUIDs.h>
       
    25 
       
    26 #include <aknview.h>
       
    27 #include <eikclb.h>
       
    28 #include <eikmenup.h>
       
    29 
       
    30 
       
    31 // Classes referenced
       
    32 class CAknViewAppUi;
       
    33 class RConeResourceLoader;
       
    34 class CGSTabHelper;
       
    35 
       
    36 // Constants
       
    37 _LIT( KGSPrslnPluginResourceFileName, "z:GSPrslnPluginRsc.rsc" );
       
    38 _LIT( KGSPrslnPluginIconDirAndName, "z:gsprslnplugin.mbm"); // Use KDC_BITMAP_DIR
       
    39 
       
    40 // CLASS DECLARATION
       
    41 
       
    42 /**
       
    43 * CGSPrslnPlugin view class.
       
    44 *
       
    45 * @since Series60_3.1
       
    46 */
       
    47 class CGSPrslnPlugin : public CGSParentPlugin
       
    48     {
       
    49     public: // Constructors and destructor
       
    50 
       
    51         /**
       
    52         * Symbian OS two-phased constructor
       
    53         * @return
       
    54         */
       
    55         static CGSPrslnPlugin* NewL( TAny* aInitParams );
       
    56 
       
    57         /**
       
    58         * Destructor.
       
    59         */
       
    60         ~CGSPrslnPlugin();
       
    61 
       
    62     public: // From CAknView
       
    63 
       
    64         /**
       
    65         * See base class.
       
    66         */
       
    67         TUid Id() const;
       
    68 
       
    69         /**
       
    70         * See base class.
       
    71         */
       
    72         void DoActivateL( const TVwsViewId& aPrevViewId,
       
    73                           TUid aCustomMessageId,
       
    74                           const TDesC8& aCustomMessage );
       
    75         /**
       
    76         * See base class.
       
    77         */
       
    78         void DoDeactivate();
       
    79 
       
    80     public: // From CGSParentPlugin
       
    81 
       
    82         /**
       
    83         * See base class.
       
    84         */
       
    85         TUid UpperLevelViewUid();
       
    86 
       
    87         /**
       
    88         * See base class.
       
    89         */
       
    90         TGSListboxTypes ListBoxType();
       
    91         
       
    92         /**
       
    93         * See base class.
       
    94         */
       
    95         void GetHelpContext( TCoeHelpContext& aContext );
       
    96 
       
    97     public: // From CGSPluginInterface
       
    98 
       
    99         /**
       
   100         * See base class.
       
   101         */
       
   102         void GetCaptionL( TDes& aCaption ) const;
       
   103 
       
   104         /**
       
   105         * See base class.
       
   106         */
       
   107         CGulIcon* CreateIconL( const TUid aIconType );
       
   108 
       
   109         /**
       
   110         * See base class.
       
   111         */
       
   112         TInt PluginProviderCategory() const;
       
   113         
       
   114     protected: // From MEikMenuObserver
       
   115 
       
   116         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
   117 
       
   118     protected: // New
       
   119         /**
       
   120         * C++ default constructor.
       
   121         */
       
   122         CGSPrslnPlugin();
       
   123 
       
   124         /**
       
   125         * Symbian OS default constructor.
       
   126         */
       
   127         void ConstructL();
       
   128 
       
   129     private: // Data
       
   130 
       
   131         // Resource loader.
       
   132         RConeResourceLoader iResourceLoader;
       
   133 
       
   134         // Tab hepler.
       
   135         CGSTabHelper* iTabHelper;
       
   136         
       
   137         //Indicates if cba is already constructed
       
   138         TBool iCbaConstructed;
       
   139     };
       
   140 
       
   141 
       
   142 #endif // GSPRSLNPLUGIN_H
       
   143 // End of File