API published in: S60 1st Ed
API deprecated in: S60 3rd Ed FP 2
Link against: apengine.lib
Required Capabilities
None
Exceptions
Functions modifying database (Create, Update, Delete) need WriteDeviceData. (CApDataHandler, CApUtils Setxxx functions)
#include <aputils.h>
Provides utilities to access points for clients. Encapsulates database handling. This class provides utility functions for clients that need some specific information or parameters from (maybe more than one) AP. It is provided for ease of use so clients do not have to work with CApDataHandler's concept (one object-one Uid).
Public Member Functions |
|
virtual IMPORT_C | ~CApUtils () |
Destructor. |
|
IMPORT_C TBool | IsAPInUseL (TUint32 aUid) |
Indicates whether a given access point is in use or not. |
|
IMPORT_C void | WapBearerTypeL (TUint32 aUid, TDes &aBearer) |
Indicates the WAP bearer type of a given access point. |
|
IMPORT_C TApBearerType | BearerTypeL (TUint32 aUid) |
Gets the bearer type of a given access point. |
|
IMPORT_C void | ISPTypeL (TUint32 aUid, TCommsDbIspType &aIspType) |
Indicates the ISP type of a given access point. |
|
IMPORT_C TBool | IsValidNameL (const TDesC &aNameText) |
Indicates whether a given name is valid or not. |
|
IMPORT_C TBool | MakeValidNameL (TDes &aNameText) |
TBool CApUtils::MakeValidNameL(TDes& aNameText); Creates a valid name based on the given one. |
|
IMPORT_C void | NameL (TUint32 aUid, TDes &aName) |
Reads the Name of a given access point. |
|
IMPORT_C void | SetNameL (TDes &aName, TUint32 aUid) |
Sets the Name of a given access point Name is validated and modified if needed. |
|
IMPORT_C void | SetISPTypeL (TUint32 aUid, TCommsDbIspType aIspType) |
Sets the ISP type for a given access point. |
|
IMPORT_C TUint32 | IapIdFromWapIdL (TUint32 aUid) |
Gets the Iap record ID for a given access point ID. |
|
IMPORT_C TUint32 | WapIdFromIapIdL (TUint32 aUid) |
Gets the Wap record ID for a given Iap record ID. |
|
IMPORT_C TBool | HasMandatoryFieldsFilledL (TUint32 aUid) |
Returns whether the access point has the WAP-mandatory fields filled or not. |
|
IMPORT_C TBool | IAPExistsL (TUint32 aUid) |
Returns in a TBool whether the internet access point part identified by the passed aUid exists or not. |
|
IMPORT_C TBool | WapApExistsL (TUint32 aUid) |
Returns in a TBool whether the access point identified by the passed aUid exists or not. |
|
IMPORT_C TBool | DoHasMandatoryFieldsFilledL (TUint32 aUid, CCommsDbTableView *aWapt=NULL, TApBearerType aBearertype=EApBearerTypeAllBearers) |
Returns whether the access point has the WAP-mandatory fields filled or not. |
|
IMPORT_C TBool | IsValidNameL (const TDesC &aNameText, TUint32 aAcceptUid) |
Indicates whether a given name is valid or not. |
|
IMPORT_C TBool | IsReadOnlyL (TUint32 aUid) |
Determines whether a given AP is read-only or not. |
|
TBool | IsWlanL (TUint32 aLanCommdbId) |
Determines whether a given LAN_SERVICE commsdb id is linked to a WLAN data (thus is it a WLAN) or not. |
|
TBool | HasWlanSSIDL (TUint32 aLanCommdbId) |
Determines whether a given LAN_SERVICE commsdb id which is linked to a WLAN data (thus is it a WLAN) has a valid SSID or it
is empty. |
|
Static Public Member Functions |
|
static IMPORT_C CApUtils * | NewLC (CCommsDatabase &aDb) |
Two-phased constructor. |
|
Protected Member Functions |
|
IMPORT_C | CApUtils () |
C++ default constructor. |
|
IMPORT_C void | ConstructL (CCommsDatabase &aDb) |
Second-phase constructor. |
|
void | DoWapBearerTypeL (TUint32 aUid, TDes &aBearer) |
Indicates the WAP bearer type of a given access point. |
|
TApBearerType | DoBearerTypeL (TUint32 aUid) |
Gets the bearer type of a given access point. |
|
void | DoISPTypeL (TUint32 aUid, TCommsDbIspType &aIspType) |
Indicates the ISP type of a given access point. |
|
void | DoNameL (TUint32 aUid, TDes &aName) |
Reads the Name of a given access point. |
|
void | DoSetNameL (TDes &aName, TUint32 aUid) |
Sets the Name of a given access point Name is validated and modified if needed. |
|
void | DoSetISPTypeL (TUint32 aUid, TCommsDbIspType aIspType) |
Sets the ISP type for a given access point. |
|
TBool | DoesExistsL (TPtrC aTable, TUint32 aUid) |
Returns in a TBool whether the record identified by the passed aUid exists or not in the table identified by the passed table
name. |
|
TBool | DoIsWlanL (TUint32 aLanCommdbId) |
Wrapper for public API. |
|
Destructor. |
|
C++ default constructor. |
|
Gets the bearer type of a given access point. Leaves on error.
|
|
Second-phase constructor. |
|
Gets the bearer type of a given access point. Leaves on error.
|
|
Returns in a TBool whether the record identified by the passed aUid exists or not in the table identified by the passed table name.
|
|
Returns whether the access point has the WAP-mandatory fields filled or not.
|
|
Indicates the ISP type of a given access point.
|
|
Wrapper for public API. Determines whether a given LAN_SERVICE commsdb id is linked to a WLAN data (thus is it a WLAN) or not.
|
|
Reads the Name of a given access point.
|
|
Sets the ISP type for a given access point.
|
|
Sets the Name of a given access point Name is validated and modified if needed. Passed aName buffer MUST be large enough to hold the modified name.
|
|
Indicates the WAP bearer type of a given access point. Passed descriptor MUST be large enough to hold the new data, otherwise leaves with KErrDescOverflow. The maximum length is the maximum length of a 'normal' text fields length in Comms DB, KCommsDbSvrMaxFieldLength, which is defined in cdblen.h.
|
|
Returns whether the access point has the WAP-mandatory fields filled or not. Starts a transaction which is 'internal' to ApEngine if client not started one.
|
|
Determines whether a given LAN_SERVICE commsdb id which is linked to a WLAN data (thus is it a WLAN) has a valid SSID or it is empty.
|
|
Returns in a TBool whether the internet access point part identified by the passed aUid exists or not. param aUid the internet access point ID to check for (NOT equals to Wap access point ID). return TBool indicating whether an internet access point with the given ID exists or not. |
|
Gets the Iap record ID for a given access point ID.
|
|
Indicates whether a given access point is in use or not. If access point does not exists, return value is TRUE
|
|
Indicates the ISP type of a given access point.
|
|
Determines whether a given AP is read-only or not.
|
|
Indicates whether a given name is valid or not. The name is valid if none, or only the aAcceptUid AP has it.
|
|
Indicates whether a given name is valid or not.
|
|
Determines whether a given LAN_SERVICE commsdb id is linked to a WLAN data (thus is it a WLAN) or not.
|
|
TBool CApUtils::MakeValidNameL(TDes& aNameText); Creates a valid name based on the given one.
|
|
Reads the Name of a given access point.
|
|
Two-phased constructor. Leaves on failure, places instance on cleanup stack.
|
|
Sets the ISP type for a given access point.
|
|
Sets the Name of a given access point Name is validated and modified if needed. Passed aName buffer MUST be large enough to hold the modified name.
|
|
Returns in a TBool whether the access point identified by the passed aUid exists or not.
|
|
Indicates the WAP bearer type of a given access point. Passed descriptor MUST be large enough to hold the new data, otherwise leaves with KErrDescOverflow. The maximum length is the maximum length of a 'normal' text fields length in Comms DB, KCommsDbSvrMaxFieldLength, which is defined in cdblen.h.
|
|
Gets the Wap record ID for a given Iap record ID.
|