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 advanced view/edit. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CMPLUGINWLANADV_SETTINGS_DLG_ADV_H |
|
19 #define CMPLUGINWLANADV_SETTINGS_DLG_ADV_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <in_sock.h> |
|
23 #include <mcmdexec.h> |
|
24 #include <cmpbasesettingsdlgadv.h> |
|
25 #include "cmcommsdatnotifier.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CCmPluginBaseEng; |
|
29 |
|
30 /** |
|
31 * CmPluginWlanSettingsDlgAdv dialog class |
|
32 * |
|
33 * shows the advanced WLAN settings |
|
34 * |
|
35 * @since S60 v3.2 |
|
36 */ |
|
37 NONSHARABLE_CLASS( CmPluginWlanSettingsDlgAdv ) : |
|
38 public CmPluginBaseSettingsDlgAdv , |
|
39 public MCmCommsDatWatcher , |
|
40 public CCmParentViewNotifier |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Two-phase construction |
|
46 * |
|
47 * @since S60 v3.2 |
|
48 * @param aCmPluginBaseEng |
|
49 */ |
|
50 static CmPluginWlanSettingsDlgAdv* NewL( |
|
51 CCmPluginBaseEng& aCmPluginBaseEng ); |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CmPluginWlanSettingsDlgAdv(); |
|
56 |
|
57 public: // from base class |
|
58 |
|
59 /** |
|
60 * From CmPluginBaseSettingsDlg |
|
61 * Create and launch dialog |
|
62 * |
|
63 * @since S60 v3.2 |
|
64 * @return The code returned by the dialog's ExecuteLD |
|
65 */ |
|
66 TInt ConstructAndRunLD(); |
|
67 |
|
68 /** |
|
69 * From CmPluginBaseSettingsDlg |
|
70 * Updates bearer specific listbox contents |
|
71 * |
|
72 * @since S60 v3.2 |
|
73 * @param aItemArray item array containing the setting texts |
|
74 */ |
|
75 void UpdateListBoxContentBearerSpecificL( CDesCArray& itemArray ); |
|
76 |
|
77 public: |
|
78 |
|
79 /** |
|
80 * Record the object of parent view |
|
81 */ |
|
82 void RegisterParentView( CCmParentViewNotifier* aParent ); |
|
83 |
|
84 public: // from class MCmCommsDatWatcher |
|
85 |
|
86 /** |
|
87 * Watch changes in CommsDat |
|
88 */ |
|
89 void CommsDatChangesL(); |
|
90 |
|
91 public: // from class CCmParentViewNotifier |
|
92 |
|
93 void NotifyParentView( TInt aValue ); |
|
94 |
|
95 private: // construction |
|
96 |
|
97 /** |
|
98 * C++ constructor |
|
99 */ |
|
100 CmPluginWlanSettingsDlgAdv( CCmPluginBaseEng& aCmPluginBaseEng ); |
|
101 |
|
102 protected: |
|
103 /** From CAknDialog */ |
|
104 TBool OkToExitL( TInt aButtonId ); |
|
105 |
|
106 private: // From MEikCommandObserver |
|
107 |
|
108 /** |
|
109 * From MEikCommandObserver |
|
110 * see base class for description |
|
111 * |
|
112 * @since S60 3.2 |
|
113 * @param aCommandId |
|
114 */ |
|
115 void ProcessCommandL( TInt aCommandId ); |
|
116 |
|
117 private: // From CmPluginBaseSettingsDlg |
|
118 |
|
119 /** |
|
120 * From CmPluginBaseSettingsDlg |
|
121 * Determines which type of setting page should be shown |
|
122 * |
|
123 * @param aAttribute The setting to be changed by the setting page |
|
124 * @param aCommandId The command the attribute is changed with (ok/change key pressed) |
|
125 * @return the soft key selection |
|
126 */ |
|
127 TBool ShowPopupSettingPageL( TUint32 aAttribute, TInt aCommandId ); |
|
128 |
|
129 TBool ShowIpv4SettingPageL(); |
|
130 |
|
131 TBool ShowIpv6SettingPageL(); |
|
132 |
|
133 /** |
|
134 * Shows a radio button page for selecting the ad-hoc channel setting value |
|
135 * If 'User defined' is selected a numeric query dialog is displayed for entering the |
|
136 * channel number |
|
137 * |
|
138 * @since S60 3.2 |
|
139 * @return ETrue if the setting value has been changed |
|
140 */ |
|
141 TBool ShowAdhocChannelSettingPageL(); |
|
142 |
|
143 /** |
|
144 * From CmPluginBaseSettingsDlg |
|
145 * Collects the packet data specific setting information for |
|
146 * displaying |
|
147 * |
|
148 * @since S60 3.2 |
|
149 * @param aItemArray an array of setting information |
|
150 */ |
|
151 TBool UpdateListBoxContentBearerSpecificL( TUint32 aAttribute ); |
|
152 |
|
153 void HandleCommsDatChangeL(); |
|
154 |
|
155 private: // data |
|
156 |
|
157 /** |
|
158 * IPv6 supported indicator |
|
159 */ |
|
160 TBool iIpv6Supported; |
|
161 |
|
162 CCmParentViewNotifier* iParent; |
|
163 TInt iNotifyFromIp; |
|
164 }; |
|
165 |
|
166 /** menu commands for IPv setting pages */ |
|
167 enum TWlanIpvMenuCommands |
|
168 { |
|
169 ESettingPageCmdIpv4, |
|
170 ESettingPageCmdIpv6 |
|
171 }; |
|
172 |
|
173 /** Adhoc channel setting values */ |
|
174 enum TAdhocChannel |
|
175 { |
|
176 EAdhocAutomatic = 0, //radio button page commands |
|
177 EAdhocUserDefined |
|
178 }; |
|
179 |
|
180 #endif // CMPLUGINWLANADV_SETTINGS_DLG_ADV_H |
|