CApListItem Class Reference

class CApListItem : public CBase

Representation of a list item.< This class is used to hold the main information of an access point. It is used in CApSelect.

Inherits from

Constructor & Destructor Documentation

CApListItem()

IMPORT_CCApListItem()[protected]

C++ default constructor.

~CApListItem()

IMPORT_C~CApListItem()[virtual]

Destructor.

Member Functions Documentation

BearerType()

IMPORT_C TApBearerTypeBearerType()

Gets the bearer-type of the current access point

ConstructL(TCommsDbIspType, TUint32, const TDesC &, TApBearerType)

IMPORT_C voidConstructL(TCommsDbIspTypeaIspType,
TUint32aUid,
const TDesC &aName,
TApBearerTypeaBearerType
)[protected]

NOTE: This function is deprecated, use the one with the additional aStartPage parameter below. Second-phase constructor.

Parameters

TCommsDbIspType aIspTypeThe type of the access point (Internet only, Wap only, Internet AND Wap)
TUint32 aUidThe ID of the access point
const TDesC & aNameThe name of the access point
TApBearerType aBearerTypeThe bearer type of the access point

ConstructL(TCommsDbIspType, TUint32, const TDesC &, TApBearerType, const TDesC &)

IMPORT_C voidConstructL(TCommsDbIspTypeaIspType,
TUint32aUid,
const TDesC &aName,
TApBearerTypeaBearerType,
const TDesC &aStartPage
)[protected]

Second-phase constructor.

Parameters

TCommsDbIspType aIspTypeThe type of the access point (Internet only, Wap only, Internet AND Wap)
TUint32 aUidThe ID of the access point
const TDesC & aNameThe name of the access point
TApBearerType aBearerTypeThe bearer type of the access point
const TDesC & aStartPage

ConstructL()

IMPORT_C voidConstructL()[protected]

Second-phase constructor.

CopyFromL(const CApListItem &)

IMPORT_C voidCopyFromL(const CApListItem &aCopyFrom)

Copies the data from another CApListItem Substitutes the "Assignment operator."

Parameters

const CApListItem & aCopyFrom

CreateExtraL()

voidCreateExtraL()[protected]

IsReadOnly()

IMPORT_C TBoolIsReadOnly()const

Returns whether the access point is read-only or not.

IsVpnAp()

TBool IsVpnAp()const

Returnes whether the given access point is a VPN ap or not.

Name()

IMPORT_C const TDesC &Name()

Gets the name of the 'current' access point Ownership of the returned text is not passed.

NewLC()

IMPORT_C CApListItem *NewLC()[static]

Two-phased constructor. Leaves on failure, places instance on cleanup stack.

NewLC(TCommsDbIspType, TUint32, const TDesC &, TApBearerType)

IMPORT_C CApListItem *NewLC(TCommsDbIspTypeaIspType,
TUint32aUid,
const TDesC &aName,
TApBearerTypeaBearerType
)[static]

NOTE: This function is deprecated, use the one with the additional aStartPage parameter below. Two-phased constructor. Leaves on failure, places instance on cleanup stack.

Parameters

TCommsDbIspType aIspTypeThe type of the access point (Internet only, Wap only, Internet AND Wap)
TUint32 aUidThe ID of the access point
const TDesC & aNameThe name of the access point
TApBearerType aBearerTypeThe bearer type of the access point

NewLC(TCommsDbIspType, TUint32, const TDesC &, TApBearerType, const TDesC &, TBool)

IMPORT_C CApListItem *NewLC(TCommsDbIspTypeaIspType,
TUint32aUid,
const TDesC &aName,
TApBearerTypeaBearerType,
const TDesC &aStartPage,
TBoolaReadOnly = ETrue
)[static]

Two-phased constructor. Leaves on failure, places instance on cleanup stack.

Parameters

TCommsDbIspType aIspTypeThe type of the access point (Internet only, Wap only, Internet AND Wap)
TUint32 aUidThe ID of the access point
const TDesC & aNameThe name of the access point
TApBearerType aBearerTypeThe bearer type of the access point
const TDesC & aStartPage
TBool aReadOnly = ETrueWhether the given item is read-only or not

NewLC(CApListItem *)

IMPORT_C CApListItem *NewLC(CApListItem *aItem)[static]

Two-phased constructor. Leaves on failure, places instance on cleanup stack.

Parameters

CApListItem * aItema pointer to a CApListItem.

SetItemL(TCommsDbIspType, TUint32, const TDesC &, TApBearerType)

IMPORT_C voidSetItemL(TCommsDbIspTypeaIspType,
TUint32aUid,
const TDesC &aName,
TApBearerTypeaBearerType
)

NOTE: This function is deprecated, use the one with the additional aStartPage parameter below. Sets item values of the access point. Leaves on failure.

Parameters

TCommsDbIspType aIspTypeThe type of the access point (Internet only, Wap only, Internet AND Wap)
TUint32 aUidThe ID of the access point
const TDesC & aNameThe name of the access point
TApBearerType aBearerTypeThe bearer type of the access point

SetItemL(TCommsDbIspType, TUint32, const TDesC &, TApBearerType, const TDesC &)

IMPORT_C voidSetItemL(TCommsDbIspTypeaIspType,
TUint32aUid,
const TDesC &aName,
TApBearerTypeaBearerType,
const TDesC &aStartpage
)

Sets item values of the access point. Leaves on failure.

Parameters

TCommsDbIspType aIspTypeThe type of the access point (Internet only, Wap only, Internet AND Wap)
TUint32 aUidThe ID of the access point
const TDesC & aNameThe name of the access point
TApBearerType aBearerTypeThe bearer type of the access point
const TDesC & aStartpageThe starting page of the access point

SetVpnFlag(TBool)

voidSetVpnFlag(TBoolaIsVpn)

Sets whether the given access point is a VPN ap or not.

Parameters

TBool aIsVpn

StartPage()

IMPORT_C const TDesC &StartPage()const

Returns the startpage of the current access point if any, otherwise, an empty string is returned. Ownership of the returned text is not passed.

Type()

IMPORT_C TCommsDbIspTypeType()

Gets the ISP-type of the current access point

Uid()

IMPORT_C TUint32Uid()

Gets the UID of the current access point

Member Data Documentation

TApBearerType iBearerType

TApBearerType iBearerType[private]

TApListItemExtra * iExt

TApListItemExtra *iExt[private]

TCommsDbIspType iIspType

TCommsDbIspType iIspType[private]

The type of the access point (Internet only, Wap only, Internet AND Wap)

HBufC * iName

HBufC *iName[private]

HBufC * iStartPage

HBufC *iStartPage[private]

TUint32 iUid

TUint32 iUid[private]