pnpmobileservices/pnpms/ServiceHelpPlugin/inc/ServiceHelpPlugin.h
changeset 18 7d11f9a6646f
parent 4 75a71fdb4c92
child 21 c707676bf59f
equal deleted inserted replaced
4:75a71fdb4c92 18:7d11f9a6646f
     1 /*
       
     2 * Copyright (c) 2008 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:  ServiceHelpPlugin implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef ServiceHelpPlugin_H
       
    19 #define ServiceHelpPlugin_H
       
    20 
       
    21 // User includes
       
    22 
       
    23 // System includes
       
    24 #include <gsplugininterface.h>
       
    25 #include <aknview.h>
       
    26 #include <ConeResLoader.h>
       
    27 #include <eikclb.h>
       
    28 #include <AknServerApp.h>
       
    29 #include <AknCapServerClient.h>
       
    30 #include <gsbasecontainer.h>
       
    31 
       
    32 // Classes referenced
       
    33 class CAknNavigationDecorator;
       
    34 class CAknViewAppUi;
       
    35 
       
    36 // Constants
       
    37 const TUid KServiceHelpPluginUID       = { 0x20019598 };
       
    38 _LIT( KOperatorLogoResourceFileName, "z:PnpProvisioning.rsc" );
       
    39 _LIT( KServiceHelpPluginIconDirAndName, "z:ServiceHelpPlugin.mif"); // Use KDC_BITMAP_DIR
       
    40 
       
    41 
       
    42 
       
    43 // CLASS DECLARATION
       
    44 
       
    45 
       
    46 /**
       
    47 * CServiceHelpPlugin.
       
    48 *
       
    49 * This class handles state and application logic of OperatorLogo settings.
       
    50 * The plugin is a type of EGSItemTypeSettingDialog and therefore the GS FW will
       
    51 * call HandleSelection() instead of DoActivate(). No CAknView functionality is
       
    52 * supported even though the base class is CAknView derived via
       
    53 * CGSPluginInterface.
       
    54 *
       
    55 */
       
    56 class CServiceHelpPlugin : public CGSPluginInterface,
       
    57                         public MAknServerAppExitObserver// Embedding
       
    58     {
       
    59     public: // Constructors and destructor
       
    60 
       
    61         /**
       
    62         * Symbian OS two-phased constructor
       
    63         * @return
       
    64         */
       
    65         static CServiceHelpPlugin* NewL( TAny* aInitParams );
       
    66 
       
    67         /**
       
    68         * Destructor.
       
    69         */
       
    70         ~CServiceHelpPlugin();
       
    71 
       
    72     public: // From CAknView
       
    73 
       
    74         /**
       
    75         * See base class.
       
    76         */
       
    77         TUid Id() const;
       
    78 
       
    79     public: // From CGSPluginInterface
       
    80 
       
    81         /**
       
    82         * See base class.
       
    83         */
       
    84         void GetCaptionL( TDes& aCaption ) const;
       
    85 
       
    86         /**
       
    87         * See base class.
       
    88         */
       
    89         TInt PluginProviderCategory() const;
       
    90 
       
    91         /**
       
    92         * See base class.
       
    93         */
       
    94         TGSListboxItemTypes ItemType();
       
    95 
       
    96         /**
       
    97         * See base class.
       
    98         */
       
    99         void GetValue( const TGSPluginValueKeys aKey,
       
   100                        TDes& aValue );
       
   101 
       
   102         /**
       
   103         * See base class.
       
   104         */
       
   105         void HandleSelection( const TGSSelectionTypes aSelectionType );
       
   106         
       
   107         /**
       
   108         * See base class.
       
   109         */
       
   110         CGulIcon* CreateIconL( const TUid aIconType );
       
   111 
       
   112 	/**
       
   113 	 *Launch Online Support 
       
   114          */
       
   115 	void LaunchOnlineSupportL();
       
   116   	
       
   117 	
       
   118         
       
   119     protected: // New
       
   120 
       
   121         /**
       
   122         * C++ default constructor.
       
   123         */
       
   124         CServiceHelpPlugin();
       
   125 
       
   126         /**
       
   127         * Symbian OS default constructor.
       
   128         */
       
   129         void ConstructL();
       
   130 
       
   131     protected: // From CAknView
       
   132 
       
   133         /**
       
   134         * This implementation is empty because this class, being just a dialog,
       
   135         * does not implement the CAknView finctionality.
       
   136         */
       
   137         void DoActivateL( const TVwsViewId& aPrevViewId,
       
   138                           TUid aCustomMessageId,
       
   139                           const TDesC8& aCustomMessage );
       
   140 
       
   141         /**
       
   142         * This implementation is empty because this class, being just a dialog,
       
   143         * does not implement the CAknView finctionality.
       
   144         */
       
   145         void DoDeactivate();
       
   146 
       
   147     private: // New
       
   148 
       
   149         /**
       
   150         * Opens localized resource file.
       
   151         */
       
   152         void OpenLocalizedResourceFileL(
       
   153             const TDesC& aResourceFileName,
       
   154             RConeResourceLoader& aResourceLoader );
       
   155 
       
   156         
       
   157 	  /**
       
   158     	    * Suppress the menu/app key when reminder dialog is displayed
       
   159 	    * @param ETrue to Suppress, else EFalse
       
   160 	    * @return None
       
   161     	    */
       
   162 	
       
   163 	void SuppressAppKey(TBool aValue);
       
   164 
       
   165 	private:	//data
       
   166 		
       
   167     	//Holds the state of menu/app key supress
       
   168 	TBool iIsAppKeySuppressed;
       
   169         
       
   170       protected: // Data
       
   171      
       
   172         // Resource loader.
       
   173         RConeResourceLoader iResources;        
       
   174         
       
   175     };
       
   176 
       
   177 #endif // ServiceHelpPlugin_H
       
   178 // End of File