phonebookui/Speeddial/speeddialgsplugin/inc/speeddialgsplugin.h
changeset 0 e686773b3f54
child 3 04ab22b956c2
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 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:     Container for the Speeddial sub-folder
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef SPEEDDIALGSPLUGIN_H
       
    23 #define SPEEDDIALGSPLUGIN_H
       
    24 
       
    25 // Includes
       
    26 #include <aknview.h>
       
    27 #include <eikclb.h>
       
    28 #include <gsparentplugin.h>
       
    29 #include <GSFWViewUIDs.h>
       
    30 #include <GSPluginInterface.h>
       
    31 #include <AknServerApp.h> 
       
    32 // Classes referenced
       
    33 class CAknViewAppUi;
       
    34 class RConeResourceLoader;
       
    35 class CAknLaunchAppService;
       
    36 class CAknNullService;
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40 * CSpeeddialGsPlugin view class.
       
    41 *
       
    42 */
       
    43 class CSpeeddialGsPlugin : public CGSPluginInterface,
       
    44                                     public MAknServerAppExitObserver
       
    45     {
       
    46     public: // Constructors and destructor
       
    47 
       
    48         /**
       
    49         * Symbian OS two-phased constructor
       
    50         * @return
       
    51         */
       
    52         static CGSPluginInterface* NewL( TAny* aInitParams );
       
    53 
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         ~CSpeeddialGsPlugin();
       
    58 
       
    59     public: // From CAknView
       
    60 
       
    61         /**
       
    62         * See base class.
       
    63         */
       
    64         TUid Id() const;
       
    65 
       
    66         /**
       
    67         * See base class.
       
    68         */
       
    69         void DoActivateL( const TVwsViewId& aPrevViewId,
       
    70                           TUid aCustomMessageId,
       
    71                           const TDesC8& aCustomMessage );
       
    72         /**
       
    73         * See base class.
       
    74         */
       
    75         void DoDeactivate();
       
    76         
       
    77         /**
       
    78         * From CGSPluginInterface.
       
    79         * @param aSelectionType selection type.
       
    80         */
       
    81         void HandleSelection( const TGSSelectionTypes aSelectionType );
       
    82 
       
    83     public: // From CGSParentPlugin
       
    84 
       
    85         /**
       
    86         * See base class.
       
    87         */
       
    88         TUid UpperLevelViewUid();
       
    89 
       
    90         /**
       
    91         * See base class.
       
    92         */
       
    93         TGSListboxTypes ListBoxType();
       
    94         
       
    95         /**
       
    96         * See base class.
       
    97         */
       
    98         void GetHelpContext( TCoeHelpContext& aContext );
       
    99 
       
   100     public: // From CGSPluginInterface
       
   101 
       
   102         /**
       
   103         * See base class.
       
   104         */
       
   105         void GetCaptionL( TDes& aCaption ) const;
       
   106 
       
   107         /**
       
   108         * See base class.
       
   109         */
       
   110         TInt PluginProviderCategory() const;
       
   111 
       
   112         /**
       
   113         * @see CGSPluginInterface header file.
       
   114         */
       
   115         CGulIcon* CreateIconL( const TUid aIconType );
       
   116         
       
   117          /**
       
   118         * From CGSPluginInterface.
       
   119         * @return this plugin's item type.
       
   120         */
       
   121         TGSListboxItemTypes ItemType();
       
   122         
       
   123         void HandleServerAppExit( TInt aReason );
       
   124 
       
   125     protected: // New
       
   126         /**
       
   127         * C++ default constructor.
       
   128         */
       
   129         CSpeeddialGsPlugin();
       
   130         
       
   131         void CSpeeddialGsPlugin::LaunchEasAppL();
       
   132 
       
   133     protected:
       
   134         /**
       
   135         * Symbian OS default constructor.
       
   136         */
       
   137         void ConstructL();
       
   138 
       
   139     private: // Data
       
   140 
       
   141         CEikonEnv* env;
       
   142         TInt       iResId;
       
   143         CAknNullService*  iNullService;
       
   144     };
       
   145 
       
   146 #endif //SPEEDDIALGSPLUGIN_H
       
   147 
       
   148 // End of File