psln/PslnGSPlugin/inc/PslnGSPlugin.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  PslnGSPlugin implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_PSLNGSPLUGIN_H
       
    19 #define C_PSLNGSPLUGIN_H
       
    20 
       
    21 #include <gsplugininterface.h>
       
    22 #include <aknview.h>
       
    23 #include <ConeResLoader.h>
       
    24 #include <eikclb.h>
       
    25 #include <AknServerApp.h>
       
    26 
       
    27 class CAknNavigationDecorator;
       
    28 class CAknViewAppUi;
       
    29 class CAknNullService;
       
    30 
       
    31 // This plugin's UID.
       
    32 const TUid KPslnGSPluginUID = { 0x102818ED };
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 * CPslnGSPlugin.
       
    38 *
       
    39 *
       
    40 *
       
    41 */
       
    42 class CPslnGSPlugin : public CGSPluginInterface,
       
    43                       public MAknServerAppExitObserver
       
    44     {
       
    45     public:
       
    46 
       
    47         /**
       
    48         * Symbian OS two-phased constructor
       
    49         * @param aInitParams initialization parameters.
       
    50         * @return new instance of CPslnGSPlugin.
       
    51         */
       
    52         static CPslnGSPlugin* NewL( TAny* aInitParams );
       
    53 
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         ~CPslnGSPlugin();
       
    58 
       
    59         /**
       
    60         * From CAknView.
       
    61         * This view's Id.
       
    62         * @return This plugin's UID.
       
    63         */
       
    64         TUid Id() const;
       
    65 
       
    66         /**
       
    67         * From CGSPluginInterface.
       
    68         * @param aCaption this plugin's caption.
       
    69         */
       
    70         void GetCaptionL( TDes& aCaption ) const;
       
    71 
       
    72         /**
       
    73         * From CGSPluginInterface.
       
    74         * @return this plugin's provider category.
       
    75         */
       
    76         TInt PluginProviderCategory() const;
       
    77 
       
    78         /**
       
    79         * From CGSPluginInterface.
       
    80         * @return this plugin's item type.
       
    81         */
       
    82         TGSListboxItemTypes ItemType();
       
    83 
       
    84         /**
       
    85         * From CGSPluginInterface.
       
    86         * @param aKey key name.
       
    87         * @param aValue key value.
       
    88         */
       
    89         void GetValue( const TGSPluginValueKeys aKey,
       
    90                        TDes& aValue );
       
    91 
       
    92         /**
       
    93         * From CGSPluginInterface.
       
    94         * @param aSelectionType selection type.
       
    95         */
       
    96         void HandleSelection( const TGSSelectionTypes aSelectionType );
       
    97 
       
    98         /**
       
    99         * From CGSPluginInterface.
       
   100         * @param aIconType UID Icon type UID of the icon to be created.
       
   101         * @return Pointer of the icon. NOTE: Ownership of this icon is
       
   102         *         transferred to the caller.
       
   103         */
       
   104         CGulIcon* CreateIconL( const TUid aIconType );
       
   105 
       
   106     private:
       
   107 
       
   108         /**
       
   109         * C++ default constructor.
       
   110         */
       
   111         CPslnGSPlugin();
       
   112 
       
   113         /**
       
   114         * Symbian OS default constructor.
       
   115         */
       
   116         void ConstructL();
       
   117 
       
   118         /**
       
   119         * From CAknView.
       
   120         * This implementation is empty because this class, being just a dialog,
       
   121         * does not implement the CAknView finctionality.
       
   122         */
       
   123         void DoActivateL( const TVwsViewId& aPrevViewId,
       
   124                           TUid aCustomMessageId,
       
   125                           const TDesC8& aCustomMessage );
       
   126 
       
   127         /**
       
   128         * From CAknView.
       
   129         * This implementation is empty because this class, being just a dialog,
       
   130         * does not implement the CAknView finctionality.
       
   131         */
       
   132         void DoDeactivate();
       
   133 
       
   134         /**
       
   135         * Opens localized resource file.
       
   136         */
       
   137         void OpenLocalizedResourceFileL(
       
   138             const TDesC& aResourceFileName,
       
   139             RConeResourceLoader& aResourceLoader );
       
   140 
       
   141         /**
       
   142         * Launches provisioning application.
       
   143         */
       
   144         void LaunchThemesAppL();
       
   145 
       
   146     private: // Data
       
   147 
       
   148         /**
       
   149         * Resource loader for this plugin's resources.
       
   150         */
       
   151         RConeResourceLoader iResources;
       
   152 
       
   153         /**
       
   154         * AVKON NULL Service.
       
   155         * Own.
       
   156         */
       
   157         CAknNullService* iNullService;
       
   158     };
       
   159 
       
   160 #endif // C_PSLNGSPLUGIN_H
       
   161 // End of File