CWPAdapter Class Reference

class CWPAdapter : public CBase

CWPAdapter has to be implemented by each adapter. CWPAdapter contains only pure virtual methods, which must be implemented by adapters, and inline methods, which can be used by adapters or engine. Inlining prevents circular binary dependency.

ProvisioningEngine
Since
2.0

Inherits from

Constructor & Destructor Documentation

CWPAdapter()

IMPORT_CCWPAdapter()[protected]

C++ constructor.

~CWPAdapter()

IMPORT_C~CWPAdapter()

Destructor.

Member Functions Documentation

CanSetAsDefault(TInt)

TBool CanSetAsDefault(TIntaItem)const [pure virtual]

Returns ETrue if the adapter can set the settings as default.

Parameters

TInt aItem

ContextExtension(MWPContextExtension *&)

TInt ContextExtension(MWPContextExtension *&)[inline, virtual]

Returns a pointer to a context extension.

Parameters

MWPContextExtension *&

DetailsL(TInt, MWPPairVisitor &)

TInt DetailsL(TIntaItem,
MWPPairVisitor &aVisitor
)[pure virtual]

Calls the pair visitor for each detail line of an item.

Parameters

TInt aItemItem whose details are needed
MWPPairVisitor & aVisitorPair visitor

GetSavingInfoL(TInt, RPointerArray< HBufC8 > &)

voidGetSavingInfoL(TInt,
RPointerArray< HBufC8 > &
)[inline, virtual]

Gets the saving information from the adapter that has saved settings.

Parameters

TInt
RPointerArray< HBufC8 > &

ItemCount()

TInt ItemCount()const [pure virtual]

Check the number of settings items.

ListL(RImplInfoPtrArray &)

voidListL(RImplInfoPtrArray &aImplInfoArray)[static]

Lists all CWPAdapter implementations.

Parameters

RImplInfoPtrArray & aImplInfoArrayArray to be filled with implementations

NewL(const TUid &)

IMPORT_C CWPAdapter *NewL(const TUid &aImplementationUid)[static]

Two-phased constructor.

Parameters

const TUid & aImplementationUidThe implementation UID of the adapter to be created.

Reserved_1()

TInt Reserved_1()[private, inline, virtual]

SaveL(TInt)

voidSaveL(TIntaItem)[pure virtual]

Saves one setting handled by the adapter.

Parameters

TInt aItem

SavingFinalizedL()

voidSavingFinalizedL()[inline, virtual]

Informs the adapters of the finalization of saving.

SetAsDefaultL(TInt)

voidSetAsDefaultL(TIntaItem)[pure virtual]

Adapter sets the settings as default.

Parameters

TInt aItem

SettingsSavedL(const TDesC8 &, const TDesC8 &, const TDesC8 &)

voidSettingsSavedL(const TDesC8 &,
const TDesC8 &,
const TDesC8 &
)[inline, virtual]

Informs the adapters of the saved settings.

Parameters

const TDesC8 &
const TDesC8 &
const TDesC8 &

SummaryText(TInt)

const TDesC16 &SummaryText(TIntaIndex)const [pure virtual]

Returns the text of the nth summary line.

Parameters

TInt aIndexNumber of summary line

SummaryTitle(TInt)

const TDesC16 &SummaryTitle(TIntaIndex)const [pure virtual]

Returns the title of the nth summary line.

Parameters

TInt aIndexNumber of summary line

VisitL(CWPCharacteristic &)

voidVisitL(CWPCharacteristic &aCharacteristic)[pure virtual]

Parameters

CWPCharacteristic & aCharacteristic

VisitL(CWPParameter &)

voidVisitL(CWPParameter &aParameter)[pure virtual]

Parameters

CWPParameter & aParameter

VisitLinkL(CWPCharacteristic &)

voidVisitLinkL(CWPCharacteristic &aCharacteristic)[pure virtual]

Parameters

CWPCharacteristic & aCharacteristic

Member Data Documentation

TUid iDtor_ID_Key

TUid iDtor_ID_Key[protected]