CApUtils Class Reference
class CApUtils : public CBase |
Representation of access point utilities. 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).
Constructor & Destructor Documentation
CApUtils()
IMPORT_C | CApUtils | ( | ) | [protected] |
~CApUtils()
IMPORT_C | ~CApUtils | ( | ) | [virtual] |
Member Functions Documentation
BearerTypeL(TUint32)
Gets the bearer type of a given access point. Leaves on error.
Parameters
TUint32 aUid | The UID of the access point. |
ConstructL(CCommsDatabase &)
Second-phase constructor.
DoBearerTypeL(TUint32)
Gets the bearer type of a given access point. Leaves on error.
Parameters
TUint32 aUid | The UID of the access point. |
DoHasMandatoryFieldsFilledL(TUint32, CCommsDbTableView *, TApBearerType)
Returns whether the access point has the WAP-mandatory fields filled or not.
DoISPTypeL(TUint32, TCommsDbIspType &)
Indicates the ISP type of a given access point.
Parameters
TUint32 aUid | The UID of the access point. |
TCommsDbIspType & aIspType | A reference to a TCommsDbIspType to hold the value |
DoIsWlanL(TUint32)
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.
DoNameL(TUint32, TDes &)
Reads the Name of a given access point
DoSetISPTypeL(TUint32, TCommsDbIspType)
Sets the ISP type for a given access point
DoSetNameL(TDes &, TUint32)
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.
Parameters
TDes & aName | A reference to the name of the access point. The given name is returned in it. |
TUint32 aUid | The UID of the access point. |
DoWapBearerTypeL(TUint32, TDes &)
void | DoWapBearerTypeL | ( | TUint32 | aUid, |
| TDes & | aBearer |
| ) | [protected] |
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.
Parameters
TUint32 aUid | The UID of the access point. |
TDes & aBearer | A reference to a TBearer to hold the bearer type of the access point. |
DoesExistsL(TPtrC, TUint32)
Returns in a TBool whether the record identified by the passed aUid exists or not in the table identified by the passed table name.
Parameters
TPtrC aTable | The name of the table to check |
TUint32 aUid | The UID to check for |
HasMandatoryFieldsFilledL(TUint32)
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.
Parameters
TUint32 aUid | The UID of the access point |
HasWlanSSIDL(TUint32)
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
IAPExistsL(TUint32)
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.
ISPTypeL(TUint32, TCommsDbIspType &)
Indicates the ISP type of a given access point.
Parameters
TUint32 aUid | The UID of the access point. |
TCommsDbIspType & aIspType | A reference to a TCommsDbIspType to hold the value |
IapIdFromWapIdL(TUint32)
Gets the Iap record ID for a given access point ID
Parameters
TUint32 aUid | The UID of the access point |
IsAPInUseL(TUint32)
Indicates whether a given access point is in use or not. If access point does not exists, return value is TRUE
Parameters
TUint32 aUid | The UID of the access point. |
IsReadOnlyL(TUint32)
Determines whether a given AP is read-only or not.
IsValidNameL(const TDesC &)
IMPORT_C TBool | IsValidNameL | ( | const TDesC & | aNameText | ) | |
Indicates whether a given name is valid or not.
Parameters
const TDesC & aNameText | The name to check. |
IsValidNameL(const TDesC &, TUint32)
Indicates whether a given name is valid or not. The name is valid if none, or only the aAcceptUid AP has it.
Parameters
const TDesC & aNameText | The name to check. |
TUint32 aAcceptUid | A UID to accept with this name |
IsWlanL(TUint32)
Determines whether a given LAN_SERVICE commsdb id is linked to a WLAN data (thus is it a WLAN) or not.
MakeValidNameL(TDes &)
IMPORT_C TBool | MakeValidNameL | ( | TDes & | aNameText | ) | |
Parameters
TDes & aNameText | The name to use for creating a valid name. The new name is returned in it, too. |
NameL(TUint32, TDes &)
Reads the Name of a given access point
NewLC(CCommsDatabase &)
Two-phased constructor. Leaves on failure, places instance on cleanup stack.
SetISPTypeL(TUint32, TCommsDbIspType)
Sets the ISP type for a given access point
SetNameL(TDes &, TUint32)
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.
Parameters
TDes & aName | A reference to the name of the access point. The given name is returned in it. |
TUint32 aUid | The UID of the access point. |
WapApExistsL(TUint32)
Returns in a TBool whether the access point identified by the passed aUid exists or not.
Parameters
TUint32 aUid | the access point ID to check for.(Wap access point ID). |
WapBearerTypeL(TUint32, TDes &)
IMPORT_C void | WapBearerTypeL | ( | TUint32 | aUid, |
| TDes & | aBearer |
| ) | |
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.
Parameters
TUint32 aUid | The UID of the access point. |
TDes & aBearer | A reference to a TBearer to hold the bearer type of the access point. |
WapIdFromIapIdL(TUint32)
Gets the Wap record ID for a given Iap record ID
Member Data Documentation
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.