williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
* This component and the accompanying materials are made available
|
williamr@2
|
5 |
* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@2
|
7 |
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* Initial Contributors:
|
williamr@2
|
10 |
* Nokia Corporation - initial contribution.
|
williamr@2
|
11 |
*
|
williamr@2
|
12 |
* Contributors:
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* Description: Declaration of the CApSelect class.
|
williamr@2
|
15 |
*
|
williamr@2
|
16 |
*/
|
williamr@2
|
17 |
|
williamr@2
|
18 |
|
williamr@2
|
19 |
#ifndef CAPSELECT_H
|
williamr@2
|
20 |
#define CAPSELECT_H
|
williamr@2
|
21 |
|
williamr@2
|
22 |
// Deprecation warning
|
williamr@2
|
23 |
#warning This header file has been deprecated. Will be removed in one of the next SDK releases.
|
williamr@2
|
24 |
|
williamr@2
|
25 |
|
williamr@2
|
26 |
// INCLUDES
|
williamr@2
|
27 |
#include <commdb.h>
|
williamr@2
|
28 |
#include <ApEngineVer.h>
|
williamr@2
|
29 |
#include <ApEngineConsts.h>
|
williamr@2
|
30 |
|
williamr@2
|
31 |
|
williamr@2
|
32 |
// FORWARD DECLARATIONS
|
williamr@2
|
33 |
class CApListItem;
|
williamr@2
|
34 |
class CApListItemList;
|
williamr@2
|
35 |
class CApUtils;
|
williamr@2
|
36 |
|
williamr@2
|
37 |
|
williamr@2
|
38 |
|
williamr@2
|
39 |
enum TVpnFilterType
|
williamr@2
|
40 |
{
|
williamr@2
|
41 |
EVpnFilterVpnOnly, ///< Shows only VPN access points
|
williamr@2
|
42 |
EVpnFilterNoVpn, ///< Shows only non-VPN access points
|
williamr@2
|
43 |
EVpnFilterBoth ///< Shows both normal and VPN access points
|
williamr@2
|
44 |
};
|
williamr@2
|
45 |
|
williamr@2
|
46 |
|
williamr@2
|
47 |
// CLASS DECLARATION
|
williamr@2
|
48 |
// Extra data holder
|
williamr@2
|
49 |
typedef struct
|
williamr@2
|
50 |
{
|
williamr@2
|
51 |
TInt iMaxIndex;
|
williamr@2
|
52 |
TInt iReqIpvType;
|
williamr@2
|
53 |
TInt iIsIpv6Supported;
|
williamr@2
|
54 |
TInt iExtra;
|
williamr@2
|
55 |
TBool iIsFeatureManagerInitialised;
|
williamr@2
|
56 |
TBool iCdma;
|
williamr@2
|
57 |
TInt iVpnFilterType; // TVpnFilterType values !!
|
williamr@2
|
58 |
TBool iWlanSupported;
|
williamr@2
|
59 |
TBool iIncludeEasyWlan;
|
williamr@2
|
60 |
}TSelectExtra;
|
williamr@2
|
61 |
|
williamr@2
|
62 |
|
williamr@2
|
63 |
|
williamr@2
|
64 |
typedef struct
|
williamr@2
|
65 |
{
|
williamr@2
|
66 |
TUint32 iVpnIapId;
|
williamr@2
|
67 |
TUint32 iHomeIapId;
|
williamr@2
|
68 |
HBufC * iName;
|
williamr@2
|
69 |
}TVpnData;
|
williamr@2
|
70 |
|
williamr@2
|
71 |
|
williamr@2
|
72 |
/**
|
williamr@2
|
73 |
* This class is used to help client's access point selection.
|
williamr@2
|
74 |
* Selection can be tailored with specific filters, rules and sort order.
|
williamr@2
|
75 |
* Provides methods for setting and getting filters and sort order.
|
williamr@2
|
76 |
*
|
williamr@2
|
77 |
*/
|
williamr@2
|
78 |
class CApSelect :public CBase
|
williamr@2
|
79 |
{
|
williamr@2
|
80 |
public: // Constructors and destructor
|
williamr@2
|
81 |
|
williamr@2
|
82 |
/**
|
williamr@2
|
83 |
* Two-phased constructor. Leaves on failure, places instance
|
williamr@2
|
84 |
* on cleanup stack.
|
williamr@2
|
85 |
* @param aDb a pointer to a CCommsDataBase.
|
williamr@2
|
86 |
* @param aIspTypeFilter Filtering criteria on ISP type
|
williamr@2
|
87 |
* Possible values are:
|
williamr@2
|
88 |
* KEApIspTypeInternetOnly, KEApIspTypeWAPOnly,
|
williamr@2
|
89 |
* KEApIspTypeInternetAndWAP, KEApIspTypeWAPMandatory
|
williamr@2
|
90 |
* KEApIspTypeAll and their combinations.
|
williamr@2
|
91 |
* @param aBearerFilter Filtering criteria on bearer type
|
williamr@2
|
92 |
* Possible values are the TApBearer enums and
|
williamr@2
|
93 |
* their combinations (or-ed).
|
williamr@2
|
94 |
* @param aSortType Specifies the sort order to use.
|
williamr@2
|
95 |
* Possible values are:
|
williamr@2
|
96 |
* KEApSortUidAscending, KEApSortUidDescending,
|
williamr@2
|
97 |
* KEApSortNameAscending, KEApSortNameDescending
|
williamr@2
|
98 |
* @return The constructed CApSelect.
|
williamr@2
|
99 |
*
|
williamr@2
|
100 |
* @deprecated
|
williamr@2
|
101 |
*/
|
williamr@2
|
102 |
IMPORT_C static CApSelect* NewLC(
|
williamr@2
|
103 |
CCommsDatabase& aDb,
|
williamr@2
|
104 |
TInt aIspFilter,
|
williamr@2
|
105 |
TInt aBearerFilter,
|
williamr@2
|
106 |
TInt aSortType
|
williamr@2
|
107 |
);
|
williamr@2
|
108 |
|
williamr@2
|
109 |
|
williamr@2
|
110 |
/**
|
williamr@2
|
111 |
* Two-phased constructor. Leaves on failure, places instance
|
williamr@2
|
112 |
* on cleanup stack.
|
williamr@2
|
113 |
* @param aDb a pointer to a CCommsDataBase.
|
williamr@2
|
114 |
* @param aIspTypeFilter Filtering criteria on ISP type
|
williamr@2
|
115 |
* Possible values are:
|
williamr@2
|
116 |
* KEApIspTypeInternetOnly, KEApIspTypeWAPOnly,
|
williamr@2
|
117 |
* KEApIspTypeInternetAndWAP, KEApIspTypeWAPMandatory
|
williamr@2
|
118 |
* KEApIspTypeAll and their combinations.
|
williamr@2
|
119 |
* @param aBearerFilter Filtering criteria on bearer type
|
williamr@2
|
120 |
* Possible values are the TApBearer enums and
|
williamr@2
|
121 |
* their combinations (or-ed).
|
williamr@2
|
122 |
* @param aSortType Specifies the sort order to use.
|
williamr@2
|
123 |
* Possible values are:
|
williamr@2
|
124 |
* KEApSortUidAscending, KEApSortUidDescending,
|
williamr@2
|
125 |
* KEApSortNameAscending, KEApSortNameDescending
|
williamr@2
|
126 |
* @param aReqIpvType Filtering criteria on the IPv type of the
|
williamr@2
|
127 |
* access point. In case of GPRS, GPRS_PDP_TYPE holds it, while
|
williamr@2
|
128 |
* in case of CSD, all CSD access points are
|
williamr@2
|
129 |
* considered to be IPv4 & IPv6 (both)
|
williamr@2
|
130 |
* @return The constructed CApSelect.
|
williamr@2
|
131 |
*
|
williamr@2
|
132 |
* @deprecated
|
williamr@2
|
133 |
*/
|
williamr@2
|
134 |
IMPORT_C static CApSelect* NewLC(
|
williamr@2
|
135 |
CCommsDatabase& aDb,
|
williamr@2
|
136 |
TInt aIspFilter,
|
williamr@2
|
137 |
TInt aBearerFilter,
|
williamr@2
|
138 |
TInt aSortType,
|
williamr@2
|
139 |
TInt aReqIpvType
|
williamr@2
|
140 |
);
|
williamr@2
|
141 |
|
williamr@2
|
142 |
|
williamr@2
|
143 |
|
williamr@2
|
144 |
/**
|
williamr@2
|
145 |
* Two-phased constructor. Leaves on failure, places instance
|
williamr@2
|
146 |
* on cleanup stack.
|
williamr@2
|
147 |
* @param aDb a pointer to a CCommsDataBase.
|
williamr@2
|
148 |
* @param aIspTypeFilter Filtering criteria on ISP type
|
williamr@2
|
149 |
* Possible values are:
|
williamr@2
|
150 |
* KEApIspTypeInternetOnly, KEApIspTypeWAPOnly,
|
williamr@2
|
151 |
* KEApIspTypeInternetAndWAP, KEApIspTypeWAPMandatory
|
williamr@2
|
152 |
* KEApIspTypeAll and their combinations.
|
williamr@2
|
153 |
* @param aBearerFilter Filtering criteria on bearer type
|
williamr@2
|
154 |
* Possible values are the TApBearer enums and
|
williamr@2
|
155 |
* their combinations (or-ed).
|
williamr@2
|
156 |
* @param aSortType Specifies the sort order to use.
|
williamr@2
|
157 |
* Possible values are:
|
williamr@2
|
158 |
* KEApSortUidAscending, KEApSortUidDescending,
|
williamr@2
|
159 |
* KEApSortNameAscending, KEApSortNameDescending
|
williamr@2
|
160 |
* @param aReqIpvType Filtering criteria on the IPv type of the
|
williamr@2
|
161 |
* access point. In case of GPRS, GPRS_PDP_TYPE holds it, while
|
williamr@2
|
162 |
* in case of CSD, all CSD access points are
|
williamr@2
|
163 |
* considered to be IPv4 & IPv6 (both)
|
williamr@2
|
164 |
* @param aVpnFilterType a TVpnFilterType enum specifying the
|
williamr@2
|
165 |
* vpn filtering.
|
williamr@2
|
166 |
* @return The constructed CApSelect.
|
williamr@2
|
167 |
*
|
williamr@2
|
168 |
* @deprecated
|
williamr@2
|
169 |
*/
|
williamr@2
|
170 |
IMPORT_C static CApSelect* NewLC(
|
williamr@2
|
171 |
CCommsDatabase& aDb,
|
williamr@2
|
172 |
TInt aIspFilter,
|
williamr@2
|
173 |
TInt aBearerFilter,
|
williamr@2
|
174 |
TInt aSortType,
|
williamr@2
|
175 |
TInt aReqIpvType,
|
williamr@2
|
176 |
TVpnFilterType aVpnFilterType );
|
williamr@2
|
177 |
|
williamr@2
|
178 |
|
williamr@2
|
179 |
/**
|
williamr@2
|
180 |
* Two-phased constructor. Leaves on failure, places instance
|
williamr@2
|
181 |
* on cleanup stack.
|
williamr@2
|
182 |
* @param aDb a pointer to a CCommsDataBase.
|
williamr@2
|
183 |
* @param aIspTypeFilter Filtering criteria on ISP type
|
williamr@2
|
184 |
* Possible values are:
|
williamr@2
|
185 |
* KEApIspTypeInternetOnly, KEApIspTypeWAPOnly,
|
williamr@2
|
186 |
* KEApIspTypeInternetAndWAP, KEApIspTypeWAPMandatory
|
williamr@2
|
187 |
* KEApIspTypeAll and their combinations.
|
williamr@2
|
188 |
* @param aBearerFilter Filtering criteria on bearer type
|
williamr@2
|
189 |
* Possible values are the TApBearer enums and
|
williamr@2
|
190 |
* their combinations (or-ed).
|
williamr@2
|
191 |
* @param aSortType Specifies the sort order to use.
|
williamr@2
|
192 |
* Possible values are:
|
williamr@2
|
193 |
* KEApSortUidAscending, KEApSortUidDescending,
|
williamr@2
|
194 |
* KEApSortNameAscending, KEApSortNameDescending
|
williamr@2
|
195 |
* @param aReqIpvType Filtering criteria on the IPv type of the
|
williamr@2
|
196 |
* access point. In case of GPRS, GPRS_PDP_TYPE holds it, while
|
williamr@2
|
197 |
* in case of CSD, all CSD access points are
|
williamr@2
|
198 |
* considered to be IPv4 & IPv6 (both)
|
williamr@2
|
199 |
* @param aVpnFilterType a TVpnFilterType enum specifying the
|
williamr@2
|
200 |
* vpn filtering.
|
williamr@2
|
201 |
* @param aIncludeEasyWlan TBool specifying whther to include
|
williamr@2
|
202 |
* EasyWlan access point in the list or not...
|
williamr@2
|
203 |
* @return The constructed CApSelect.
|
williamr@2
|
204 |
*
|
williamr@2
|
205 |
* @deprecated
|
williamr@2
|
206 |
*/
|
williamr@2
|
207 |
IMPORT_C static CApSelect* NewLC(
|
williamr@2
|
208 |
CCommsDatabase& aDb,
|
williamr@2
|
209 |
TInt aIspFilter,
|
williamr@2
|
210 |
TInt aBearerFilter,
|
williamr@2
|
211 |
TInt aSortType,
|
williamr@2
|
212 |
TInt aReqIpvType,
|
williamr@2
|
213 |
TVpnFilterType aVpnFilterType,
|
williamr@2
|
214 |
TBool aIncludeEasyWlan );
|
williamr@2
|
215 |
|
williamr@2
|
216 |
|
williamr@2
|
217 |
/**
|
williamr@2
|
218 |
* Destructor.
|
williamr@2
|
219 |
*
|
williamr@2
|
220 |
* @deprecated
|
williamr@2
|
221 |
*/
|
williamr@2
|
222 |
IMPORT_C virtual ~CApSelect();
|
williamr@2
|
223 |
|
williamr@2
|
224 |
|
williamr@2
|
225 |
protected: // Constructors
|
williamr@2
|
226 |
|
williamr@2
|
227 |
/**
|
williamr@2
|
228 |
* C++ default constructor.
|
williamr@2
|
229 |
*
|
williamr@2
|
230 |
* @deprecated
|
williamr@2
|
231 |
*/
|
williamr@2
|
232 |
IMPORT_C CApSelect();
|
williamr@2
|
233 |
|
williamr@2
|
234 |
|
williamr@2
|
235 |
/**
|
williamr@2
|
236 |
* Second-phase constructor.
|
williamr@2
|
237 |
* @param aDb a pointer to a CCommsDataBase.
|
williamr@2
|
238 |
* @param aIspTypeFilter Filtering criteria on ISP type
|
williamr@2
|
239 |
* Possible values are:
|
williamr@2
|
240 |
* KEApIspTypeInternetOnly, KEApIspTypeWAPOnly,
|
williamr@2
|
241 |
* KEApIspTypeInternetAndWAP, KEApIspTypeWAPMandatory
|
williamr@2
|
242 |
* KEApIspTypeAll and their combinations.
|
williamr@2
|
243 |
* @param aBearerFilter Filtering criteria on bearer type
|
williamr@2
|
244 |
* Possible values are the TApBearer enums and
|
williamr@2
|
245 |
* their combinations (or-ed).
|
williamr@2
|
246 |
* @param aSortType Specifies the sort order to use.
|
williamr@2
|
247 |
* Possible values are:
|
williamr@2
|
248 |
* KEApSortUidAscending, KEApSortUidDescending,
|
williamr@2
|
249 |
* KEApSortNameAscending, KEApSortNameDescending
|
williamr@2
|
250 |
*
|
williamr@2
|
251 |
* @deprecated
|
williamr@2
|
252 |
*/
|
williamr@2
|
253 |
IMPORT_C void ConstructL(
|
williamr@2
|
254 |
CCommsDatabase& aDb,
|
williamr@2
|
255 |
TInt aIspFilter,
|
williamr@2
|
256 |
TInt aBearerFilter,
|
williamr@2
|
257 |
TInt aSortType
|
williamr@2
|
258 |
);
|
williamr@2
|
259 |
|
williamr@2
|
260 |
|
williamr@2
|
261 |
/**
|
williamr@2
|
262 |
* Second-phase constructor.
|
williamr@2
|
263 |
* @param aDb a pointer to a CCommsDataBase.
|
williamr@2
|
264 |
* @param aIspTypeFilter Filtering criteria on ISP type
|
williamr@2
|
265 |
* Possible values are:
|
williamr@2
|
266 |
* KEApIspTypeInternetOnly, KEApIspTypeWAPOnly,
|
williamr@2
|
267 |
* KEApIspTypeInternetAndWAP, KEApIspTypeWAPMandatory
|
williamr@2
|
268 |
* KEApIspTypeAll and their combinations.
|
williamr@2
|
269 |
* @param aBearerFilter Filtering criteria on bearer type
|
williamr@2
|
270 |
* Possible values are the TApBearer enums and
|
williamr@2
|
271 |
* their combinations (or-ed).
|
williamr@2
|
272 |
* @param aSortType Specifies the sort order to use.
|
williamr@2
|
273 |
* Possible values are:
|
williamr@2
|
274 |
* KEApSortUidAscending, KEApSortUidDescending,
|
williamr@2
|
275 |
* KEApSortNameAscending, KEApSortNameDescending
|
williamr@2
|
276 |
* @param aReqIpvType Filtering criteria on the IPv type of the
|
williamr@2
|
277 |
* access point. In case of GPRS, GPRS_PDP_TYPE holds it, while
|
williamr@2
|
278 |
* in case of CSD, all CSD access points are
|
williamr@2
|
279 |
* considered to be IPv4 & IPv6 (both)
|
williamr@2
|
280 |
*
|
williamr@2
|
281 |
* @deprecated
|
williamr@2
|
282 |
*/
|
williamr@2
|
283 |
IMPORT_C void ConstructL(
|
williamr@2
|
284 |
CCommsDatabase& aDb,
|
williamr@2
|
285 |
TInt aIspFilter,
|
williamr@2
|
286 |
TInt aBearerFilter,
|
williamr@2
|
287 |
TInt aSortType,
|
williamr@2
|
288 |
TInt aReqIpvType
|
williamr@2
|
289 |
);
|
williamr@2
|
290 |
|
williamr@2
|
291 |
|
williamr@2
|
292 |
/**
|
williamr@2
|
293 |
* Second-phase constructor.
|
williamr@2
|
294 |
* @param aDb a pointer to a CCommsDataBase.
|
williamr@2
|
295 |
* @param aIspTypeFilter Filtering criteria on ISP type
|
williamr@2
|
296 |
* Possible values are:
|
williamr@2
|
297 |
* KEApIspTypeInternetOnly, KEApIspTypeWAPOnly,
|
williamr@2
|
298 |
* KEApIspTypeInternetAndWAP, KEApIspTypeWAPMandatory
|
williamr@2
|
299 |
* KEApIspTypeAll and their combinations.
|
williamr@2
|
300 |
* @param aBearerFilter Filtering criteria on bearer type
|
williamr@2
|
301 |
* Possible values are the TApBearer enums and
|
williamr@2
|
302 |
* their combinations (or-ed).
|
williamr@2
|
303 |
* @param aSortType Specifies the sort order to use.
|
williamr@2
|
304 |
* Possible values are:
|
williamr@2
|
305 |
* KEApSortUidAscending, KEApSortUidDescending,
|
williamr@2
|
306 |
* KEApSortNameAscending, KEApSortNameDescending
|
williamr@2
|
307 |
* @param aReqIpvType Filtering criteria on the IPv type of the
|
williamr@2
|
308 |
* access point. In case of GPRS, GPRS_PDP_TYPE holds it, while
|
williamr@2
|
309 |
* in case of CSD, all CSD access points are
|
williamr@2
|
310 |
* considered to be IPv4 & IPv6 (both)
|
williamr@2
|
311 |
* @param aVpnFilterType a TVpnFilterType enum specifying the
|
williamr@2
|
312 |
* vpn filtering.
|
williamr@2
|
313 |
*
|
williamr@2
|
314 |
* @deprecated
|
williamr@2
|
315 |
*/
|
williamr@2
|
316 |
IMPORT_C void ConstructL( CCommsDatabase& aDb,
|
williamr@2
|
317 |
TInt aIspFilter,
|
williamr@2
|
318 |
TInt aBearerFilter,
|
williamr@2
|
319 |
TInt aSortType,
|
williamr@2
|
320 |
TInt aReqIpvType,
|
williamr@2
|
321 |
TVpnFilterType aVpnFilterType
|
williamr@2
|
322 |
);
|
williamr@2
|
323 |
|
williamr@2
|
324 |
/**
|
williamr@2
|
325 |
* Second-phase constructor.
|
williamr@2
|
326 |
* @param aDb a pointer to a CCommsDataBase.
|
williamr@2
|
327 |
* @param aIspTypeFilter Filtering criteria on ISP type
|
williamr@2
|
328 |
* Possible values are:
|
williamr@2
|
329 |
* KEApIspTypeInternetOnly, KEApIspTypeWAPOnly,
|
williamr@2
|
330 |
* KEApIspTypeInternetAndWAP, KEApIspTypeWAPMandatory
|
williamr@2
|
331 |
* KEApIspTypeAll and their combinations.
|
williamr@2
|
332 |
* @param aBearerFilter Filtering criteria on bearer type
|
williamr@2
|
333 |
* Possible values are the TApBearer enums and
|
williamr@2
|
334 |
* their combinations (or-ed).
|
williamr@2
|
335 |
* @param aSortType Specifies the sort order to use.
|
williamr@2
|
336 |
* Possible values are:
|
williamr@2
|
337 |
* KEApSortUidAscending, KEApSortUidDescending,
|
williamr@2
|
338 |
* KEApSortNameAscending, KEApSortNameDescending
|
williamr@2
|
339 |
* @param aReqIpvType Filtering criteria on the IPv type of the
|
williamr@2
|
340 |
* access point. In case of GPRS, GPRS_PDP_TYPE holds it, while
|
williamr@2
|
341 |
* in case of CSD, all CSD access points are
|
williamr@2
|
342 |
* considered to be IPv4 & IPv6 (both)
|
williamr@2
|
343 |
* @param aVpnFilterType a TVpnFilterType enum specifying the
|
williamr@2
|
344 |
* vpn filtering.
|
williamr@2
|
345 |
* @param aIncludeEasyWlan TBool specifying whther to include
|
williamr@2
|
346 |
* EasyWlan access point in the list or not...
|
williamr@2
|
347 |
*
|
williamr@2
|
348 |
* @deprecated
|
williamr@2
|
349 |
*/
|
williamr@2
|
350 |
IMPORT_C void ConstructL( CCommsDatabase& aDb,
|
williamr@2
|
351 |
TInt aIspFilter,
|
williamr@2
|
352 |
TInt aBearerFilter,
|
williamr@2
|
353 |
TInt aSortType,
|
williamr@2
|
354 |
TInt aReqIpvType,
|
williamr@2
|
355 |
TVpnFilterType aVpnFilterType,
|
williamr@2
|
356 |
TBool aIncludeEasyWlan );
|
williamr@2
|
357 |
|
williamr@2
|
358 |
public: // New functions
|
williamr@2
|
359 |
/**
|
williamr@2
|
360 |
* Sets filters and sorting order for the list of available
|
williamr@2
|
361 |
* access points
|
williamr@2
|
362 |
* @param aIspTypeFilter Filtering criteria on ISP type
|
williamr@2
|
363 |
* Possible values are:
|
williamr@2
|
364 |
* KEApIspTypeInternetOnly, KEApIspTypeWAPOnly,
|
williamr@2
|
365 |
* KEApIspTypeInternetAndWAP,
|
williamr@2
|
366 |
* KEApIspTypeWAPMandatory, KEApIspTypeAll and their combinations.
|
williamr@2
|
367 |
* @param aBearerFilter Filtering criteria on bearer type
|
williamr@2
|
368 |
* Possible values are the TApBearer enums and
|
williamr@2
|
369 |
* their combinations (or-ed).
|
williamr@2
|
370 |
* @param aSortType Specifies the sort order to use.
|
williamr@2
|
371 |
* Possible values are:
|
williamr@2
|
372 |
* KEApSortUidAscending, KEApSortUidDescending,
|
williamr@2
|
373 |
* KEApSortNameAscending, KEApSortNameDescending
|
williamr@2
|
374 |
*
|
williamr@2
|
375 |
* @deprecated
|
williamr@2
|
376 |
*/
|
williamr@2
|
377 |
IMPORT_C void SetFiltersL(
|
williamr@2
|
378 |
TInt aIspFilter,
|
williamr@2
|
379 |
TInt aBearerFilter,
|
williamr@2
|
380 |
TInt aSortType
|
williamr@2
|
381 |
);
|
williamr@2
|
382 |
|
williamr@2
|
383 |
|
williamr@2
|
384 |
|
williamr@2
|
385 |
/**
|
williamr@2
|
386 |
* Gets the current ISP-type filter
|
williamr@2
|
387 |
* @return The current ISP-type filter
|
williamr@2
|
388 |
*
|
williamr@2
|
389 |
* @deprecated
|
williamr@2
|
390 |
*/
|
williamr@2
|
391 |
IMPORT_C TInt IspTypeFilter();
|
williamr@2
|
392 |
|
williamr@2
|
393 |
|
williamr@2
|
394 |
/**
|
williamr@2
|
395 |
* Gets the current bearer-type filter
|
williamr@2
|
396 |
* @return The current bearer-type filter
|
williamr@2
|
397 |
*
|
williamr@2
|
398 |
* @deprecated
|
williamr@2
|
399 |
*/
|
williamr@2
|
400 |
IMPORT_C TInt BearerFilter();
|
williamr@2
|
401 |
|
williamr@2
|
402 |
|
williamr@2
|
403 |
/**
|
williamr@2
|
404 |
* Gets the current sorting order
|
williamr@2
|
405 |
* @return The current sorting order
|
williamr@2
|
406 |
*
|
williamr@2
|
407 |
* @deprecated
|
williamr@2
|
408 |
*/
|
williamr@2
|
409 |
IMPORT_C TInt SortOrder();
|
williamr@2
|
410 |
|
williamr@2
|
411 |
|
williamr@2
|
412 |
/**
|
williamr@2
|
413 |
* Navigates to the first access point in the list.
|
williamr@2
|
414 |
* @return Boolean indicating the success of the operation.
|
williamr@2
|
415 |
*
|
williamr@2
|
416 |
* @deprecated
|
williamr@2
|
417 |
*/
|
williamr@2
|
418 |
IMPORT_C TBool MoveToFirst();
|
williamr@2
|
419 |
|
williamr@2
|
420 |
|
williamr@2
|
421 |
/**
|
williamr@2
|
422 |
* Navigates to the next access point in the list.
|
williamr@2
|
423 |
* @return Boolean indicating the success of the operation.
|
williamr@2
|
424 |
*
|
williamr@2
|
425 |
* @deprecated
|
williamr@2
|
426 |
*/
|
williamr@2
|
427 |
IMPORT_C TBool MoveNext();
|
williamr@2
|
428 |
|
williamr@2
|
429 |
|
williamr@2
|
430 |
/**
|
williamr@2
|
431 |
* Navigates to the last access point in the list.
|
williamr@2
|
432 |
* @return Boolean indicating the success of the operation.
|
williamr@2
|
433 |
*
|
williamr@2
|
434 |
* @deprecated
|
williamr@2
|
435 |
*/
|
williamr@2
|
436 |
IMPORT_C TBool MoveLast();
|
williamr@2
|
437 |
|
williamr@2
|
438 |
|
williamr@2
|
439 |
/**
|
williamr@2
|
440 |
* Navigates to the previous access point in the list.
|
williamr@2
|
441 |
* @return Boolean indicating the success of the operation.
|
williamr@2
|
442 |
*
|
williamr@2
|
443 |
* @deprecated
|
williamr@2
|
444 |
*/
|
williamr@2
|
445 |
IMPORT_C TBool MovePrev();
|
williamr@2
|
446 |
|
williamr@2
|
447 |
|
williamr@2
|
448 |
/**
|
williamr@2
|
449 |
* Counts the items in the list
|
williamr@2
|
450 |
* @return The number of items in the list.
|
williamr@2
|
451 |
*
|
williamr@2
|
452 |
* @deprecated
|
williamr@2
|
453 |
*/
|
williamr@2
|
454 |
IMPORT_C TUint32 Count();
|
williamr@2
|
455 |
|
williamr@2
|
456 |
|
williamr@2
|
457 |
/**
|
williamr@2
|
458 |
* Gets the name of the 'current' access point
|
williamr@2
|
459 |
* Ownership of the returned text is not passed.
|
williamr@2
|
460 |
* @return The name of the current access point
|
williamr@2
|
461 |
*
|
williamr@2
|
462 |
* @deprecated
|
williamr@2
|
463 |
*/
|
williamr@2
|
464 |
IMPORT_C const TDesC& Name();
|
williamr@2
|
465 |
|
williamr@2
|
466 |
|
williamr@2
|
467 |
/**
|
williamr@2
|
468 |
* Gets the UID of the current access point
|
williamr@2
|
469 |
* @return The UID of the current access point
|
williamr@2
|
470 |
*
|
williamr@2
|
471 |
* @deprecated
|
williamr@2
|
472 |
*/
|
williamr@2
|
473 |
IMPORT_C TUint32 Uid();
|
williamr@2
|
474 |
|
williamr@2
|
475 |
|
williamr@2
|
476 |
/**
|
williamr@2
|
477 |
* Gets the ISP-type of the current access point
|
williamr@2
|
478 |
* @return The ISP-type of the current access point.
|
williamr@2
|
479 |
*
|
williamr@2
|
480 |
* @deprecated
|
williamr@2
|
481 |
*/
|
williamr@2
|
482 |
IMPORT_C TCommsDbIspType Type();
|
williamr@2
|
483 |
|
williamr@2
|
484 |
|
williamr@2
|
485 |
/**
|
williamr@2
|
486 |
* Gets the bearer-type of the current access point
|
williamr@2
|
487 |
* @return The bearer-type of the current access point.
|
williamr@2
|
488 |
*
|
williamr@2
|
489 |
* @deprecated
|
williamr@2
|
490 |
*/
|
williamr@2
|
491 |
IMPORT_C TApBearerType BearerType();
|
williamr@2
|
492 |
|
williamr@2
|
493 |
|
williamr@2
|
494 |
/**
|
williamr@2
|
495 |
* Provides all data in a CApListItemList array.
|
williamr@2
|
496 |
* @param aList A reference to a CApListItemList object
|
williamr@2
|
497 |
* to hold the values.
|
williamr@2
|
498 |
* @return The number of items in the list.
|
williamr@2
|
499 |
* All elements in the aList array and their memory
|
williamr@2
|
500 |
* will be freed inside the routine.
|
williamr@2
|
501 |
* The routine expands or shrinks the array as necessary
|
williamr@2
|
502 |
* to minimize memory consumption.
|
williamr@2
|
503 |
*
|
williamr@2
|
504 |
* @deprecated
|
williamr@2
|
505 |
*/
|
williamr@2
|
506 |
IMPORT_C TInt AllListItemDataL( CApListItemList& aList );
|
williamr@2
|
507 |
|
williamr@2
|
508 |
/**
|
williamr@2
|
509 |
* Returns whether the current item is read-only or not.
|
williamr@2
|
510 |
* @return Returns whether the current item is read-only or not.
|
williamr@2
|
511 |
*
|
williamr@2
|
512 |
* @deprecated
|
williamr@2
|
513 |
*/
|
williamr@2
|
514 |
IMPORT_C TBool IsReadOnly() const;
|
williamr@2
|
515 |
|
williamr@2
|
516 |
private:
|
williamr@2
|
517 |
/**
|
williamr@2
|
518 |
* This function updates the member data according to the
|
williamr@2
|
519 |
* current filter settings.
|
williamr@2
|
520 |
* @return Error code.
|
williamr@2
|
521 |
*/
|
williamr@2
|
522 |
TInt DoUpdateL();
|
williamr@2
|
523 |
|
williamr@2
|
524 |
|
williamr@2
|
525 |
/**
|
williamr@2
|
526 |
* Gets the filtered and sorted wap table
|
williamr@2
|
527 |
* and places it on the Cleanupstack
|
williamr@2
|
528 |
*/
|
williamr@2
|
529 |
CCommsDbTableView* GetFilteredSortedWapTableViewLC();
|
williamr@2
|
530 |
|
williamr@2
|
531 |
|
williamr@2
|
532 |
/**
|
williamr@2
|
533 |
* Gets the filtered and sorted IP bearer table
|
williamr@2
|
534 |
* and places it on the Cleanupstack
|
williamr@2
|
535 |
*/
|
williamr@2
|
536 |
CCommsDbTableView* GetFilteredSortedIpBearerTableViewLC();
|
williamr@2
|
537 |
|
williamr@2
|
538 |
|
williamr@2
|
539 |
/**
|
williamr@2
|
540 |
* Gets the filtered and sorted ISP table
|
williamr@2
|
541 |
* and places it on the Cleanupstack
|
williamr@2
|
542 |
*/
|
williamr@2
|
543 |
CCommsDbTableView* GetFilteredSortedIspOutTableViewLC();
|
williamr@2
|
544 |
|
williamr@2
|
545 |
|
williamr@2
|
546 |
/**
|
williamr@2
|
547 |
* Gets the filtered and sorted GPRS table
|
williamr@2
|
548 |
* and places it on the Cleanupstack
|
williamr@2
|
549 |
*/
|
williamr@2
|
550 |
CCommsDbTableView* GetFilteredSortedGprsTableViewLC( TBool aIn );
|
williamr@2
|
551 |
|
williamr@2
|
552 |
|
williamr@2
|
553 |
/**
|
williamr@2
|
554 |
* Gets the filtered and sorted CDMA table
|
williamr@2
|
555 |
* and places it on the Cleanupstack
|
williamr@2
|
556 |
*/
|
williamr@2
|
557 |
CCommsDbTableView* GetFilteredSortedCdmaTableViewLC();
|
williamr@2
|
558 |
|
williamr@2
|
559 |
|
williamr@2
|
560 |
/**
|
williamr@2
|
561 |
* Reads up the specified columns TUint32 values stored
|
williamr@2
|
562 |
* in the table and returns it in the passed array
|
williamr@2
|
563 |
*/
|
williamr@2
|
564 |
void GetUintValuesL
|
williamr@2
|
565 |
(
|
williamr@2
|
566 |
CCommsDbTableView* aTable,
|
williamr@2
|
567 |
const TDesC& aField,
|
williamr@2
|
568 |
CArrayFixFlat<TUint32>& aArray
|
williamr@2
|
569 |
);
|
williamr@2
|
570 |
|
williamr@2
|
571 |
|
williamr@2
|
572 |
/**
|
williamr@2
|
573 |
* Reads up the protection values stored
|
williamr@2
|
574 |
* in the table and returns it in the passed array
|
williamr@2
|
575 |
*/
|
williamr@2
|
576 |
void GetProtValuesL( CCommsDbTableView* aTable,
|
williamr@2
|
577 |
CArrayFixFlat<TUint32>& aArray );
|
williamr@2
|
578 |
|
williamr@2
|
579 |
/**
|
williamr@2
|
580 |
* Reads up the specified columns text values stored
|
williamr@2
|
581 |
* in the table and returns it in the passed array
|
williamr@2
|
582 |
*/
|
williamr@2
|
583 |
void GetTextValuesL
|
williamr@2
|
584 |
(
|
williamr@2
|
585 |
CCommsDbTableView* aTable,
|
williamr@2
|
586 |
const TDesC& aField,
|
williamr@2
|
587 |
CArrayPtrFlat<HBufC>& aArray
|
williamr@2
|
588 |
);
|
williamr@2
|
589 |
|
williamr@2
|
590 |
|
williamr@2
|
591 |
/**
|
williamr@2
|
592 |
* Reads up the specified columns long text values stored
|
williamr@2
|
593 |
* in the table and returns it in the passed array
|
williamr@2
|
594 |
*/
|
williamr@2
|
595 |
void GetLongTextValuesL
|
williamr@2
|
596 |
(
|
williamr@2
|
597 |
CCommsDbTableView* aTable,
|
williamr@2
|
598 |
const TDesC& aField,
|
williamr@2
|
599 |
CArrayPtrFlat<HBufC>& aArray
|
williamr@2
|
600 |
);
|
williamr@2
|
601 |
|
williamr@2
|
602 |
|
williamr@2
|
603 |
/**
|
williamr@2
|
604 |
* Returns whether a given value is in the given array or not
|
williamr@2
|
605 |
*/
|
williamr@2
|
606 |
TBool IsInArray( CArrayFixFlat<TUint32>* aArray, TUint32 aValue );
|
williamr@2
|
607 |
|
williamr@2
|
608 |
|
williamr@2
|
609 |
/**
|
williamr@2
|
610 |
* Returns the position of a given value in the given array.
|
williamr@2
|
611 |
*/
|
williamr@2
|
612 |
TInt PosInArray( CArrayFixFlat<TUint32>* aArray, TUint32 aValue );
|
williamr@2
|
613 |
|
williamr@2
|
614 |
|
williamr@2
|
615 |
/**
|
williamr@2
|
616 |
* Returns the position of an item with a given UID in the given list.
|
williamr@2
|
617 |
*/
|
williamr@2
|
618 |
TInt GetItemPos( CApListItemList* aTmpApList, TUint32 aId );
|
williamr@2
|
619 |
|
williamr@2
|
620 |
|
williamr@2
|
621 |
/**
|
williamr@2
|
622 |
* Opens a view on the given table where a given text coloumn has
|
williamr@2
|
623 |
* a given value
|
williamr@2
|
624 |
* @return the opened view on the table
|
williamr@2
|
625 |
*/
|
williamr@2
|
626 |
CCommsDbTableView* OpenViewMatchingTextL
|
williamr@2
|
627 |
(
|
williamr@2
|
628 |
const TDesC& aTableName,
|
williamr@2
|
629 |
const TDesC& aColumnToMatch,
|
williamr@2
|
630 |
const TDesC16& aValueToMatch
|
williamr@2
|
631 |
);
|
williamr@2
|
632 |
|
williamr@2
|
633 |
/**
|
williamr@2
|
634 |
* Gets the ISP values (ISP UID, ISP type, ISP bearer type)
|
williamr@2
|
635 |
* from a given table
|
williamr@2
|
636 |
* @param aTable the table to go through (already filtered & ordered)
|
williamr@2
|
637 |
* @param aArray An array to hold the readed values
|
williamr@2
|
638 |
* @param aColName Column name (different column names are used for
|
williamr@2
|
639 |
* CSD/GPRS/CDMA.
|
williamr@2
|
640 |
*/
|
williamr@2
|
641 |
void GetIspValuesL
|
williamr@2
|
642 |
(
|
williamr@2
|
643 |
CCommsDbTableView* aTable,
|
williamr@2
|
644 |
CArrayFixFlat<TUint32[3]>* aArray,
|
williamr@2
|
645 |
const TDesC& aColName
|
williamr@2
|
646 |
);
|
williamr@2
|
647 |
|
williamr@2
|
648 |
/**
|
williamr@2
|
649 |
* Gets the position of an element with a given IAP UID
|
williamr@2
|
650 |
*/
|
williamr@2
|
651 |
TInt GetIapPos
|
williamr@2
|
652 |
(
|
williamr@2
|
653 |
CArrayFixFlat<TUint32[3]>* aArray,
|
williamr@2
|
654 |
TUint32 aValue
|
williamr@2
|
655 |
);
|
williamr@2
|
656 |
|
williamr@2
|
657 |
/**
|
williamr@2
|
658 |
* Sorts the data according to localised sorting on the
|
williamr@2
|
659 |
* access point names, using CompareC
|
williamr@2
|
660 |
*/
|
williamr@2
|
661 |
void SortLocalisedNameL( TBool aAscending = ETrue );
|
williamr@2
|
662 |
|
williamr@2
|
663 |
|
williamr@2
|
664 |
/**
|
williamr@2
|
665 |
* Sorts the data according to Uids
|
williamr@2
|
666 |
*/
|
williamr@2
|
667 |
void SortUidL( TBool aAscending = ETrue );
|
williamr@2
|
668 |
|
williamr@2
|
669 |
|
williamr@2
|
670 |
|
williamr@2
|
671 |
private: // New functions
|
williamr@2
|
672 |
/**
|
williamr@2
|
673 |
* Sets filters and sorting order for the list of available
|
williamr@2
|
674 |
* access points
|
williamr@2
|
675 |
* @param aIspTypeFilter Filtering criteria on ISP type
|
williamr@2
|
676 |
* Possible values are:
|
williamr@2
|
677 |
* KEApIspTypeInternetOnly, KEApIspTypeWAPOnly,
|
williamr@2
|
678 |
* KEApIspTypeInternetAndWAP,
|
williamr@2
|
679 |
* KEApIspTypeWAPMandatory, KEApIspTypeAll and their combinations.
|
williamr@2
|
680 |
* @param aBearerFilter Filtering criteria on bearer type
|
williamr@2
|
681 |
* Possible values are the TApBearer enums and
|
williamr@2
|
682 |
* their combinations (or-ed).
|
williamr@2
|
683 |
* @param aSortType Specifies the sort order to use.
|
williamr@2
|
684 |
* Possible values are:
|
williamr@2
|
685 |
* KEApSortUidAscending, KEApSortUidDescending,
|
williamr@2
|
686 |
* KEApSortNameAscending, KEApSortNameDescending
|
williamr@2
|
687 |
* @param aReqIpvType The filtering criteria for IPv type
|
williamr@2
|
688 |
* @param aVpnFilterType The Vpn filtering type, TVpnFilterType values
|
williamr@2
|
689 |
*/
|
williamr@2
|
690 |
void SetFiltersL( TInt aIspFilter,
|
williamr@2
|
691 |
TInt aBearerFilter,
|
williamr@2
|
692 |
TInt aSortType,
|
williamr@2
|
693 |
TInt aReqIpvType,
|
williamr@2
|
694 |
TInt aVpnFilterType
|
williamr@2
|
695 |
);
|
williamr@2
|
696 |
|
williamr@2
|
697 |
|
williamr@2
|
698 |
/**
|
williamr@2
|
699 |
* Returns a pointer to the opened VPN_SERVICE table
|
williamr@2
|
700 |
*/
|
williamr@2
|
701 |
CCommsDbTableView* GetVpnTableViewLC();
|
williamr@2
|
702 |
|
williamr@2
|
703 |
|
williamr@2
|
704 |
/**
|
williamr@2
|
705 |
* Gets the VPN values (VPN IAP UID, VPN HOME IAP UID, VPN Name )
|
williamr@2
|
706 |
* from the given VPN table
|
williamr@2
|
707 |
* @param aTable the table to go through (already filtered & ordered)
|
williamr@2
|
708 |
* @param aVpnArray An array to hold the readed vpn data values
|
williamr@2
|
709 |
*/
|
williamr@2
|
710 |
void GetVpnValuesL( CCommsDbTableView* aTable,
|
williamr@2
|
711 |
CArrayFixFlat<TVpnData>* aVpnArray );
|
williamr@2
|
712 |
|
williamr@2
|
713 |
|
williamr@2
|
714 |
/**
|
williamr@2
|
715 |
* Returns the supported bearer set from the passed requested bearer set
|
williamr@2
|
716 |
* @param aBearerFilter The requested bearer set
|
williamr@2
|
717 |
* return The supported subset of the requested bearers.
|
williamr@2
|
718 |
*/
|
williamr@2
|
719 |
TInt GetSupportedBearerSet( TInt aBearerFilter );
|
williamr@2
|
720 |
|
williamr@2
|
721 |
|
williamr@2
|
722 |
/**
|
williamr@2
|
723 |
* Adding WLAN or LAN access points to existing list.
|
williamr@2
|
724 |
* aWlan a TBool specifying whether WLAN or LAN
|
williamr@2
|
725 |
*/
|
williamr@2
|
726 |
void AddLanL( TBool aWlan );
|
williamr@2
|
727 |
|
williamr@2
|
728 |
|
williamr@2
|
729 |
|
williamr@2
|
730 |
|
williamr@2
|
731 |
private: // Data
|
williamr@2
|
732 |
CCommsDatabase* iDb; // Does not own it!
|
williamr@2
|
733 |
TInt iIsp;
|
williamr@2
|
734 |
TInt iBearer;
|
williamr@2
|
735 |
TInt iSort;
|
williamr@2
|
736 |
CApListItemList* iApList;
|
williamr@2
|
737 |
TInt iCursor;
|
williamr@2
|
738 |
TInt iCount;
|
williamr@2
|
739 |
TSelectExtra* iExt;
|
williamr@2
|
740 |
|
williamr@2
|
741 |
};
|
williamr@2
|
742 |
|
williamr@2
|
743 |
#endif // CAPSELECT_H
|
williamr@2
|
744 |
|
williamr@2
|
745 |
// End of File
|