CApSelect Class Reference
class CApSelect : public CBase
|
This class is used to help client's access point selection. Selection can be tailored with specific filters, rules and sort order. Provides methods for setting and getting filters and sort order.
Public Member Functions
|
|
~CApSelect
()
|
IMPORT_C
TInt
|
AllListItemDataL
(
CApListItemList
&)
|
IMPORT_C
TInt
|
BearerFilter
()
|
IMPORT_C
TApBearerType
|
BearerType
()
|
IMPORT_C
TUint32
|
Count
()
|
IMPORT_C
TBool
|
IsReadOnly
()
|
IMPORT_C
TInt
|
IspTypeFilter
()
|
IMPORT_C
TBool
|
MoveLast
()
|
IMPORT_C
TBool
|
MoveNext
()
|
IMPORT_C
TBool
|
MovePrev
()
|
IMPORT_C
TBool
|
MoveToFirst
()
|
IMPORT_C const
TDesC
&
|
Name
()
|
IMPORT_C
CApSelect
*
|
NewLC
(
CCommsDatabase
&,
TInt
,
TInt
,
TInt
)
|
IMPORT_C
CApSelect
*
|
NewLC
(
CCommsDatabase
&,
TInt
,
TInt
,
TInt
,
TInt
)
|
IMPORT_C
CApSelect
*
|
NewLC
(
CCommsDatabase
&,
TInt
,
TInt
,
TInt
,
TInt
,
TVpnFilterType
)
|
IMPORT_C
CApSelect
*
|
NewLC
(
CCommsDatabase
&,
TInt
,
TInt
,
TInt
,
TInt
,
TVpnFilterType
,
TBool
)
|
IMPORT_C void
|
SetFiltersL
(
TInt
,
TInt
,
TInt
)
|
IMPORT_C
TInt
|
SortOrder
()
|
IMPORT_C
TCommsDbIspType
|
Type
()
|
IMPORT_C
TUint32
|
Uid
()
|
Protected Member Functions
|
|
CApSelect
()
|
IMPORT_C void
|
ConstructL
(
CCommsDatabase
&,
TInt
,
TInt
,
TInt
)
|
IMPORT_C void
|
ConstructL
(
CCommsDatabase
&,
TInt
,
TInt
,
TInt
,
TInt
)
|
IMPORT_C void
|
ConstructL
(
CCommsDatabase
&,
TInt
,
TInt
,
TInt
,
TInt
,
TVpnFilterType
)
|
IMPORT_C void
|
ConstructL
(
CCommsDatabase
&,
TInt
,
TInt
,
TInt
,
TInt
,
TVpnFilterType
,
TBool
)
|
Private Member Functions
|
void
|
AddLanL
(
TBool
)
|
TInt
|
DoUpdateL
()
|
CCommsDbTableView
*
|
GetFilteredSortedGprsTableViewLC
(
TBool
)
|
CCommsDbTableView
*
|
GetFilteredSortedIpBearerTableViewLC
()
|
CCommsDbTableView
*
|
GetFilteredSortedIspOutTableViewLC
()
|
CCommsDbTableView
*
|
GetFilteredSortedWapTableViewLC
()
|
TInt
|
GetIapPos
(
CArrayFixFlat
<
TUint32
[3]> *,
TUint32
)
|
void
|
GetIspValuesL
(
CCommsDbTableView
*,
CArrayFixFlat
<
TUint32
[3]> *, const
TDesC
&)
|
TInt
|
GetItemPos
(
CApListItemList
*,
TUint32
)
|
void
|
GetLongTextValuesL
(
CCommsDbTableView
*, const
TDesC
&,
CArrayPtrFlat
<
HBufC
> &)
|
void
|
GetProtValuesL
(
CCommsDbTableView
*,
CArrayFixFlat
<
TUint32
> &)
|
TInt
|
GetSupportedBearerSet
(
TInt
)
|
void
|
GetTextValuesL
(
CCommsDbTableView
*, const
TDesC
&,
CArrayPtrFlat
<
HBufC
> &)
|
void
|
GetUintValuesL
(
CCommsDbTableView
*, const
TDesC
&,
CArrayFixFlat
<
TUint32
> &)
|
CCommsDbTableView
*
|
GetVpnTableViewLC
()
|
void
|
GetVpnValuesL
(
CCommsDbTableView
*,
CArrayFixFlat
<
TVpnData
> *)
|
TBool
|
IsInArray
(
CArrayFixFlat
<
TUint32
> *,
TUint32
)
|
CCommsDbTableView
*
|
OpenViewMatchingTextL
(const
TDesC
&, const
TDesC
&, const
TDesC16
&)
|
TInt
|
PosInArray
(
CArrayFixFlat
<
TUint32
> *,
TUint32
)
|
void
|
SetFiltersL
(
TInt
,
TInt
,
TInt
,
TInt
,
TInt
)
|
void
|
SortLocalisedNameL
(
TBool
)
|
void
|
SortUidL
(
TBool
)
|
Constructor & Destructor Documentation
CApSelect()
IMPORT_C
|
CApSelect
|
(
|
)
|
[protected]
|
~CApSelect()
IMPORT_C
|
~CApSelect
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AddLanL(TBool)
void
|
AddLanL
|
(
|
TBool
|
aWlan
|
)
|
[private]
|
Adding WLAN or LAN access points to existing list. aWlan a TBool specifying whether WLAN or LAN
AllListItemDataL(CApListItemList &)
Parameters
CApListItemList
& aList
|
A reference to a CApListItemList object to hold the values.
|
BearerFilter()
IMPORT_C
TInt
|
BearerFilter
|
(
|
)
|
|
Gets the current bearer-type filter
BearerType()
IMPORT_C
TApBearerType
|
BearerType
|
(
|
)
|
|
Gets the bearer-type of the current access point
ConstructL(CCommsDatabase &, TInt, TInt, TInt)
Second-phase constructor.
Parameters
CCommsDatabase
& aDb
|
a pointer to a CCommsDataBase.
|
TInt
aIspFilter
|
|
TInt
aBearerFilter
|
Filtering criteria on bearer type Possible values are the TApBearer enums and their combinations (or-ed).
|
TInt
aSortType
|
Specifies the sort order to use. Possible values are: KEApSortUidAscending, KEApSortUidDescending, KEApSortNameAscending, KEApSortNameDescending
|
ConstructL(CCommsDatabase &, TInt, TInt, TInt, TInt)
Second-phase constructor.
Parameters
CCommsDatabase
& aDb
|
a pointer to a CCommsDataBase.
|
TInt
aIspFilter
|
|
TInt
aBearerFilter
|
Filtering criteria on bearer type Possible values are the TApBearer enums and their combinations (or-ed).
|
TInt
aSortType
|
Specifies the sort order to use. Possible values are: KEApSortUidAscending, KEApSortUidDescending, KEApSortNameAscending, KEApSortNameDescending
|
TInt
aReqIpvType
|
Filtering criteria on the IPv type of the access point. In case of GPRS, GPRS_PDP_TYPE holds it, while in case of CSD, all CSD access points are considered to be IPv4 & IPv6 (both)
|
ConstructL(CCommsDatabase &, TInt, TInt, TInt, TInt, TVpnFilterType)
Second-phase constructor.
Parameters
CCommsDatabase
& aDb
|
a pointer to a CCommsDataBase.
|
TInt
aIspFilter
|
|
TInt
aBearerFilter
|
Filtering criteria on bearer type Possible values are the TApBearer enums and their combinations (or-ed).
|
TInt
aSortType
|
Specifies the sort order to use. Possible values are: KEApSortUidAscending, KEApSortUidDescending, KEApSortNameAscending, KEApSortNameDescending
|
TInt
aReqIpvType
|
Filtering criteria on the IPv type of the access point. In case of GPRS, GPRS_PDP_TYPE holds it, while in case of CSD, all CSD access points are considered to be IPv4 & IPv6 (both)
|
TVpnFilterType
aVpnFilterType
|
a TVpnFilterType enum specifying the vpn filtering.
|
ConstructL(CCommsDatabase &, TInt, TInt, TInt, TInt, TVpnFilterType, TBool)
Second-phase constructor.
Parameters
CCommsDatabase
& aDb
|
a pointer to a CCommsDataBase.
|
TInt
aIspFilter
|
|
TInt
aBearerFilter
|
Filtering criteria on bearer type Possible values are the TApBearer enums and their combinations (or-ed).
|
TInt
aSortType
|
Specifies the sort order to use. Possible values are: KEApSortUidAscending, KEApSortUidDescending, KEApSortNameAscending, KEApSortNameDescending
|
TInt
aReqIpvType
|
Filtering criteria on the IPv type of the access point. In case of GPRS, GPRS_PDP_TYPE holds it, while in case of CSD, all CSD access points are considered to be IPv4 & IPv6 (both)
|
TVpnFilterType
aVpnFilterType
|
a TVpnFilterType enum specifying the vpn filtering.
|
TBool
aIncludeEasyWlan
|
TBool specifying whther to include EasyWlan access point in the list or not...
|
Count()
Counts the items in the list
DoUpdateL()
TInt
|
DoUpdateL
|
(
|
)
|
[private]
|
This function updates the member data according to the current filter settings.
GetFilteredSortedGprsTableViewLC(TBool)
Gets the filtered and sorted GPRS table and places it on the Cleanupstack
GetFilteredSortedIpBearerTableViewLC()
Gets the filtered and sorted IP bearer table and places it on the Cleanupstack
GetFilteredSortedIspOutTableViewLC()
Gets the filtered and sorted ISP table and places it on the Cleanupstack
GetFilteredSortedWapTableViewLC()
Gets the filtered and sorted wap table and places it on the Cleanupstack
GetIapPos(CArrayFixFlat< TUint32[3]> *, TUint32)
Gets the position of an element with a given IAP UID
GetIspValuesL(CCommsDbTableView *, CArrayFixFlat< TUint32[3]> *, const TDesC &)
Gets the ISP values (ISP UID, ISP type, ISP bearer type) from a given table
Parameters
CCommsDbTableView
* aTable
|
the table to go through (already filtered & ordered)
|
CArrayFixFlat
<
TUint32
[3]> * aArray
|
An array to hold the readed values
|
const
TDesC
& aColName
|
Column name (different column names are used for CSD/GPRS/CDMA.
|
GetItemPos(CApListItemList *, TUint32)
Returns the position of an item with a given UID in the given list.
GetLongTextValuesL(CCommsDbTableView *, const TDesC &, CArrayPtrFlat< HBufC > &)
Reads up the specified columns long text values stored in the table and returns it in the passed array
GetProtValuesL(CCommsDbTableView *, CArrayFixFlat< TUint32 > &)
Reads up the protection values stored in the table and returns it in the passed array
GetSupportedBearerSet(TInt)
TInt
|
GetSupportedBearerSet
|
(
|
TInt
|
aBearerFilter
|
)
|
[private]
|
Returns the supported bearer set from the passed requested bearer set
Parameters
TInt
aBearerFilter
|
The requested bearer set return The supported subset of the requested bearers.
|
GetTextValuesL(CCommsDbTableView *, const TDesC &, CArrayPtrFlat< HBufC > &)
Reads up the specified columns text values stored in the table and returns it in the passed array
GetUintValuesL(CCommsDbTableView *, const TDesC &, CArrayFixFlat< TUint32 > &)
Reads up the specified columns TUint32 values stored in the table and returns it in the passed array
GetVpnTableViewLC()
Returns a pointer to the opened VPN_SERVICE table
GetVpnValuesL(CCommsDbTableView *, CArrayFixFlat< TVpnData > *)
Gets the VPN values (VPN IAP UID, VPN HOME IAP UID, VPN Name ) from the given VPN table
IsInArray(CArrayFixFlat< TUint32 > *, TUint32)
Returns whether a given value is in the given array or not
IsReadOnly()
IMPORT_C
TBool
|
IsReadOnly
|
(
|
)
|
const
|
Returns whether the current item is read-only or not.
IspTypeFilter()
IMPORT_C
TInt
|
IspTypeFilter
|
(
|
)
|
|
Gets the current ISP-type filter
MoveLast()
IMPORT_C
TBool
|
MoveLast
|
(
|
)
|
|
Navigates to the last access point in the list.
MoveNext()
IMPORT_C
TBool
|
MoveNext
|
(
|
)
|
|
Navigates to the next access point in the list.
MovePrev()
IMPORT_C
TBool
|
MovePrev
|
(
|
)
|
|
Navigates to the previous access point in the list.
MoveToFirst()
IMPORT_C
TBool
|
MoveToFirst
|
(
|
)
|
|
Navigates to the first access point in the list.
Name()
IMPORT_C const
TDesC
&
|
Name
|
(
|
)
|
|
Gets the name of the 'current' access point Ownership of the returned text is not passed.
NewLC(CCommsDatabase &, TInt, TInt, TInt)
Two-phased constructor. Leaves on failure, places instance on cleanup stack.
Parameters
CCommsDatabase
& aDb
|
a pointer to a CCommsDataBase.
|
TInt
aIspFilter
|
|
TInt
aBearerFilter
|
Filtering criteria on bearer type Possible values are the TApBearer enums and their combinations (or-ed).
|
TInt
aSortType
|
Specifies the sort order to use. Possible values are: KEApSortUidAscending, KEApSortUidDescending, KEApSortNameAscending, KEApSortNameDescending
|
NewLC(CCommsDatabase &, TInt, TInt, TInt, TInt)
Two-phased constructor. Leaves on failure, places instance on cleanup stack.
Parameters
CCommsDatabase
& aDb
|
a pointer to a CCommsDataBase.
|
TInt
aIspFilter
|
|
TInt
aBearerFilter
|
Filtering criteria on bearer type Possible values are the TApBearer enums and their combinations (or-ed).
|
TInt
aSortType
|
Specifies the sort order to use. Possible values are: KEApSortUidAscending, KEApSortUidDescending, KEApSortNameAscending, KEApSortNameDescending
|
TInt
aReqIpvType
|
Filtering criteria on the IPv type of the access point. In case of GPRS, GPRS_PDP_TYPE holds it, while in case of CSD, all CSD access points are considered to be IPv4 & IPv6 (both)
|
NewLC(CCommsDatabase &, TInt, TInt, TInt, TInt, TVpnFilterType)
Two-phased constructor. Leaves on failure, places instance on cleanup stack.
Parameters
CCommsDatabase
& aDb
|
a pointer to a CCommsDataBase.
|
TInt
aIspFilter
|
|
TInt
aBearerFilter
|
Filtering criteria on bearer type Possible values are the TApBearer enums and their combinations (or-ed).
|
TInt
aSortType
|
Specifies the sort order to use. Possible values are: KEApSortUidAscending, KEApSortUidDescending, KEApSortNameAscending, KEApSortNameDescending
|
TInt
aReqIpvType
|
Filtering criteria on the IPv type of the access point. In case of GPRS, GPRS_PDP_TYPE holds it, while in case of CSD, all CSD access points are considered to be IPv4 & IPv6 (both)
|
TVpnFilterType
aVpnFilterType
|
a TVpnFilterType enum specifying the vpn filtering.
|
NewLC(CCommsDatabase &, TInt, TInt, TInt, TInt, TVpnFilterType, TBool)
Two-phased constructor. Leaves on failure, places instance on cleanup stack.
Parameters
CCommsDatabase
& aDb
|
a pointer to a CCommsDataBase.
|
TInt
aIspFilter
|
|
TInt
aBearerFilter
|
Filtering criteria on bearer type Possible values are the TApBearer enums and their combinations (or-ed).
|
TInt
aSortType
|
Specifies the sort order to use. Possible values are: KEApSortUidAscending, KEApSortUidDescending, KEApSortNameAscending, KEApSortNameDescending
|
TInt
aReqIpvType
|
Filtering criteria on the IPv type of the access point. In case of GPRS, GPRS_PDP_TYPE holds it, while in case of CSD, all CSD access points are considered to be IPv4 & IPv6 (both)
|
TVpnFilterType
aVpnFilterType
|
a TVpnFilterType enum specifying the vpn filtering.
|
TBool
aIncludeEasyWlan
|
TBool specifying whther to include EasyWlan access point in the list or not...
|
OpenViewMatchingTextL(const TDesC &, const TDesC &, const TDesC16 &)
Opens a view on the given table where a given text coloumn has a given value
PosInArray(CArrayFixFlat< TUint32 > *, TUint32)
Returns the position of a given value in the given array.
SetFiltersL(TInt, TInt, TInt)
IMPORT_C void
|
SetFiltersL
|
(
|
TInt
|
aIspFilter,
|
|
TInt
|
aBearerFilter,
|
|
TInt
|
aSortType
|
|
)
|
|
Sets filters and sorting order for the list of available access points
Parameters
TInt
aIspFilter
|
|
TInt
aBearerFilter
|
Filtering criteria on bearer type Possible values are the TApBearer enums and their combinations (or-ed).
|
TInt
aSortType
|
Specifies the sort order to use. Possible values are: KEApSortUidAscending, KEApSortUidDescending, KEApSortNameAscending, KEApSortNameDescending
|
SetFiltersL(TInt, TInt, TInt, TInt, TInt)
void
|
SetFiltersL
|
(
|
TInt
|
aIspFilter,
|
|
TInt
|
aBearerFilter,
|
|
TInt
|
aSortType,
|
|
TInt
|
aReqIpvType,
|
|
TInt
|
aVpnFilterType
|
|
)
|
[private]
|
Sets filters and sorting order for the list of available access points
Parameters
TInt
aIspFilter
|
|
TInt
aBearerFilter
|
Filtering criteria on bearer type Possible values are the TApBearer enums and their combinations (or-ed).
|
TInt
aSortType
|
Specifies the sort order to use. Possible values are: KEApSortUidAscending, KEApSortUidDescending, KEApSortNameAscending, KEApSortNameDescending
|
TInt
aReqIpvType
|
The filtering criteria for IPv type
|
TInt
aVpnFilterType
|
The Vpn filtering type, TVpnFilterType values
|
SortLocalisedNameL(TBool)
void
|
SortLocalisedNameL
|
(
|
TBool
|
aAscending = ETrue
|
)
|
[private]
|
Sorts the data according to localised sorting on the access point names, using CompareC
SortOrder()
IMPORT_C
TInt
|
SortOrder
|
(
|
)
|
|
Gets the current sorting order
SortUidL(TBool)
void
|
SortUidL
|
(
|
TBool
|
aAscending = ETrue
|
)
|
[private]
|
Sorts the data according to Uids
Type()
IMPORT_C
TCommsDbIspType
|
Type
|
(
|
)
|
|
Gets the ISP-type of the current access point
Uid()
Gets the UID of the current access point
Member Data Documentation
CApListItemList * iApList
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.