XDMSettingsUI/inc/XDMPlugin.h
changeset 0 c8caa15ef882
child 12 e6a66db4e9d0
equal deleted inserted replaced
-1:000000000000 0:c8caa15ef882
       
     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:    XDM GS plugin, UI(CAknView) interface header
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef GS_XDMPLUGIN_H
       
    22 #define GS_XDMPLUGIN_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <aknview.h>
       
    26 #include <eikclb.h>
       
    27 #include <ConeResLoader.h>
       
    28 #include <gsplugininterface.h>
       
    29 
       
    30 #include "XDMPlugin.hrh"
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 class CXDMPluginContainer;
       
    34 class CXDMPluginSLContainer;
       
    35 class CAknViewAppUi;
       
    36 class CSettingsData;
       
    37 
       
    38 /** 
       
    39 * This UID is used for both the view UID and the ECOM plugin implementation 
       
    40 * UID.
       
    41 */
       
    42 //const TUid KGSXDMPluginUid = { 0x10207429 };
       
    43   
       
    44 // CLASS DECLARATION
       
    45 
       
    46 /**
       
    47 *  CXDMPlugin view class (CAknView).
       
    48 *
       
    49 * This is XDM GS plugin.
       
    50 */
       
    51 class CXDMPlugin : public CGSPluginInterface
       
    52     {
       
    53     
       
    54     public: // Constructors and destructor
       
    55         
       
    56         /**
       
    57         * Symbian OS two-phased constructor
       
    58         * @return 
       
    59         */
       
    60         static CXDMPlugin* NewL( TAny* aInitParams );
       
    61     
       
    62         /**
       
    63         * Destructor.
       
    64         */
       
    65         ~CXDMPlugin();
       
    66         
       
    67         /**
       
    68         * Load the SettingsView with specified XDM set and type of loading
       
    69         * The types are EEditExisting, ENewDefault, ENewFromExisting
       
    70         */
       
    71         void LoadSettingsViewL(TXDMSettingsViewType aType, TDesC& aXDMSetName);
       
    72 
       
    73         /**
       
    74         * Loads the Main View where list of XDM sets are visible
       
    75         */
       
    76         void LoadMainViewL();
       
    77 
       
    78          /**
       
    79          * Manual resource change method
       
    80          * @param aType ype of resource
       
    81          */
       
    82          void HandleResourceChangeManual(TInt aType);
       
    83 
       
    84         /**
       
    85         * Hides MSK if not needed
       
    86         */
       
    87         void UpdateMskL();
       
    88 
       
    89     public: // From CAknView
       
    90         
       
    91         /**
       
    92         * This function is used for identifying the plugin
       
    93         */
       
    94         TUid Id() const;
       
    95         
       
    96         /**
       
    97         * See CAknView
       
    98         */
       
    99         //void HandleClientRectChange();
       
   100         void HandleViewRectChange();
       
   101         
       
   102         /**
       
   103         * See CAknView
       
   104         */
       
   105         void DoActivateL( const TVwsViewId& aPrevViewId,
       
   106                           TUid aCustomMessageId,
       
   107                           const TDesC8& aCustomMessage );
       
   108         /**
       
   109         * See CAknView
       
   110         */
       
   111         void DoDeactivate();
       
   112 
       
   113         /**
       
   114         * See CAknView
       
   115         */
       
   116         void HandleCommandL( TInt aCommand );
       
   117         
       
   118  
       
   119 
       
   120     protected:
       
   121 
       
   122         /**
       
   123         * C++ default constructor.
       
   124         */
       
   125         CXDMPlugin( );
       
   126 
       
   127         /**
       
   128         * Symbian OS default constructor.
       
   129         */
       
   130         void ConstructL();
       
   131         
       
   132     private:
       
   133     
       
   134         /**
       
   135         * See base classes
       
   136         */
       
   137         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
       
   138         
       
   139     public: // From CGSPluginInterface
       
   140     
       
   141         /**
       
   142         * See CGSPluginInterface
       
   143         */
       
   144         void GetCaptionL( TDes& aCaption ) const;
       
   145 
       
   146         /**
       
   147         * See CGSPluginInterface
       
   148         */
       
   149         TInt PluginProviderCategory() const;
       
   150         
       
   151         /**
       
   152         * @see CGSPluginInterface
       
   153         */
       
   154         CGulIcon* CreateIconL( const TUid aIconType );
       
   155         
       
   156         
       
   157     protected: //Data        
       
   158         
       
   159         // Reference to application UI - not owned.
       
   160         CAknViewAppUi* iAppUi;
       
   161         
       
   162         // RConeResourceLoader
       
   163         RConeResourceLoader iResources;
       
   164         
       
   165         // Previous View ID
       
   166         TVwsViewId iPrevViewId; // Previous view.
       
   167         
       
   168     private:
       
   169     
       
   170         // Pointer to the main list container - owned
       
   171         CXDMPluginContainer* iMainListContainer;
       
   172         
       
   173         // Pointer to the setting list container - owned.
       
   174         CXDMPluginSLContainer* iSettingListContainer;
       
   175         
       
   176         // Pointer to the current container - not owned.
       
   177         CCoeControl* iCurrentContainer;   
       
   178         
       
   179 #ifdef _DEBUG
       
   180     friend class UT_CXDMPluginContainer;
       
   181 #endif
       
   182     };
       
   183 
       
   184 #endif // GS_XDMPLUGIN_H