cmmanager/cmmgr/Plugins/cmpluginvpn/inc/cmpvpnsettingsdlg.h
changeset 20 9c97ad6591ae
parent 18 fcbbe021d614
child 21 b8e8e15e80f2
child 23 7ec726f93df1
child 28 860702281757
equal deleted inserted replaced
18:fcbbe021d614 20:9c97ad6591ae
     1 /*
       
     2 * Copyright (c) 2006 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:  Declares a settings dialog for a VPN connection 
       
    15 *                method plugin
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CMPLUGINVPN_SETTINGS_DLG_H
       
    20 #define CMPLUGINVPN_SETTINGS_DLG_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <cmpluginbaseeng.h>
       
    24 #include <mcmdexec.h>
       
    25 #include <cmpbasesettingsdlg.h>
       
    26 #include "cmcommsdatnotifier.h"
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31  *  CmPluginVpnSettingsDlg dialog class
       
    32  *
       
    33  *  Displays the VPN data settings
       
    34  *
       
    35  *  @since S60 v3.2
       
    36  */
       
    37 NONSHARABLE_CLASS( CmPluginVpnSettingsDlg ) : public CmPluginBaseSettingsDlg
       
    38                                             , public MCmCommsDatWatcher
       
    39     {
       
    40     public: // Constructors and destructor
       
    41     
       
    42         /**
       
    43         * Two-phase constructor
       
    44         *
       
    45         * @since S60 3.2
       
    46         * @param aCmPluginBaseEng  The connection method to use
       
    47         * @return instance of the class
       
    48         */
       
    49         static CmPluginVpnSettingsDlg* NewL( CCmPluginBaseEng& 
       
    50                                                         aCmPluginBaseEng );
       
    51                                                         
       
    52         /**
       
    53         * Destructor.
       
    54         */
       
    55         virtual ~CmPluginVpnSettingsDlg();
       
    56     
       
    57     public: // From CmPluginBaseSettingsDlg
       
    58     
       
    59         
       
    60         /**
       
    61         * From CmPluginBaseSettingsDlg
       
    62         * constructor for the dialog
       
    63         *
       
    64         * @since S60 3.2
       
    65         */
       
    66         virtual TInt ConstructAndRunLD();
       
    67         
       
    68         /**
       
    69         * From CmPluginBaseSettingsDlg
       
    70         * Collects the VPN specific setting information for 
       
    71         * displaying
       
    72         *
       
    73         * @since S60 3.2
       
    74         * @param aItemArray an array of setting information
       
    75         */
       
    76         virtual void UpdateListBoxContentBearerSpecificL( 
       
    77                                                     CDesCArray& aItemArray );
       
    78         
       
    79         /**
       
    80         * From CmPluginBaseSettingsDlg
       
    81         * displays the advanced settings dialog
       
    82         *
       
    83         * @since S60 3.2
       
    84         */
       
    85         virtual void RunAdvancedSettingsL();
       
    86         
       
    87     public: // from class MCmCommsDatWatcher
       
    88         
       
    89         /**
       
    90          * Watch changes in CommsDat
       
    91          */
       
    92         void CommsDatChangesL();
       
    93    
       
    94     protected:  // From MEikMenuObserver 
       
    95     
       
    96         /**
       
    97         * From MEikMenuObserver
       
    98         * displays the options menu
       
    99         *
       
   100         * @param aResourceId the options menu to use
       
   101         * @param aMenuPane a pointer to the menu pane control
       
   102         * @since S60 3.2
       
   103         */
       
   104         virtual void DynInitMenuPaneL( TInt aResourceId, 
       
   105                                              CEikMenuPane* aMenuPane ) ;
       
   106 
       
   107         /** From CAknDialog */
       
   108         TBool OkToExitL( TInt aButtonId );
       
   109     
       
   110     private: // Constructors
       
   111     
       
   112         CmPluginVpnSettingsDlg( CCmPluginBaseEng& aCmPluginBaseEng );    
       
   113     
       
   114     private: // From CmPluginBaseSettingsDlg
       
   115         
       
   116         /**
       
   117         * From CmPluginBaseSettingsDlg
       
   118         * according to the setting type the correct edit dialog is displayed
       
   119         *
       
   120         * @since S60 3.2
       
   121         * @param aAttribute
       
   122         * @param aCommandId
       
   123         */
       
   124         virtual TBool ShowPopupSettingPageL( TUint32 aAttribute, 
       
   125                                              TInt aCommandId  );
       
   126 
       
   127         /**
       
   128         * From CmPluginBaseSettingsDlg
       
   129         * Get help contest of the plugin
       
   130         *
       
   131         * @since S60 5.0
       
   132         */
       
   133 				virtual void GetHelpContext( TCoeHelpContext& aContext ) const;
       
   134                                              
       
   135     private: // New functions
       
   136     
       
   137         /**
       
   138         * Displays a radio button dialog for user selection of connection
       
   139         * methods (filters out VPN connection method) takes responsibility
       
   140         * for updating the setting value
       
   141         *
       
   142         * @since S60 3.2
       
   143         * @returns ETrue if update was made
       
   144         */
       
   145         TBool ShowIapSelectionSettingPageL();
       
   146         
       
   147     private: // From MEikCommandObserver
       
   148     
       
   149         /**
       
   150         * From MEikCommandObserver
       
   151         * see base class for description
       
   152         *
       
   153         * @since S60 3.2
       
   154         * @param aCommandId
       
   155         */
       
   156         virtual void ProcessCommandL( TInt aCommandId );
       
   157 
       
   158 
       
   159         /**
       
   160         * Checks whether the compulsory fields have been filled or not.
       
   161         *
       
   162         * @since S60 3.2
       
   163         * @return Whether the compulsory fields have been filled or not.
       
   164         */
       
   165         TBool CompulsoryFilledL();
       
   166         
       
   167     };
       
   168 
       
   169 #endif // CMPLUGINVPN_SETTINGS_DLG_H