#include <mw/ApAccessPointItem.h>
class CApAccessPointItem : public CBase |
Protected Member Functions | |
---|---|
CApAccessPointItem() | |
IMPORT_C void | ConstructL() |
CApAccessPointItem is used to exchange data between engine and client. It holds the information for an access point including WAP, IAP, ISP (if present & applies). This class uses the same approach as CommDB to read and write data: it has functions for each data type implemented. To read or write the data, we have to know the data type and the enum name of the 'column'. The column values has the names of the database columns with the 'EAp' prefix. The reason for this (not using the database column descriptors) is performance. It is much faster to compare enum values than literals.
IMPORT_C TApBearerType | BearerTypeL | ( | ) |
This function returns the bearer type for the current access point Deprecated
Returns: The current bearer type for the access point
IMPORT_C const TDesC & | ConnectionName | ( | ) | const |
This function returns the name of the connection Ownership is not passed. Deprecated
Returns: The name of the connection
IMPORT_C void | CopyFromL | ( | const CApAccessPointItem & | aCopyFrom | ) |
Copies the data from another CApAccessPointItem. Substitute for the "assignment operator". It requires allocation thus can leave. Wap Access Point Uid is not copied.
IMPORT_C TBool | HasSameIspAndBearerL | ( | CApAccessPointItem & | aItem | ) |
This function compares this and the passed CApAccessPointItem whether they have the same ISP and bearer Returns true if the APs have the same phone number Deprecated
Parameter | Description |
---|---|
aItem | a CApAccessPointItem to compare with |
Returns: whether the APs have the same isp and bearer
IMPORT_C TBool | IsReadOnly | ( | ) | const |
This function returns whether the access point is read-only or not. Deprecated
Returns: Whether the current access point is read-only or not.
IMPORT_C CApAccessPointItem * | NewLC | ( | ) | [static] |
Two-phased constructor. Leaves on failure, places instance on cleanup stack. Instance is initialised to default values. The created instance is suitable for passing to CApDataHandler's functions, contains all necessary information. Deprecated
Returns: The constructed CApAccessPointItem.
This function reads up a boolean value from the specified column. If the specified column does not exist (that is, not part of the database structure), it will Panic in debug builds and it will return KErrInvalidColumn in release builds without Panicking. Panic is used in debug builds because it indicates a programming error. In release, it 'notifies' the caller about the error through the return value but enables system to continue operation. Deprecated
Parameter | Description |
---|---|
aColumn | Enum value indicating the column to read. |
aValue | A reference to a boolean to hold the value |
Returns: Error code.
This function reads up a long text value from the specified column. The ownership is not passed to the caller. It means that the caller should not delete the received value. If the caller must take the ownership for any reason, must make a copy and use that and delete the copy when no longer needed. Deprecated
Parameter | Description |
---|---|
aColumn | Enum value indicating the column to read. |
Returns: A const HBufC* to the value.
NOTE: This function is deprecated. Use ReadConstLongTextL! This function reads up a long text value from the specified column. The ownership is not passed to the caller. It means that the caller should not delete the received value. If the caller must take the ownership for any reason, must make a copy and use that and delete the copy when no longer needed. Deprecated
Parameter | Description |
---|---|
aColumn | Enum value indicating the column to read. |
Returns: A HBufC* to the value.
This function reads up an 8-bit text value from the specified column. Deprecated
Parameter | Description |
---|---|
aColumn | Enum value indicating the column to read. |
aValue | Reference to an 8-bit descriptor to hold the value |
Returns: no return value
This function reads up a 16-bit text value from the specified column. Deprecated
Parameter | Description |
---|---|
aColumn | Enum value indicating the column to read. |
aValue | Reference to a 16-bit descriptor to hold the value |
Returns: no return value
This function reads the length of the text in the specified column. Deprecated
Parameter | Description |
---|---|
aColumn | Enum value indicating the column to read. |
Returns: The length of the text in that column.
This function reads up a TUint32 value from the specified column. In case the given value was not written to the database, it will return KErrValueUnspecified. If the specified column does not exist (that is, not part of the database structure), it will Panic in debug builds and it will return KErrInvalidColumn in release builds without Panicking. Panic is used in debug builds because it indicates a programming error. In release, it 'notifies' the caller about the error through the return value but enables system to continue operation. Deprecated
Parameter | Description |
---|---|
aColumn | Enum value indicating the column to read. |
aValue | A reference to a TUint32 to hold the value |
Returns: Error code.
IMPORT_C TBool | SanityCheckOk | ( | ) |
This function checks the integrity of the CApAccessPointItem. Currently checks: IF WAP_IP_BEARER, WAP_ISP_TYPE conforms to IAP_SERVICE_TYPE Deprecated
Returns: Boolean indicating whether the sanity check has passed(ETrue) or not(EFalse)
IMPORT_C void | SetBearerTypeL | ( | TApBearerType | aBearer | ) |
This function sets the bearer type for the current access point Deprecated
Parameter | Description |
---|---|
aBearer | TApBearerType enum indicating the desired bearer type. |
Returns: No return value.
IMPORT_C void | SetNamesL | ( | const TDesC16 & | aValue | ) |
This function writes a 16-bit text value to the 'name' fields of the access point. This includes: WAP_ACCESS_POINT, IAP, Dial/in/out/Gprs In/Out table's COMM_DB_NAME fields. These fields are (by TApMember): EApWapAccessPointName, EApIapName, EApIspName. It is useful if we need to use same names. Deprecated
Parameter | Description |
---|---|
aValue | A const reference to a 16-bit text descriptor to the value. |
Returns: No return value.
void | SetVpnAp | ( | TBool | aIsVpn | ) |
Sets the current access point as VPN or as normal AP. Internal use only!
Parameter | Description |
---|---|
aIsVpn | a TBool specifiyng that the current AP is VPN or not. |
IMPORT_C const TDesC & | WapBearer | ( | ) | const |
This function returns the current WAP bearer for the access point Ownership is not passed. Deprecated
Returns: The current WAP bearer for the access point
IMPORT_C TUint32 | WapUid | ( | ) | const |
This function returns the ID of the access point Deprecated
Returns: The ID of this access point
This function writes a boolean value to the specified column. If the specified column does not exist (that is, not part of the database structure), it will Panic in debug builds and it will return KErrInvalidColumn in release builds without Panicking. Panic is used in debug builds because it indicates a programming error. In release, it 'notifies' the caller about the error through the return value but enables system to continue operation. Deprecated
Parameter | Description |
---|---|
aColumn | Enum value indicating the column to write. |
aValue | A const reference to a boolean value |
Returns: Error code.
This function writes a long text value to the specified column. If the specified column does not exist (that is, not part of the database structure), it will Panic in debug builds and it will return KErrInvalidColumn in release builds without Panicking. Panic is used in debug builds because it indicates a programming error. In release, it 'notifies' the caller about the error through the return value but enables system to continue operation. This function can Leave if the copying of the text does not succeed. Deprecated
Parameter | Description |
---|---|
aColumn | Enum value indicating the column to write. |
aValue | Reference to a 16-bit text descriptor to the value |
Returns: Error code.
This function writes an 8-bit text value to the specified column. If the specified column does not exist (that is, not part of the database structure), it will Panic in debug builds and it will return KErrInvalidColumn in release builds without Panicking. Panic is used in debug builds because it indicates a programming error. In release, it 'notifies' the caller about the error through the return value but enables system to continue operation. This function can Leave if the copying of the text does not succeed. Possible leave codes are the system leave codes. Deprecated
Parameter | Description |
---|---|
aColumn | Enum value indicating the column to write. |
aValue | Reference to an 8-bit text descriptor to the value |
Returns: Error code.
This function writes a 16-bit text value to the specified column. If the specified column does not exist (that is, not part of the database structure), it will Panic in debug builds and it will return KErrInvalidColumn in release builds without Panicking. Panic is used in debug builds because it indicates a programming error. In release, it 'notifies' the caller about the error through the return value but enables system to continue operation. This function can Leave if the copying of the text does not succeed. Deprecated
Parameter | Description |
---|---|
aColumn | Enum value indicating the column to write. |
aValue | Reference to a 16-bit text descriptor to the value |
Returns: Error code.
This function writes a TUint32 value to the specified column. If the specified column does not exist (that is, not part of the database structure), it will Panic in debug builds and it will return KErrInvalidColumn in release builds without Panicking. Panic is used in debug builds because it indicates a programming error. In release, it 'notifies' the caller about the error through the return value but enables system to continue operation. Deprecated
Parameter | Description |
---|---|
aColumn | Enum value indicating the column to write. |
aValue | A const reference to a TUint32 value |
Returns: Error code.
IMPORT_C TBool | operator!= | ( | const CApAccessPointItem & | aitem | ) | const |
Inequality operator. Wap Access Point Uid is not counted.
IMPORT_C TBool | operator== | ( | const CApAccessPointItem & | aitem | ) | const |
Equality operator. Wap Access Point Uid is not counted.