cmmanager/cmmgr/Plugins/cmpluginpacketdata/inc/cmppacketdatasettingsdlgadv.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 an advanved settings dialog for a packet data 
       
    15 *                connection method plugin
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CMPLUGINPACKETDATA_SETTINGS_DLG_ADV_H
       
    20 #define CMPLUGINPACKETDATA_SETTINGS_DLG_ADV_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <mcmdexec.h>
       
    24 #include <cmpbasesettingsdlgadv.h>
       
    25 #include <cmpluginbaseeng.h>
       
    26 #include <in_sock.h>
       
    27 #include "cmcommsdatnotifier.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CCmPluginBaseEng;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  *  CmPluginPacketDataSettingsDlgAdv dialog class
       
    36  *
       
    37  *  displays the packet data advanced settings dialog
       
    38  *
       
    39  *  @since S60 v3.2
       
    40  */
       
    41 NONSHARABLE_CLASS( CmPluginPacketDataSettingsDlgAdv ) : 
       
    42                                             public CmPluginBaseSettingsDlgAdv ,
       
    43                                             public MCmCommsDatWatcher
       
    44     {
       
    45     public: // Constructors and destructor
       
    46 
       
    47         /**
       
    48         * Two-phase construction
       
    49         *
       
    50         * @since S60 3.2
       
    51         * @param aCmPluginBaseEng  The connection method to use
       
    52         * @return instance of the class
       
    53         */
       
    54         static CmPluginPacketDataSettingsDlgAdv* NewL( 
       
    55                                         CCmPluginBaseEng& aCmPluginBaseEng );
       
    56 
       
    57         /**
       
    58         * Destructor
       
    59         */
       
    60         virtual ~CmPluginPacketDataSettingsDlgAdv();
       
    61 
       
    62     public: // From CmPluginBaseSettingsDlg
       
    63     
       
    64         /**
       
    65         * From CmPluginBaseSettingsDlg
       
    66         * Collects the packet data specific setting information for 
       
    67         * displaying
       
    68         *
       
    69         * @since S60 3.2
       
    70         * @param aItemArray an array of setting information
       
    71         */
       
    72         void UpdateListBoxContentBearerSpecificL( CDesCArray& itemArray );
       
    73         
       
    74         /**
       
    75         * From CmPluginBaseSettingsDlg
       
    76         * displays the advanced settings dialog
       
    77         *
       
    78         * @since S60 3.2
       
    79         */
       
    80         void RunAdvancedSettingsL() {;}
       
    81         
       
    82     public: // from base class
       
    83 
       
    84         /**
       
    85         * From CmPluginBaseSettingsDlg
       
    86         * Create and launch dialog
       
    87         *
       
    88         * @since S60 v3.2
       
    89         * @return The code returned by the dialog's ExecuteLD
       
    90         */
       
    91         TInt ConstructAndRunLD();
       
    92         
       
    93     public:
       
    94         
       
    95         /**
       
    96          * Record the object of parent view
       
    97          */
       
    98         void RegisterParentView( CCmParentViewNotifier* aParent );
       
    99         
       
   100     public: // from class MCmCommsDatWatcher
       
   101         
       
   102         /**
       
   103          * Watch changes in CommsDat
       
   104          */
       
   105         void CommsDatChangesL();
       
   106         
       
   107     protected:
       
   108         /** From CAknDialog */
       
   109         TBool OkToExitL( TInt aButtonId );
       
   110 
       
   111     private:
       
   112     
       
   113         /** 
       
   114         * C++ constructor
       
   115         */
       
   116         CmPluginPacketDataSettingsDlgAdv( 
       
   117                                         CCmPluginBaseEng& aCmPluginBaseEng );
       
   118         
       
   119     private: // From CmPluginBaseSettingsDlg
       
   120     
       
   121         /**
       
   122         * From CmPluginBaseSettingsDlg
       
   123         * according to the setting type the correct edit dialog is displayed
       
   124         *
       
   125         * @since S60 3.2
       
   126         * @param aAttribute
       
   127         * @param aCommandId
       
   128         */
       
   129         TBool ShowPopupSettingPageL( TUint32 aAttribute, TInt aCommandId  );
       
   130         
       
   131     private: // From MEikCommandObserver
       
   132         
       
   133         /**
       
   134         * From MEikCommandObserver
       
   135         * see base class for description
       
   136         *
       
   137         * @since S60 3.2
       
   138         * @param aCommandId
       
   139         */        
       
   140         virtual void ProcessCommandL( TInt aCommandId );
       
   141         
       
   142     private: // New functions
       
   143 
       
   144         /**
       
   145         * Shows the setting page for IP DNS address
       
   146         * 
       
   147         * @since S60 3.2
       
   148         */
       
   149         void ShowPopupPacketDataIPDNSAddrFromServerL( );
       
   150         
       
   151         /**
       
   152         * Show the setting page for PDP type
       
   153         *
       
   154         * @since S60 3.2
       
   155         * @param aAttribute the setting to be changed
       
   156         */
       
   157         void ShowPDPTypeRBPageL( TUint32 aAttribute );
       
   158         
       
   159     private:  // Data Members
       
   160 
       
   161         /**
       
   162         * indicates if IPv6 is supported
       
   163         */
       
   164         TBool iIpv6Supported;
       
   165                 
       
   166         CCmParentViewNotifier* iParent;
       
   167     };
       
   168 
       
   169 #endif // CMPLUGINPACKETDATA_SETTINGS_DLG_ADV_H