gssettingsuis/Gs/GSConPlugin/inc/GSConPlugin.h
changeset 18 e3554c9069b6
parent 4 3f8368f032cf
child 19 30540fccecae
equal deleted inserted replaced
4:3f8368f032cf 18:e3554c9069b6
     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 GSConPlugin.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef GSCONPLUGIN_H
       
    19 #define GSCONPLUGIN_H
       
    20 
       
    21 // Includes
       
    22 #include <aknview.h>
       
    23 #include <eikclb.h>
       
    24 #include <eikmenup.h>
       
    25 #include <gsparentplugin.h>
       
    26 #include <gsfwviewuids.h>
       
    27 
       
    28 // Classes referenced
       
    29 class CAknViewAppUi;
       
    30 class RConeResourceLoader;
       
    31 class CGulIcon;
       
    32 class CGSTabHelper;
       
    33 
       
    34 // Constants
       
    35 _LIT( KGSConPluginResourceFileName, "z:GSConPluginRsc.rsc" );
       
    36 _LIT( KGSConPluginIconDirAndName, "z:GSConPlugin.mbm"); // Use KDC_BITMAP_DIR
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 
       
    41 /**
       
    42 *  CGSConPlugin.
       
    43 *
       
    44 *  @since Series60_3.1
       
    45 */
       
    46 class CGSConPlugin : public CGSParentPlugin
       
    47     {
       
    48 
       
    49     public: // Constructors and destructor
       
    50 
       
    51         /**
       
    52         * Symbian OS two-phased constructor
       
    53         * @return
       
    54         */
       
    55         static CGSConPlugin* NewL( TAny* aInitParams );
       
    56 
       
    57         /**
       
    58         * Destructor.
       
    59         */
       
    60         ~CGSConPlugin();
       
    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 
       
   115     protected: // New
       
   116 
       
   117         /**
       
   118         * C++ default constructor.
       
   119         */
       
   120         CGSConPlugin();
       
   121 
       
   122         /**
       
   123         * Symbian OS default constructor.
       
   124         */
       
   125         void ConstructL();
       
   126 
       
   127     private: // Data
       
   128 
       
   129         // Resource loader.
       
   130         RConeResourceLoader iResources;
       
   131 
       
   132         // Tab helper.
       
   133         CGSTabHelper* iTabHelper;
       
   134     };
       
   135 
       
   136 
       
   137 #endif // GSCONPLUGIN_H
       
   138 // End of File