CWPCharacteristic Class Reference

class CWPCharacteristic : public CBase

CWPCharacteristic contains one characteristic.

ProvisioningEngine
Since
2.0

Inherits from

Constructor & Destructor Documentation

CWPCharacteristic(TInt)

CWPCharacteristic(TIntaType)[private]

C++ default constructor.

Parameters

TInt aType

~CWPCharacteristic()

~CWPCharacteristic()

Destructor.

Member Functions Documentation

AcceptL(MWPVisitor &)

IMPORT_C voidAcceptL(MWPVisitor &aVisitor)

Accepts a visitor for the parameters in characteristic.

Parameters

MWPVisitor & aVisitorThe visitor to be called for each element.

CallVisitorL(MWPVisitor &)

voidCallVisitorL(MWPVisitor &aVisitor)

Parameters

MWPVisitor & aVisitor

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

Data()

IMPORT_C const TDesC8 &Data()const

Returns adapter specific data.

Data(TInt)

IMPORT_C const TDesC8 &Data(TIntaIndex)const

Returns adapter specific data from the specific slot.

Parameters

TInt aIndexindex of the slot from where to get data. Return KNullDesC if the slot doesn't contain anything.

DeleteAllData()

IMPORT_C voidDeleteAllData()

Deletes all adapter specific data.

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

InsertL(MWPElement *)

IMPORT_C voidInsertL(MWPElement *aElement)

Inserts a parameter to the characteristic. Ownership is tranferred.

Parameters

MWPElement * aElement

InsertLinkL(CWPCharacteristic &)

IMPORT_C voidInsertLinkL(CWPCharacteristic &aParameter)

Inserts a link to a characteristic.

Parameters

CWPCharacteristic & aParameterParameter to insert.

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

Name()

IMPORT_C const TDesC &Name()const

Returns the characteristic's name.

NewL(TInt)

CWPCharacteristic *NewL(TIntaType)[static]

Two-phased constructor.

Parameters

TInt aType

NewLC(TInt)

CWPCharacteristic *NewLC(TIntaType)[static]

Two-phased constructor.

Parameters

TInt aType

ParameterL(TInt, CArrayFix< TPtrC > *)

IMPORT_C voidParameterL(TIntaID,
CArrayFix< TPtrC > *aParameters
)

Returns all parameters with a certain type inside this characteristic.

Parameters

TInt aIDThe ID of the parameter to look for
CArrayFix< TPtrC > * aParametersTable to store all values for the parameter

SetDataL(const TDesC8 &)

IMPORT_C voidSetDataL(const TDesC8 &aData)

Sets adapter specific data. Takes a copy.

Parameters

const TDesC8 & aDataData to be copied.

SetDataL(const TDesC8 &, TInt)

IMPORT_C voidSetDataL(const TDesC8 &aData,
TIntaIndex
)

Sets adapter specific data in specific slot. Takes a copy.

Parameters

const TDesC8 & aDataData to be copied.
TInt aIndexindex of slot where to store the data.

SetNameL(const TDesC &)

IMPORT_C voidSetNameL(const TDesC &aValue)

Sets the characteristic's name.

Parameters

const TDesC & aValue

Type()

TInt Type()const

Member Data Documentation

CArrayPtr< HBufC8 > * iData

CArrayPtr< HBufC8 > *iData[private]

RPointerArray< MWPElement > iElements

RPointerArray< MWPElement >iElements[private]

RPointerArray< CWPCharacteristic > iLinks

RPointerArray< CWPCharacteristic >iLinks[private]

HBufC * iName

HBufC *iName[private]

TInt iType

TInt iType[private]