gssettingsuis/Gs/GSPDataAccessPointPlugin/inc/GSPDataAccessPointPlugin.h
branchRCL_3
changeset 54 7e0eff37aedb
parent 0 8c5d936e5675
equal deleted inserted replaced
53:8ee96d21d9bf 54:7e0eff37aedb
       
     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:  GSPDataAccessPointPlugin implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef GSPDATAACCESSPOINTPLUGIN_H
       
    19 #define GSPDATAACCESSPOINTPLUGIN_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 
       
    29 // Classes referenced
       
    30 class CAknViewAppUi;
       
    31 class CGSPDataAccessPointModel;
       
    32 
       
    33 
       
    34 // Constants
       
    35 const TUid KGSPDataAccessPointPluginUID   = { 0x10282DC6 };
       
    36 _LIT( KPDataAccessPointResourceFileName, "z:GSPDataAccessPointPluginRsc.rsc" );
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41 *  CGSPDataAccessPointPlugin view class.
       
    42 *
       
    43 * This class handles state and application logic of PDataAccessPoint settings.
       
    44 * The plugin is a type of EGSItemTypeSettingDialog and therefore the GS FW will
       
    45 * call HandleSelection() instead of DoActivate().
       
    46 *
       
    47 */
       
    48 class CGSPDataAccessPointPlugin : public CGSPluginInterface
       
    49     {
       
    50     public: // Constructors and destructor
       
    51 
       
    52         /**
       
    53         * Symbian OS two-phased constructor
       
    54         * @return
       
    55         */
       
    56         static CGSPDataAccessPointPlugin* NewL( TAny* aInitParams );
       
    57 
       
    58         /**
       
    59         * Destructor.
       
    60         */
       
    61         ~CGSPDataAccessPointPlugin();
       
    62 
       
    63     public: // From CAknView
       
    64 
       
    65         /**
       
    66         * See base class.
       
    67         */
       
    68         TUid Id() const;
       
    69 
       
    70     public: // From CGSPluginInterface
       
    71 
       
    72         /**
       
    73         * See base class.
       
    74         */
       
    75         void GetCaptionL( TDes& aCaption ) const;
       
    76 
       
    77         /**
       
    78         * See base class.
       
    79         */
       
    80         TInt PluginProviderCategory() const;
       
    81 
       
    82         /**
       
    83         * See base class.
       
    84         */
       
    85         TGSListboxItemTypes ItemType();
       
    86 
       
    87         /**
       
    88         * See base class.
       
    89         */
       
    90         void GetValue( const TGSPluginValueKeys aKey,
       
    91                        TDes& aValue );
       
    92 
       
    93         /**
       
    94         * See base class.
       
    95         */
       
    96         void HandleSelection( const TGSSelectionTypes aSelectionType );
       
    97 
       
    98         /**
       
    99         * See base class.
       
   100         */
       
   101         TGSMenuActivationItems MenuActivationItem();
       
   102         
       
   103     protected: // New
       
   104 
       
   105         /**
       
   106         * C++ default constructor.
       
   107         */
       
   108         CGSPDataAccessPointPlugin();
       
   109 
       
   110         /**
       
   111         * Symbian OS default constructor.
       
   112         */
       
   113         void ConstructL();
       
   114 
       
   115     protected: // From CAknView
       
   116 
       
   117         /**
       
   118         * See base class.
       
   119         */
       
   120         void DoActivateL( const TVwsViewId& aPrevViewId,
       
   121                           TUid aCustomMessageId,
       
   122                           const TDesC8& aCustomMessage );
       
   123 
       
   124         /**
       
   125         * See base class.
       
   126         */
       
   127         void DoDeactivate();
       
   128 
       
   129     private: // New
       
   130 
       
   131         /**
       
   132         * Show Access point setting page.
       
   133         * 
       
   134         */
       
   135         void ShowAccessPointSettingPageL();
       
   136 
       
   137         /**
       
   138         * Opens localized resource file.
       
   139         */
       
   140         void OpenLocalizedResourceFileL(
       
   141                         const TDesC& aResourceFileName,
       
   142                         RConeResourceLoader& aResourceLoader );
       
   143         
       
   144         /**
       
   145         * Leaving version of GetValue()
       
   146         */
       
   147         void GetValueL( TDes& aValue );
       
   148         
       
   149     protected: // Data
       
   150 
       
   151         // PDataAccessPoint model.
       
   152         CGSPDataAccessPointModel* iModel;
       
   153 
       
   154         // Resource loader.
       
   155         RConeResourceLoader iResources;
       
   156     };
       
   157 
       
   158 #endif // GSPDATAACCESSPOINTPLUGIN_H
       
   159 
       
   160 // End of File