MWPContextManager Class Reference

class MWPContextManager

MWPContextManager declares an interface to be implemented by context managers.

ProvisioningEngine
Since
2.0

Constructor & Destructor Documentation

~MWPContextManager()

~MWPContextManager()[inline, virtual]

Destructor.

Member Functions Documentation

ContextDataCountL(TUint32)

TInt ContextDataCountL(TUint32aUid)[pure virtual]

Returns the number of context data items. Note that this count is an approximate and should not be relied on except for giving user progress feedback.

Parameters

TUint32 aUidUID of the context

ContextExistsL(TUint32)

TBool ContextExistsL(TUint32aUid)[pure virtual]

Checks if a context exists.

Parameters

TUint32 aUidThe UID of the context

ContextExistsL(const TDesC &)

TBool ContextExistsL(const TDesC &aTPS)[pure virtual]

Checks if a context exists.

Parameters

const TDesC & aTPSThe TPS of the context

ContextL(const TDesC &)

TUint32 ContextL(const TDesC &aTPS)[pure virtual]

Returns a specific context.

Parameters

const TDesC & aTPSTPS whose context should be looked for

ContextNameL(TUint32)

HBufC16 *ContextNameL(TUint32aUid)[pure virtual]

Name of a context.

Parameters

TUint32 aUidUID of the context.

ContextProxiesL(TUint32)

CDesC16Array *ContextProxiesL(TUint32aUid)[pure virtual]

Trusted proxies of a context.

Parameters

TUint32 aUidUID of the context.

ContextTPSL(TUint32)

HBufC16 *ContextTPSL(TUint32aUid)[pure virtual]

TPS of a context.

Parameters

TUint32 aUidUID of the context.

ContextUidsL()

CArrayFix< TUint32 > *ContextUidsL()[pure virtual]

Number of contexts available.

CreateContextL(const TDesC &, const TDesC &, const MDesC16Array &)

TUint32 CreateContextL(const TDesC &aName,
const TDesC &aTPS,
const MDesC16Array &aProxies
)[pure virtual]

Creates a context. Leaves with KErrOverflow if the max. number of contexts has been reached.

Parameters

const TDesC & aNameName of the context
const TDesC & aTPSTPS of the context
const MDesC16Array & aProxiesProxies that can be used in the context

CurrentContextL()

TUint32 CurrentContextL()[pure virtual]

Returns the current context.

DeleteContextDataL(MWPContextExtensionArray &, TUint32)

TBool DeleteContextDataL(MWPContextExtensionArray &aArray,
TUint32aUid
)[pure virtual]

Deletes a context data item.

Parameters

MWPContextExtensionArray & aArrayThe context extension array
TUint32 aUidUID of the context.

DeleteContextL(MWPContextExtensionArray &, TUint32)

voidDeleteContextL(MWPContextExtensionArray &aArray,
TUint32aUid
)[pure virtual]

Deletes a context.

Parameters

MWPContextExtensionArray & aArrayThe context extension array
TUint32 aUid

RegisterContextObserverL(MWPContextObserver *)

voidRegisterContextObserverL(MWPContextObserver *aObserver)[pure virtual]

Register an observer to context information.

Parameters

MWPContextObserver * aObserverThe new observer

SaveL(MWPContextExtension &, TInt)

voidSaveL(MWPContextExtension &aExtension,
TIntaItem
)[pure virtual]

Called after saving one setting.

Parameters

MWPContextExtension & aExtensionExtension interface for the saving adapter
TInt aItemSetting number

SetCurrentContextL(TUint32)

voidSetCurrentContextL(TUint32aUid)[pure virtual]

Sets the current context.

Parameters

TUint32 aUid

UnregisterContextObserver(MWPContextObserver *)

TInt UnregisterContextObserver(MWPContextObserver *aObserver)[pure virtual]

Unregister an observer to context information.

Parameters

MWPContextObserver * aObserverThe observer to unregister