#include <mw/ApUtils.h>
class CApUtils : public CBase |
Public Member Functions | |
---|---|
virtual | ~CApUtils() |
IMPORT_C TApBearerType | BearerTypeL(TUint32) |
IMPORT_C TBool | DoHasMandatoryFieldsFilledL(TUint32, CCommsDbTableView *, TApBearerType) |
IMPORT_C TBool | HasMandatoryFieldsFilledL(TUint32) |
TBool | HasWlanSSIDL(TUint32) |
IMPORT_C TBool | IAPExistsL(TUint32) |
IMPORT_C void | ISPTypeL(TUint32, TCommsDbIspType &) |
IMPORT_C TUint32 | IapIdFromWapIdL(TUint32) |
IMPORT_C TBool | IsAPInUseL(TUint32) |
IMPORT_C TBool | IsReadOnlyL(TUint32) |
IMPORT_C TBool | IsValidNameL(const TDesC &) |
IMPORT_C TBool | IsValidNameL(const TDesC &, TUint32) |
TBool | IsWlanL(TUint32) |
IMPORT_C TBool | MakeValidNameL(TDes &) |
IMPORT_C void | NameL(TUint32, TDes &) |
IMPORT_C CApUtils * | NewLC(CCommsDatabase &) |
IMPORT_C void | SetISPTypeL(TUint32, TCommsDbIspType) |
IMPORT_C void | SetNameL(TDes &, TUint32) |
IMPORT_C TBool | WapApExistsL(TUint32) |
IMPORT_C void | WapBearerTypeL(TUint32, TDes &) |
IMPORT_C TUint32 | WapIdFromIapIdL(TUint32) |
Protected Member Functions | |
---|---|
CApUtils() | |
IMPORT_C void | ConstructL(CCommsDatabase &) |
TApBearerType | DoBearerTypeL(TUint32) |
void | DoISPTypeL(TUint32, TCommsDbIspType &) |
TBool | DoIsWlanL(TUint32) |
void | DoNameL(TUint32, TDes &) |
void | DoSetISPTypeL(TUint32, TCommsDbIspType) |
void | DoSetNameL(TDes &, TUint32) |
void | DoWapBearerTypeL(TUint32, TDes &) |
TBool | DoesExistsL(TPtrC, TUint32) |
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).
IMPORT_C TApBearerType | BearerTypeL | ( | TUint32 | aUid | ) |
Gets the bearer type of a given access point. Leaves on error. Deprecated
Parameter | Description |
---|---|
aUid | The UID of the access point. |
Returns: The type of the bearer.
IMPORT_C void | ConstructL | ( | CCommsDatabase & | aDb | ) | [protected] |
Second-phase constructor.
TApBearerType | DoBearerTypeL | ( | TUint32 | aUid | ) | [protected] |
Gets the bearer type of a given access point. Leaves on error.
Parameter | Description |
---|---|
aUid | The UID of the access point. |
Returns: The type of the bearer.
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. Deprecated
Parameter | Description |
---|---|
aUid | The UID of the access point |
Returns: TBool Are the WAP-mandatory fields filled in the access point?
void | DoISPTypeL | ( | TUint32 | aUid, |
TCommsDbIspType & | aIspType | |||
) | [protected] |
Indicates the ISP type of a given access point.
Parameter | Description |
---|---|
aUid | The UID of the access point. |
aIspType | A reference to a TCommsDbIspType to hold the value |
Returns: No return value.
void | DoSetISPTypeL | ( | TUint32 | aUid, |
TCommsDbIspType | aIspType | |||
) | [protected] |
Sets the ISP type for a given access point
Parameter | Description |
---|---|
aUid | The UID of the access point |
aIspType | The desired Isp type of the access point |
Returns: no return value.
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.
Parameter | Description |
---|---|
aName | A reference to the name of the access point. The given name is returned in it. |
aUid | The UID of the access point. |
Returns: no return value.
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.
Parameter | Description |
---|---|
aUid | The UID of the access point. |
aBearer | A reference to a TBearer to hold the bearer type of the access point. |
Returns: no return value.
Returns in a TBool whether the record identified by the passed aUid exists or not in the table identified by the passed table name.
Parameter | Description |
---|---|
aTable | The name of the table to check |
aUid | The UID to check for |
Returns: TBool indicating whether the record with the given ID exists in the given table or not.
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. Deprecated
Parameter | Description |
---|---|
aUid | The UID of the access point |
Returns: TBool Are the WAP-mandatory fields filled in the access point?
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.
IMPORT_C void | ISPTypeL | ( | TUint32 | aUid, |
TCommsDbIspType & | aIspType | |||
) |
Indicates the ISP type of a given access point. Deprecated
Parameter | Description |
---|---|
aUid | The UID of the access point. |
aIspType | A reference to a TCommsDbIspType to hold the value |
Returns: No return value.
Gets the Iap record ID for a given access point ID Deprecated
Parameter | Description |
---|---|
aUid | The UID of the access point |
Returns: The Iap record ID.
Indicates whether a given access point is in use or not. If access point does not exists, return value is TRUE Deprecated
Parameter | Description |
---|---|
aUid | The UID of the access point. |
Returns: Boolean indicating if it is in use (if used, TRUE)
Determines whether a given AP is read-only or not. Deprecated
Parameter | Description |
---|---|
aUid | A UID to look for |
Returns: Boolean indicating if it is read-only or not.
Indicates whether a given name is valid or not. Deprecated
Parameter | Description |
---|---|
aNameText | The name to check. |
Returns: Boolean indicating if it is valid or not.
Indicates whether a given name is valid or not. The name is valid if none, or only the aAcceptUid AP has it. Deprecated
Parameter | Description |
---|---|
aNameText | The name to check. |
aAcceptUid | A UID to accept with this name |
Returns: Boolean indicating if it is valid or not.
TBool CApUtils::MakeValidNameL(TDes& aNameText); Creates a valid name based on the given one. Deprecated
Parameter | Description |
---|---|
aNameText | The name to use for creating a valid name. The new name is returned in it, too. |
Returns: Whether the name was changed or not
Reads the Name of a given access point Deprecated
Parameter | Description |
---|---|
aUid | The UID of the access point. |
Returns: no return value. Passed descriptor MUST be large enough to hold the new data, otherwise leaves with KErrDescOverflow.
IMPORT_C CApUtils * | NewLC | ( | CCommsDatabase & | aDb | ) | [static] |
Two-phased constructor. Leaves on failure, places instance on cleanup stack. Deprecated
Parameter | Description |
---|---|
aDb | a reference to a CCommsDataBase object. |
Returns: The constructed CApUtils.
IMPORT_C void | SetISPTypeL | ( | TUint32 | aUid, |
TCommsDbIspType | aIspType | |||
) |
Sets the ISP type for a given access point Deprecated
Parameter | Description |
---|---|
aUid | The UID of the access point |
aIspType | The desired Isp type of the access point |
Returns: no return value.
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. Deprecated
Parameter | Description |
---|---|
aName | A reference to the name of the access point. The given name is returned in it. |
aUid | The UID of the access point. |
Returns: no return value.
Returns in a TBool whether the access point identified by the passed aUid exists or not. Deprecated
Parameter | Description |
---|---|
aUid | the access point ID to check for.(Wap access point ID). |
Returns: TBool indicating whether an access point with the given ID 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. Deprecated
Parameter | Description |
---|---|
aUid | The UID of the access point. |
aBearer | A reference to a TBearer to hold the bearer type of the access point. |
Returns: no return value.
Gets the Wap record ID for a given Iap record ID Deprecated
Parameter | Description |
---|---|
aUid | The UID of the Iap |
Returns: The Wap access point ID.