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: Declaration of the CApSelect class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <cdbcols.h> |
|
21 #include <commdb.h> |
|
22 #include <eikdef.h> |
|
23 #include <d32dbms.h> |
|
24 #include <featmgr.h> |
|
25 #include <comms-infras/commdb/protection/protectdb.h> |
|
26 |
|
27 #include <etelpckt.h> |
|
28 #ifdef __TEST_USE_SHARED_DATA |
|
29 #include <sharedDataValues.h> |
|
30 #endif // __TEST_USE_SHARED_DATA |
|
31 |
|
32 #include "ApListItem.h" |
|
33 #include "ApListItemList.h" |
|
34 #include "ApSelect.h" |
|
35 #include "ApUtils.h" |
|
36 #include "ApEngineCommons.h" |
|
37 #include <ApEngineConsts.h> |
|
38 #include "ApEngineLogger.h" |
|
39 #include "ApListItemKey.h" |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 // CONSTANTS |
|
45 const TInt KCursorNullPos = 0; |
|
46 const TInt KItemCountNull = 0; |
|
47 |
|
48 #ifdef __TEST_USE_SHARED_DATA |
|
49 // General Settings UID, Hardcoded |
|
50 const TUid KGeneralSettingsUid={0X100058EC}; |
|
51 #endif // __TEST_USE_SHARED_DATA |
|
52 |
|
53 |
|
54 const TInt KDIALOUT = 0; |
|
55 const TInt KGPRSIN = 1; |
|
56 const TInt KGPRSOUT = 2; |
|
57 const TInt KCDMA_ISP = 3; |
|
58 const TInt KVPN = 4; |
|
59 |
|
60 |
|
61 const TInt KUID = 0; |
|
62 const TInt KISPTYPE = 1; |
|
63 const TInt KBEARERTYPE = 2; |
|
64 |
|
65 |
|
66 |
|
67 // LOCAL CONSTANTS AND MACROS |
|
68 #define VPN_SERVICE_SNAP _S("HomeSNAP") |
|
69 |
|
70 // LOCAL FUNCTION PROTOTYPES |
|
71 |
|
72 // ================= MEMBER FUNCTIONS ======================= |
|
73 // Two-phased constructor. |
|
74 // --------------------------------------------------------- |
|
75 // CApSelect::NewLC |
|
76 // --------------------------------------------------------- |
|
77 // |
|
78 EXPORT_C CApSelect* CApSelect::NewLC( CCommsDatabase& aDb, |
|
79 TInt aIspFilter, |
|
80 TInt aBearerFilter, |
|
81 TInt aSortType ) |
|
82 { |
|
83 return NULL; |
|
84 } |
|
85 |
|
86 |
|
87 // Destructor |
|
88 // --------------------------------------------------------- |
|
89 // CApSelect::~CApSelect |
|
90 // --------------------------------------------------------- |
|
91 // |
|
92 EXPORT_C CApSelect::~CApSelect() |
|
93 { |
|
94 } |
|
95 |
|
96 |
|
97 // C++ default constructor can NOT contain any code that |
|
98 // might leave. |
|
99 // |
|
100 // --------------------------------------------------------- |
|
101 // CApSelect::CApSelect |
|
102 // --------------------------------------------------------- |
|
103 // |
|
104 EXPORT_C CApSelect::CApSelect() |
|
105 :iCursor( KCursorNullPos ), |
|
106 iCount( KItemCountNull ) |
|
107 { |
|
108 } |
|
109 |
|
110 |
|
111 // Symbian OS default constructor can leave. |
|
112 // --------------------------------------------------------- |
|
113 // CApSelect::ConstructL |
|
114 // --------------------------------------------------------- |
|
115 // |
|
116 EXPORT_C void CApSelect::ConstructL( CCommsDatabase& aDb, |
|
117 TInt aIspFilter, |
|
118 TInt aBearerFilter, |
|
119 TInt aSortType ) |
|
120 |
|
121 { |
|
122 } |
|
123 |
|
124 |
|
125 |
|
126 // --------------------------------------------------------- |
|
127 // CApSelect::SetFilters |
|
128 // --------------------------------------------------------- |
|
129 // |
|
130 EXPORT_C void CApSelect::SetFiltersL( TInt aIspFilter, |
|
131 TInt aBearerFilter, |
|
132 TInt aSortType ) |
|
133 { |
|
134 } |
|
135 |
|
136 |
|
137 // --------------------------------------------------------- |
|
138 // CApSelect::IspTypeFilter |
|
139 // --------------------------------------------------------- |
|
140 // |
|
141 EXPORT_C TInt CApSelect::IspTypeFilter() |
|
142 { |
|
143 return 0; |
|
144 } |
|
145 |
|
146 |
|
147 // --------------------------------------------------------- |
|
148 // CApSelect::BearerFilter |
|
149 // --------------------------------------------------------- |
|
150 // |
|
151 EXPORT_C TInt CApSelect::BearerFilter() |
|
152 { |
|
153 return 0; |
|
154 } |
|
155 |
|
156 |
|
157 // --------------------------------------------------------- |
|
158 // CApSelect::SortOrder |
|
159 // --------------------------------------------------------- |
|
160 // |
|
161 EXPORT_C TInt CApSelect::SortOrder() |
|
162 { |
|
163 return 0; |
|
164 } |
|
165 |
|
166 |
|
167 |
|
168 // --------------------------------------------------------- |
|
169 // CApSelect::MoveToFirst |
|
170 // --------------------------------------------------------- |
|
171 // |
|
172 EXPORT_C TBool CApSelect::MoveToFirst() |
|
173 { |
|
174 return EFalse; |
|
175 } |
|
176 |
|
177 |
|
178 // --------------------------------------------------------- |
|
179 // CApSelect::MoveNext |
|
180 // --------------------------------------------------------- |
|
181 // |
|
182 EXPORT_C TBool CApSelect::MoveNext() |
|
183 { |
|
184 return EFalse; |
|
185 } |
|
186 |
|
187 |
|
188 // --------------------------------------------------------- |
|
189 // CApSelect::MoveLast |
|
190 // --------------------------------------------------------- |
|
191 // |
|
192 EXPORT_C TBool CApSelect::MoveLast() |
|
193 { |
|
194 return EFalse; |
|
195 } |
|
196 |
|
197 |
|
198 // --------------------------------------------------------- |
|
199 // CApSelect::MovePrev |
|
200 // --------------------------------------------------------- |
|
201 // |
|
202 EXPORT_C TBool CApSelect::MovePrev() |
|
203 { |
|
204 return EFalse; |
|
205 } |
|
206 |
|
207 |
|
208 // --------------------------------------------------------- |
|
209 // CApSelect::Count |
|
210 // --------------------------------------------------------- |
|
211 // |
|
212 EXPORT_C TUint32 CApSelect::Count() |
|
213 { |
|
214 return 0; |
|
215 } |
|
216 |
|
217 |
|
218 // --------------------------------------------------------- |
|
219 // CApSelect::Name |
|
220 // --------------------------------------------------------- |
|
221 // |
|
222 EXPORT_C const TDesC& CApSelect::Name() |
|
223 { |
|
224 User::Leave( KErrNotSupported ); |
|
225 } |
|
226 |
|
227 |
|
228 // --------------------------------------------------------- |
|
229 // CApSelect::Uid |
|
230 // --------------------------------------------------------- |
|
231 // |
|
232 EXPORT_C TUint32 CApSelect::Uid() |
|
233 { |
|
234 return 0; |
|
235 } |
|
236 |
|
237 |
|
238 // --------------------------------------------------------- |
|
239 // CApSelect::Type |
|
240 // --------------------------------------------------------- |
|
241 // |
|
242 EXPORT_C TCommsDbIspType CApSelect::Type() |
|
243 { |
|
244 User::Leave( KErrNotSupported ); |
|
245 } |
|
246 |
|
247 |
|
248 // --------------------------------------------------------- |
|
249 // CApSelect::BearerType |
|
250 // --------------------------------------------------------- |
|
251 // |
|
252 EXPORT_C TApBearerType CApSelect::BearerType() |
|
253 { |
|
254 User::Leave( KErrNotSupported ); |
|
255 } |
|
256 |
|
257 |
|
258 |
|
259 |
|
260 // --------------------------------------------------------- |
|
261 // CApSelect::AllListItemDataL |
|
262 // --------------------------------------------------------- |
|
263 // |
|
264 EXPORT_C TInt CApSelect::AllListItemDataL( CApListItemList& aList ) |
|
265 { |
|
266 return 0; |
|
267 } |
|
268 |
|
269 |
|
270 |
|
271 // --------------------------------------------------------- |
|
272 // CApSelect::IsReadOnly |
|
273 // --------------------------------------------------------- |
|
274 // |
|
275 EXPORT_C TBool CApSelect::IsReadOnly() const |
|
276 { |
|
277 return EFalse; |
|
278 } |
|
279 |
|
280 |
|
281 |
|
282 // ================= OTHER EXPORTED FUNCTIONS ============== |
|
283 |
|
284 // ================== OTHER MEMBER FUNCTIONS =============== |
|
285 |
|
286 |
|
287 |
|
288 // --------------------------------------------------------- |
|
289 // CApSelect::DoUpdate |
|
290 // --------------------------------------------------------- |
|
291 // |
|
292 TInt CApSelect::DoUpdateL() |
|
293 { |
|
294 return KErrNotSupported; |
|
295 } |
|
296 |
|
297 |
|
298 |
|
299 |
|
300 |
|
301 // --------------------------------------------------------- |
|
302 // CApSelect::GetFilteredSortedWapTableViewLC |
|
303 // --------------------------------------------------------- |
|
304 // |
|
305 CCommsDbTableView* CApSelect::GetFilteredSortedWapTableViewLC() |
|
306 { |
|
307 return NULL; |
|
308 } |
|
309 |
|
310 |
|
311 |
|
312 |
|
313 |
|
314 // --------------------------------------------------------- |
|
315 // CApSelect::GetFilteredSortedIpBearerTableViewLC() |
|
316 // --------------------------------------------------------- |
|
317 // |
|
318 CCommsDbTableView* CApSelect::GetFilteredSortedIpBearerTableViewLC() |
|
319 { |
|
320 return NULL; |
|
321 } |
|
322 |
|
323 |
|
324 |
|
325 // --------------------------------------------------------- |
|
326 // CApSelect::GetFilteredSortedIspOutTableViewLC() |
|
327 // --------------------------------------------------------- |
|
328 // |
|
329 CCommsDbTableView* CApSelect::GetFilteredSortedIspOutTableViewLC() |
|
330 { |
|
331 return NULL; |
|
332 } |
|
333 |
|
334 |
|
335 |
|
336 // --------------------------------------------------------- |
|
337 // CApSelect::GetFilteredSortedGprsTableViewLC() |
|
338 // --------------------------------------------------------- |
|
339 // |
|
340 CCommsDbTableView* CApSelect::GetFilteredSortedGprsTableViewLC( TBool aIn ) |
|
341 { |
|
342 return NULL; |
|
343 } |
|
344 |
|
345 |
|
346 |
|
347 // --------------------------------------------------------- |
|
348 // CApSelect::GetUintValuesL |
|
349 // --------------------------------------------------------- |
|
350 // |
|
351 void CApSelect::GetUintValuesL( CCommsDbTableView* aTable, |
|
352 const TDesC& aField, |
|
353 CArrayFixFlat<TUint32>& aArray ) |
|
354 { |
|
355 } |
|
356 |
|
357 |
|
358 |
|
359 // --------------------------------------------------------- |
|
360 // CApSelect::GetProtValuesL |
|
361 // --------------------------------------------------------- |
|
362 // |
|
363 void CApSelect::GetProtValuesL( CCommsDbTableView* aTable, |
|
364 CArrayFixFlat<TUint32>& aArray ) |
|
365 { |
|
366 } |
|
367 |
|
368 |
|
369 |
|
370 |
|
371 // --------------------------------------------------------- |
|
372 // CApSelect::GetTextValuesL |
|
373 // --------------------------------------------------------- |
|
374 // |
|
375 void CApSelect::GetTextValuesL( CCommsDbTableView* aTable, |
|
376 const TDesC& aField, |
|
377 CArrayPtrFlat<HBufC>& aArray ) |
|
378 { |
|
379 } |
|
380 |
|
381 |
|
382 |
|
383 // --------------------------------------------------------- |
|
384 // CApSelect::GetLongTextValuesL |
|
385 // --------------------------------------------------------- |
|
386 // |
|
387 void CApSelect::GetLongTextValuesL( CCommsDbTableView* aTable, |
|
388 const TDesC& aField, |
|
389 CArrayPtrFlat<HBufC>& aArray ) |
|
390 { |
|
391 } |
|
392 |
|
393 |
|
394 |
|
395 // --------------------------------------------------------- |
|
396 // CApSelect::IsInArray |
|
397 // --------------------------------------------------------- |
|
398 // |
|
399 TBool CApSelect::IsInArray( CArrayFixFlat<TUint32>* aArray, TUint32 aValue ) |
|
400 { |
|
401 return EFalse; |
|
402 } |
|
403 |
|
404 |
|
405 |
|
406 // --------------------------------------------------------- |
|
407 // CApSelect::PosInArray |
|
408 // --------------------------------------------------------- |
|
409 // |
|
410 TInt CApSelect::PosInArray( CArrayFixFlat<TUint32>* aArray, TUint32 aValue ) |
|
411 { |
|
412 return KErrNotFound; |
|
413 } |
|
414 |
|
415 |
|
416 // --------------------------------------------------------- |
|
417 // CApSelect::GetItemPos |
|
418 // --------------------------------------------------------- |
|
419 // |
|
420 TInt CApSelect::GetItemPos( CApListItemList* aList, TUint32 aId ) |
|
421 { |
|
422 return KErrNotFound; |
|
423 } |
|
424 |
|
425 |
|
426 |
|
427 // --------------------------------------------------------- |
|
428 // CApSelect::OpenViewMatchingTextL |
|
429 // --------------------------------------------------------- |
|
430 // |
|
431 CCommsDbTableView* CApSelect::OpenViewMatchingTextL( |
|
432 const TDesC& aTableName, |
|
433 const TDesC& aColumnToMatch, |
|
434 const TDesC16& aValueToMatch ) |
|
435 { |
|
436 return NULL; |
|
437 } |
|
438 |
|
439 |
|
440 |
|
441 // --------------------------------------------------------- |
|
442 // CApSelect::GetIspValuesL |
|
443 // --------------------------------------------------------- |
|
444 // |
|
445 void CApSelect::GetIspValuesL( CCommsDbTableView* aTable, |
|
446 CArrayFixFlat<TUint32[3]>* aArray, |
|
447 const TDesC& aColName ) |
|
448 { |
|
449 } |
|
450 |
|
451 |
|
452 |
|
453 |
|
454 // --------------------------------------------------------- |
|
455 // CApSelect::GetIapPos |
|
456 // --------------------------------------------------------- |
|
457 // |
|
458 TInt CApSelect::GetIapPos( CArrayFixFlat<TUint32[3]>* aArray, TUint32 aValue ) |
|
459 { |
|
460 return KErrNotFound; |
|
461 } |
|
462 |
|
463 |
|
464 |
|
465 // --------------------------------------------------------- |
|
466 // CApSelect::SortLocalisedNameL() |
|
467 // --------------------------------------------------------- |
|
468 // |
|
469 void CApSelect::SortLocalisedNameL( TBool aAscending ) |
|
470 { |
|
471 } |
|
472 |
|
473 |
|
474 |
|
475 |
|
476 // --------------------------------------------------------- |
|
477 // CApSelect::SortUidL() |
|
478 // --------------------------------------------------------- |
|
479 // |
|
480 void CApSelect::SortUidL( TBool aAscending ) |
|
481 { |
|
482 } |
|
483 |
|
484 // --------------------------------------------------------- |
|
485 // CApSelect::NewLC() |
|
486 // --------------------------------------------------------- |
|
487 // |
|
488 EXPORT_C CApSelect* CApSelect::NewLC( CCommsDatabase& aDb, |
|
489 TInt aIspFilter, |
|
490 TInt aBearerFilter, |
|
491 TInt aSortType, |
|
492 TInt aReqIpvType |
|
493 ) |
|
494 { |
|
495 return NULL; |
|
496 } |
|
497 |
|
498 |
|
499 |
|
500 // --------------------------------------------------------- |
|
501 // CApSelect::ConstructL |
|
502 // --------------------------------------------------------- |
|
503 // |
|
504 EXPORT_C void CApSelect::ConstructL( CCommsDatabase& aDb, |
|
505 TInt aIspFilter, |
|
506 TInt aBearerFilter, |
|
507 TInt aSortType, |
|
508 TInt aReqIpvType ) |
|
509 |
|
510 { |
|
511 } |
|
512 |
|
513 |
|
514 |
|
515 |
|
516 // --------------------------------------------------------- |
|
517 // CApSelect::NewLC() |
|
518 // --------------------------------------------------------- |
|
519 // |
|
520 EXPORT_C CApSelect* CApSelect::NewLC( CCommsDatabase& aDb, |
|
521 TInt aIspFilter, |
|
522 TInt aBearerFilter, |
|
523 TInt aSortType, |
|
524 TInt aReqIpvType, |
|
525 TVpnFilterType aVpnFilterType |
|
526 ) |
|
527 { |
|
528 return NULL; |
|
529 } |
|
530 |
|
531 |
|
532 |
|
533 // --------------------------------------------------------- |
|
534 // CApSelect::NewLC() |
|
535 // --------------------------------------------------------- |
|
536 // |
|
537 EXPORT_C CApSelect* CApSelect::NewLC( CCommsDatabase& aDb, |
|
538 TInt aIspFilter, |
|
539 TInt aBearerFilter, |
|
540 TInt aSortType, |
|
541 TInt aReqIpvType, |
|
542 TVpnFilterType aVpnFilterType, |
|
543 TBool aIncludeEasyWlan ) |
|
544 { |
|
545 return NULL; |
|
546 } |
|
547 |
|
548 |
|
549 // --------------------------------------------------------- |
|
550 // CApSelect::ConstructL |
|
551 // --------------------------------------------------------- |
|
552 // |
|
553 EXPORT_C void CApSelect::ConstructL( CCommsDatabase& aDb, |
|
554 TInt aIspFilter, |
|
555 TInt aBearerFilter, |
|
556 TInt aSortType, |
|
557 TInt aReqIpvType, |
|
558 TVpnFilterType aVpnFilterType ) |
|
559 { |
|
560 } |
|
561 |
|
562 |
|
563 |
|
564 |
|
565 |
|
566 // --------------------------------------------------------- |
|
567 // CApSelect::ConstructL |
|
568 // --------------------------------------------------------- |
|
569 // |
|
570 EXPORT_C void CApSelect::ConstructL( CCommsDatabase& aDb, |
|
571 TInt aIspFilter, |
|
572 TInt aBearerFilter, |
|
573 TInt aSortType, |
|
574 TInt aReqIpvType, |
|
575 TVpnFilterType aVpnFilterType, |
|
576 TBool aIncludeEasyWlan ) |
|
577 { |
|
578 } |
|
579 |
|
580 |
|
581 |
|
582 // --------------------------------------------------------- |
|
583 // CApSelect::SetFiltersL |
|
584 // --------------------------------------------------------- |
|
585 // |
|
586 void CApSelect::SetFiltersL( TInt aIspFilter, TInt aBearerFilter, |
|
587 TInt aSortType, TInt aReqIpvType, |
|
588 TInt aVpnFilterType ) |
|
589 { |
|
590 } |
|
591 |
|
592 |
|
593 |
|
594 // --------------------------------------------------------- |
|
595 // CApSelect::GetVpnTableViewLC() |
|
596 // --------------------------------------------------------- |
|
597 // |
|
598 CCommsDbTableView* CApSelect::GetVpnTableViewLC( ) |
|
599 { |
|
600 return NULL; |
|
601 } |
|
602 |
|
603 |
|
604 |
|
605 // --------------------------------------------------------- |
|
606 // CApSelect::GetVpnValuesL |
|
607 // --------------------------------------------------------- |
|
608 // |
|
609 void CApSelect::GetVpnValuesL( CCommsDbTableView* aTable, |
|
610 CArrayFixFlat<TVpnData>* aVpnArray ) |
|
611 { // get the VPN values |
|
612 } |
|
613 |
|
614 |
|
615 |
|
616 |
|
617 |
|
618 // --------------------------------------------------------- |
|
619 // CApSelect::AddLanL |
|
620 // --------------------------------------------------------- |
|
621 // |
|
622 void CApSelect::AddLanL( TBool aWlan ) |
|
623 { |
|
624 } |
|
625 |
|
626 |
|
627 // --------------------------------------------------------- |
|
628 // CApSelect::GetSupportedBearerSet |
|
629 // --------------------------------------------------------- |
|
630 // |
|
631 TInt CApSelect::GetSupportedBearerSet( TInt aBearerFilter ) |
|
632 { |
|
633 return 0; |
|
634 } |
|
635 |
|
636 |
|
637 // End of File |
|