cmmanager/cmmgr/Plugins/cmpluginwlan/inc/cmpwlansettingsdlgipv4.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 0 5a93021fdf25
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
       
     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 dialog for wlan cm plugin ipv4 settings view/edit
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMPLUGINWLANIPV4_SETTINGS_DLG_H
       
    19 #define CMPLUGINWLANIPV4_SETTINGS_DLG_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <mcmdexec.h>
       
    23 #include <cmpbasesettingsdlgip.h>
       
    24 #include "cmcommsdatnotifier.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CCmPluginBaseEng;
       
    28 
       
    29 /**
       
    30  *  CmPluginWlanSettingsDlgIpv4 dialog class
       
    31  *
       
    32  *  shows settings for WLAN IPv4
       
    33  *
       
    34  *  @since S60 v3.2
       
    35  */
       
    36 NONSHARABLE_CLASS( CmPluginWlanSettingsDlgIpv4 ) : 
       
    37                                             public CmPluginBaseSettingsDlgIp ,
       
    38                                             public MCmCommsDatWatcher
       
    39     {
       
    40     public: // Constructors and destructor
       
    41     
       
    42         /**
       
    43         * Two-phase construction
       
    44         * @since S60 v3.2
       
    45         * @param aCmPluginBaseEng
       
    46         */
       
    47         static CmPluginWlanSettingsDlgIpv4* NewL(
       
    48                                         CCmPluginBaseEng& aCmPluginBaseEng );
       
    49 
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         ~CmPluginWlanSettingsDlgIpv4();
       
    54 
       
    55     public: // from base class
       
    56 
       
    57         /**
       
    58         * From CmPluginBaseSettingsDlg
       
    59         * Create and launch dialog
       
    60         *
       
    61         * @since S60 v3.2
       
    62         * @return The code returned by the dialog's ExecuteLD
       
    63         */
       
    64         TInt ConstructAndRunLD();
       
    65         
       
    66         /**
       
    67         * From CmPluginBaseSettingsDlg
       
    68         * Updates bearer specific listbox contents
       
    69         *
       
    70         * @since S60 v3.2
       
    71         * @param aItemArray item array containing the setting texts
       
    72         */
       
    73         void UpdateListBoxContentBearerSpecificL( CDesCArray& itemArray );
       
    74         
       
    75     public:
       
    76         
       
    77         /**
       
    78          * Record the object of parent view
       
    79          */
       
    80         void RegisterParentView( CCmParentViewNotifier* aParent );
       
    81         
       
    82     public: // from class MCmCommsDatWatcher
       
    83         
       
    84         /**
       
    85          * Watch changes in CommsDat
       
    86          */
       
    87         void CommsDatChangesL();
       
    88 
       
    89     protected:
       
    90     
       
    91         /** From CAknDialog */
       
    92         TBool OkToExitL( TInt aButtonId );
       
    93 
       
    94     private: // construction
       
    95         
       
    96         /**
       
    97         * C++ constructor
       
    98         */
       
    99         CmPluginWlanSettingsDlgIpv4( CCmPluginBaseEng& aCmPluginBaseEng );
       
   100         
       
   101     private: // From MEikCommandObserver
       
   102 
       
   103         /**
       
   104         * From MEikCommandObserver
       
   105         * see base class for description
       
   106         *
       
   107         * @since S60 3.2
       
   108         * @param aCommandId
       
   109         */
       
   110         void ProcessCommandL( TInt aCommandId );
       
   111         
       
   112     private: // From CmPluginBaseSettingsDlg         
       
   113 
       
   114         /**
       
   115         * From CmPluginBaseSettingsDlg 
       
   116         * Determines which type of setting page should be shown
       
   117         *
       
   118         * @param aAttribute The setting to be changed by the setting page
       
   119         * @param aCommandId The command the attribute is changed with (ok/change key pressed)
       
   120         * @return the soft key selection
       
   121         */ 
       
   122         TBool ShowPopupSettingPageL ( TUint32 aAttribute, TInt aCommandId  );
       
   123 
       
   124         /**
       
   125         * From CmPluginBaseSettingsDlg
       
   126         * Collects the packet data specific setting information for 
       
   127         * displaying
       
   128         *
       
   129         * @since S60 3.2
       
   130         * @param aItemArray an array of setting information
       
   131         */
       
   132         TBool UpdateListBoxContentBearerSpecificL( TUint32 aAttribute );
       
   133         
       
   134     private:  // New functions
       
   135 
       
   136         /**
       
   137         * Checks the temp attributes, saves them if necessary,
       
   138         * prompts user if there are incomplete values 
       
   139         *
       
   140         * @since S60 v3.2
       
   141         * @return ETrue if success
       
   142         */
       
   143         TBool ValidateAttribsL();
       
   144         
       
   145         /**
       
   146         * Text intialisation
       
   147         *
       
   148         * @since S60 v3.2
       
   149         */
       
   150         void InitTextsL();
       
   151         
       
   152     private:
       
   153         
       
   154         CCmParentViewNotifier* iParent;
       
   155     };
       
   156 
       
   157 #endif // CMPLUGINWLANIPV4_SETTINGS_DLG_ADV_H