CWPCharacteristic Class Reference

class CWPCharacteristic : public CBase

CWPCharacteristic contains one characteristic.

ProvisioningEngine
Since
2.0

Inherits from

Constructor & Destructor Documentation

CWPCharacteristic(TInt)

CWPCharacteristic ( TInt aType ) [private]

C++ default constructor.

Parameters

TInt aType

~CWPCharacteristic()

~CWPCharacteristic ( )

Destructor.

Member Functions Documentation

AcceptL(MWPVisitor &)

IMPORT_C void AcceptL ( MWPVisitor & aVisitor )

Accepts a visitor for the parameters in characteristic.

Parameters

MWPVisitor & aVisitor The visitor to be called for each element.

CallVisitorL(MWPVisitor &)

void CallVisitorL ( MWPVisitor & aVisitor )

Parameters

MWPVisitor & aVisitor

ConstructL()

void ConstructL ( ) [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 ( TInt aIndex ) const

Returns adapter specific data from the specific slot.

Parameters

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

DeleteAllData()

IMPORT_C void DeleteAllData ( )

Deletes all adapter specific data.

ExternalizeL(RWriteStream &)

void ExternalizeL ( RWriteStream & aStream ) const

Parameters

RWriteStream & aStream

InsertL(MWPElement *)

IMPORT_C void InsertL ( MWPElement * aElement )

Inserts a parameter to the characteristic. Ownership is tranferred.

Parameters

MWPElement * aElement

InsertLinkL(CWPCharacteristic &)

IMPORT_C void InsertLinkL ( CWPCharacteristic & aParameter )

Inserts a link to a characteristic.

Parameters

CWPCharacteristic & aParameter Parameter to insert.

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aStream )

Parameters

RReadStream & aStream

Name()

IMPORT_C const TDesC & Name ( ) const

Returns the characteristic's name.

NewL(TInt)

CWPCharacteristic * NewL ( TInt aType ) [static]

Two-phased constructor.

Parameters

TInt aType

NewLC(TInt)

CWPCharacteristic * NewLC ( TInt aType ) [static]

Two-phased constructor.

Parameters

TInt aType

ParameterL(TInt, CArrayFix< TPtrC > *)

IMPORT_C void ParameterL ( TInt aID,
CArrayFix < TPtrC > * aParameters
)

Returns all parameters with a certain type inside this characteristic.

Parameters

TInt aID The ID of the parameter to look for
CArrayFix < TPtrC > * aParameters Table to store all values for the parameter

SetDataL(const TDesC8 &)

IMPORT_C void SetDataL ( const TDesC8 & aData )

Sets adapter specific data. Takes a copy.

Parameters

const TDesC8 & aData Data to be copied.

SetDataL(const TDesC8 &, TInt)

IMPORT_C void SetDataL ( const TDesC8 & aData,
TInt aIndex
)

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

Parameters

const TDesC8 & aData Data to be copied.
TInt aIndex index of slot where to store the data.

SetNameL(const TDesC &)

IMPORT_C void SetNameL ( 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]