1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Defines CApNetSelPopupList for access point selection. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 |
|
22 #include <ApNetworkItem.h> |
|
23 #include <featmgr.h> |
|
24 |
|
25 #include "ApSettingsHandlerUI.hrh" |
|
26 |
|
27 |
|
28 #include "ApNetSelPopupList.h" |
|
29 #include "ApNetSelectorListBoxModel.h" |
|
30 #include "ApSettingsModel.h" |
|
31 #include <apsetui.rsg> |
|
32 #include "ApsettingshandleruiImpl.h" |
|
33 |
|
34 |
|
35 #include "ApSettingsHandlerLogger.h" |
|
36 |
|
37 #include "AccessPointTextSettingPage.h" |
|
38 |
|
39 |
|
40 |
|
41 #include <ApProtHandler.h> // for protection of settings |
|
42 |
|
43 |
|
44 // ================= MEMBER FUNCTIONS ======================= |
|
45 |
|
46 // --------------------------------------------------------- |
|
47 // CApNetSelPopupList::NewL |
|
48 // --------------------------------------------------------- |
|
49 // |
|
50 CApNetSelPopupList* CApNetSelPopupList::NewL( CApSettingsModel& aModel, |
|
51 CApSettingsHandlerImpl& aHandler, |
|
52 TInt& aCurrentSelectionIndex, |
|
53 TInt& aPreferredUid, |
|
54 TUint32& aEventStore, |
|
55 CDesCArrayFlat* aItemArray, |
|
56 TBool aNeedsNone ) |
|
57 { |
|
58 return NULL; |
|
59 } |
|
60 |
|
61 |
|
62 // --------------------------------------------------------- |
|
63 // CApNetSelPopupList::ConstructL |
|
64 // --------------------------------------------------------- |
|
65 // |
|
66 void CApNetSelPopupList::ConstructL() |
|
67 { |
|
68 } |
|
69 |
|
70 |
|
71 // Destructor |
|
72 CApNetSelPopupList::~CApNetSelPopupList() |
|
73 { |
|
74 } |
|
75 |
|
76 |
|
77 |
|
78 // Constructor |
|
79 CApNetSelPopupList::CApNetSelPopupList( |
|
80 CApSettingsModel& aModel, |
|
81 CApSettingsHandlerImpl& aHandler, |
|
82 TInt& aIndex, TInt& aPreferredUid, |
|
83 CDesCArrayFlat* aItemArray, |
|
84 TUint32& aEventStore, TBool aNeedsNone |
|
85 ) |
|
86 :CAknRadioButtonSettingPage( R_POPUP_LIST_NETWORK_SETTING_PAGE, |
|
87 aIndex, aItemArray ), |
|
88 iDataModel( &aModel ), |
|
89 iSelected( &aPreferredUid ), |
|
90 iHandler( &aHandler ), |
|
91 iEventStore( &aEventStore ), |
|
92 iNeedsNone( aNeedsNone ), |
|
93 iNeedUnlock( EFalse ) |
|
94 { |
|
95 } |
|
96 |
|
97 |
|
98 |
|
99 |
|
100 |
|
101 // --------------------------------------------------------- |
|
102 // CApNetSelPopupList::SetHighlighted() |
|
103 // called when needs to change the highlighting |
|
104 // --------------------------------------------------------- |
|
105 // |
|
106 void CApNetSelPopupList::SetHighlighted() |
|
107 { |
|
108 } |
|
109 |
|
110 |
|
111 // --------------------------------------------------------- |
|
112 // CApNetSelPopupList::GetHelpContext() |
|
113 // --------------------------------------------------------- |
|
114 // |
|
115 void CApNetSelPopupList::GetHelpContext(TCoeHelpContext& aContext) const |
|
116 { |
|
117 } |
|
118 |
|
119 |
|
120 // --------------------------------------------------------- |
|
121 // CApNetSelPopupList::HandleApDbEventL |
|
122 // called by the active access point framework |
|
123 // --------------------------------------------------------- |
|
124 // |
|
125 void CApNetSelPopupList::HandleApDbEventL( TEvent anEvent ) |
|
126 { |
|
127 } |
|
128 |
|
129 |
|
130 // --------------------------------------------------------- |
|
131 // CApNetSelPopupList::ActivateL() |
|
132 // called after the dialog is shown |
|
133 // used to handle empty list - query |
|
134 // --------------------------------------------------------- |
|
135 // |
|
136 void CApNetSelPopupList::ActivateL() |
|
137 { |
|
138 } |
|
139 |
|
140 |
|
141 |
|
142 // --------------------------------------------------------- |
|
143 // CApNetSelPopupList::SelectCurrentItemL() |
|
144 // called after the setting had been changed |
|
145 // --------------------------------------------------------- |
|
146 // |
|
147 void CApNetSelPopupList::SelectCurrentItemL() |
|
148 { |
|
149 } |
|
150 |
|
151 |
|
152 |
|
153 // --------------------------------------------------------- |
|
154 // CApNetSelPopupList::OkToExitL( TInt aButtonId ) |
|
155 // called by framework when the OK button is pressed |
|
156 // --------------------------------------------------------- |
|
157 // |
|
158 TBool CApNetSelPopupList::OkToExitL( TInt aButtonId ) |
|
159 { |
|
160 return EFalse; |
|
161 } |
|
162 |
|
163 |
|
164 |
|
165 // --------------------------------------------------------- |
|
166 // CApNetSelPopupList::FillListBoxWithDataL() |
|
167 // called when listbox needs to be filled with data |
|
168 // --------------------------------------------------------- |
|
169 // |
|
170 void CApNetSelPopupList::FillListBoxWithDataL() |
|
171 { |
|
172 } |
|
173 |
|
174 |
|
175 // --------------------------------------------------------- |
|
176 // CApNetSelPopupList::SetSelectedL() |
|
177 // --------------------------------------------------------- |
|
178 // |
|
179 void CApNetSelPopupList::SetSelectedL() |
|
180 { |
|
181 } |
|
182 |
|
183 |
|
184 |
|
185 |
|
186 // --------------------------------------------------------- |
|
187 // CApNetSelPopupList::DynInitMenuPaneL |
|
188 // --------------------------------------------------------- |
|
189 // |
|
190 void CApNetSelPopupList::DynInitMenuPaneL( TInt aResourceId, |
|
191 CEikMenuPane* aMenuPane ) |
|
192 { |
|
193 } |
|
194 |
|
195 |
|
196 // From MEikCommandObserver |
|
197 // --------------------------------------------------------- |
|
198 // CApNetSelPopupList::ProcessCommandL |
|
199 // --------------------------------------------------------- |
|
200 // |
|
201 void CApNetSelPopupList::ProcessCommandL( TInt aCommandId ) |
|
202 { |
|
203 } |
|
204 |
|
205 |
|
206 |
|
207 // From CCoeControl |
|
208 // --------------------------------------------------------- |
|
209 // CApNetSelPopupList::OfferKeyEventL |
|
210 // --------------------------------------------------------- |
|
211 // |
|
212 TKeyResponse CApNetSelPopupList::OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
213 TEventCode aType) |
|
214 { |
|
215 User::Leave( KErrNotSupported ); |
|
216 } |
|
217 |
|
218 |
|
219 |
|
220 // --------------------------------------------------------- |
|
221 // CApNetSelPopupList::Need2DeleteSelect |
|
222 // --------------------------------------------------------- |
|
223 // |
|
224 TBool CApNetSelPopupList::Need2DeleteSelect( TInt aResourceId ) |
|
225 { |
|
226 return EFalse; |
|
227 } |
|
228 |
|
229 |
|
230 |
|
231 // --------------------------------------------------------- |
|
232 // CApNetSelPopupList::Need2DeleteOpenDelete |
|
233 // --------------------------------------------------------- |
|
234 // |
|
235 TBool CApNetSelPopupList::Need2DeleteOpenDelete( TInt aResourceId ) |
|
236 { |
|
237 return EFalse; |
|
238 } |
|
239 |
|
240 |
|
241 |
|
242 // --------------------------------------------------------- |
|
243 // CApNetSelPopupList::HandleCreateNewNetworkGroupL |
|
244 // --------------------------------------------------------- |
|
245 // |
|
246 TBool CApNetSelPopupList::HandleCreateNewNetworkGroupL() |
|
247 { |
|
248 return EFalse; |
|
249 } |
|
250 |
|
251 // End of File |
|