coreapplicationuis/Rfs/Plugins/GSRFSPlugin/inc/GSRFSPlugin.h
branchRCL_3
changeset 20 c2c61fdca848
parent 0 2e3d3ce01487
equal deleted inserted replaced
19:924385140d98 20:c2c61fdca848
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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:  GS Restore Factory Settings plugin
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GSRFSPLUGIN_H
       
    20 #define GSRFSPLUGIN_H
       
    21 
       
    22 // Includes
       
    23 #include <aknsettingpage.h>
       
    24 #include <gsbaseview.h>
       
    25 #include <ConeResLoader.h>
       
    26 #include <gsplugininterface.h>
       
    27 
       
    28 // Classes referenced
       
    29 class CRfsHandler;
       
    30 class CGSRFSPluginContainer;
       
    31 class CAknViewAppUi;
       
    32 
       
    33 // Constants
       
    34 const TUid KGSRFSPluginUid = { 0x10275117 };
       
    35   
       
    36 
       
    37 // Class Declaration
       
    38 /**
       
    39  *
       
    40  * @since Series60_3.1
       
    41  */
       
    42 class CGSRFSPlugin : public CGSBaseView
       
    43     {
       
    44 public: // Constructors and destructor
       
    45         
       
    46     /**
       
    47      * Symbian OS two-phased constructor
       
    48      * @return 
       
    49      */
       
    50     static CGSRFSPlugin* NewL( TAny* aInitParams );
       
    51     
       
    52     /**
       
    53      * Destructor.
       
    54      */
       
    55      ~CGSRFSPlugin();
       
    56 
       
    57 public: // From CAknView
       
    58                 
       
    59      /**
       
    60       * See base class.
       
    61       *
       
    62       * This function is used also for identifying the plugin so be sure to
       
    63       * return correct UID.
       
    64       */
       
    65      TUid Id() const;
       
    66         
       
    67      /**
       
    68       * See base class.
       
    69       */
       
    70      void HandleClientRectChange();
       
    71         
       
    72      /**
       
    73       * See base class.
       
    74       */
       
    75      void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage );
       
    76         
       
    77      /**
       
    78       * See base class.
       
    79       */
       
    80      void DoDeactivate();
       
    81         
       
    82      /**
       
    83       * See base class.
       
    84       */
       
    85      void HandleCommandL( TInt aCommand );
       
    86         
       
    87 
       
    88 public: // From CGSPluginInterface
       
    89        
       
    90      /**
       
    91       * See base class.
       
    92       */
       
    93      void GetCaptionL( TDes& aCaption ) const;
       
    94         
       
    95      /**
       
    96       * See base class.
       
    97       */
       
    98      TInt PluginProviderCategory() const;
       
    99 
       
   100      /**
       
   101       * See base class.
       
   102       */
       
   103      CGulIcon* CreateIconL( const TUid aIconType );
       
   104         
       
   105 protected: // New
       
   106 
       
   107      /**
       
   108       * C++ default constructor.
       
   109       */
       
   110      CGSRFSPlugin();
       
   111 
       
   112      /**
       
   113       * Symbian OS default constructor.
       
   114       */
       
   115      void ConstructL();
       
   116         
       
   117      void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
   118         
       
   119 private: // from CGSBaseView
       
   120         
       
   121      void NewContainerL();
       
   122         
       
   123      void HandleListBoxSelectionL();    
       
   124         
       
   125 private: // Data
       
   126 
       
   127      // Resource loader
       
   128      RConeResourceLoader iResourceLoader;
       
   129     };
       
   130 
       
   131 #endif // GSRFSPLUGIN_H
       
   132 
       
   133 // End of File