|
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 ipv6 settings view/edit |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CMPLUGINWLANIPV6_SETTINGS_DLG_H |
|
19 #define CMPLUGINWLANIPV6_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 * CmPluginWlanSettingsDlgIpv6 dialog class |
|
31 * |
|
32 * shows settings for WLAN IPv6 |
|
33 * |
|
34 * @since S60 v3.2 |
|
35 */ |
|
36 NONSHARABLE_CLASS( CmPluginWlanSettingsDlgIpv6 ) : |
|
37 public CmPluginBaseSettingsDlgIp , |
|
38 public MCmCommsDatWatcher |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phase construction. |
|
44 * @param aCmPluginBaseEng wlan plugin to edit |
|
45 */ |
|
46 static CmPluginWlanSettingsDlgIpv6* NewL( |
|
47 CCmPluginBaseEng& aCmPluginBaseEng ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 ~CmPluginWlanSettingsDlgIpv6(); |
|
53 |
|
54 public: // from base class |
|
55 |
|
56 /** |
|
57 * From CmPluginBaseSettingsDlg |
|
58 * Create and launch dialog |
|
59 * |
|
60 * @since S60 v3.2 |
|
61 * @return The code returned by the dialog's ExecuteLD |
|
62 */ |
|
63 TInt ConstructAndRunLD(); |
|
64 |
|
65 public: // From CmPluginBaseSettingsDlg |
|
66 |
|
67 /** |
|
68 * From CmPluginBaseSettingsDlg |
|
69 * Updates bearer specific listbox contents |
|
70 * |
|
71 * @since S60 v3.2 |
|
72 * @param aItemArray item array containing the setting texts |
|
73 */ |
|
74 void UpdateListBoxContentBearerSpecificL( CDesCArray& itemArray ); |
|
75 |
|
76 public: |
|
77 |
|
78 /** |
|
79 * Record the object of parent view |
|
80 */ |
|
81 void RegisterParentView( CCmParentViewNotifier* aParent ); |
|
82 |
|
83 public: // from class MCmCommsDatWatcher |
|
84 |
|
85 /** |
|
86 * Watch changes in CommsDat |
|
87 */ |
|
88 void CommsDatChangesL(); |
|
89 |
|
90 protected: |
|
91 |
|
92 /** From CAknDialog */ |
|
93 TBool OkToExitL( TInt aButtonId ); |
|
94 |
|
95 private: // construction |
|
96 |
|
97 CmPluginWlanSettingsDlgIpv6( CCmPluginBaseEng& aCmPluginBaseEng ); |
|
98 |
|
99 private: // From MEikCommandObserver |
|
100 |
|
101 /** |
|
102 * From MEikCommandObserver |
|
103 * see base class for description |
|
104 * |
|
105 * @since S60 3.2 |
|
106 * @param aCommandId |
|
107 */ |
|
108 void ProcessCommandL( TInt aCommandId ); |
|
109 |
|
110 private: // From CmPluginBaseSettingsDlg |
|
111 |
|
112 /** |
|
113 * From CmPluginBaseSettingsDlg |
|
114 * Determines which type of setting page should be shown |
|
115 * |
|
116 * @param aAttribute The setting to be changed by the setting page |
|
117 * @param aCommandId The command the attribute is changed with (ok/change key pressed) |
|
118 * @return the soft key selection |
|
119 */ |
|
120 TBool ShowPopupSettingPageL ( TUint32 aAttribute, TInt aCommandId ); |
|
121 |
|
122 /** |
|
123 * From CmPluginBaseSettingsDlg |
|
124 * Collects the packet data specific setting information for |
|
125 * displaying |
|
126 * |
|
127 * @since S60 3.2 |
|
128 * @param aItemArray an array of setting information |
|
129 */ |
|
130 TBool UpdateListBoxContentBearerSpecificL( TUint32 aAttribute ); |
|
131 |
|
132 private: // new functions |
|
133 |
|
134 /** |
|
135 * Text intialisation |
|
136 * |
|
137 * @since S60 v3.2 |
|
138 */ |
|
139 void InitTextsL(); |
|
140 |
|
141 private: |
|
142 |
|
143 CCmParentViewNotifier* iParent; |
|
144 |
|
145 TBool iIspossibleExit; |
|
146 TBool iExitImediate; |
|
147 }; |
|
148 |
|
149 /** IPv6 types */ |
|
150 enum TIpv6DNSTypes |
|
151 { |
|
152 EIpv6DNSDynamic = 0, //radio button page commands |
|
153 EIpv6DNSWellKnown, |
|
154 EIpv6DNSUserDefined |
|
155 }; |
|
156 |
|
157 |
|
158 #endif // CMPLUGINWLANIPV6_SETTINGS_DLG_H |