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 ( TUint32 aUid ) [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 aUid UID of the context

ContextExistsL(TUint32)

TBool ContextExistsL ( TUint32 aUid ) [pure virtual]

Checks if a context exists.

Parameters

TUint32 aUid The UID of the context

ContextExistsL(const TDesC &)

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

Checks if a context exists.

Parameters

const TDesC & aTPS The TPS of the context

ContextL(const TDesC &)

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

Returns a specific context.

Parameters

const TDesC & aTPS TPS whose context should be looked for

ContextNameL(TUint32)

HBufC16 * ContextNameL ( TUint32 aUid ) [pure virtual]

Name of a context.

Parameters

TUint32 aUid UID of the context.

ContextProxiesL(TUint32)

CDesC16Array * ContextProxiesL ( TUint32 aUid ) [pure virtual]

Trusted proxies of a context.

Parameters

TUint32 aUid UID of the context.

ContextTPSL(TUint32)

HBufC16 * ContextTPSL ( TUint32 aUid ) [pure virtual]

TPS of a context.

Parameters

TUint32 aUid UID 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 & aName Name of the context
const TDesC & aTPS TPS of the context
const MDesC16Array & aProxies Proxies that can be used in the context

CurrentContextL()

TUint32 CurrentContextL ( ) [pure virtual]

Returns the current context.

DeleteContextDataL(MWPContextExtensionArray &, TUint32)

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

Deletes a context data item.

Parameters

MWPContextExtensionArray & aArray The context extension array
TUint32 aUid UID of the context.

DeleteContextL(MWPContextExtensionArray &, TUint32)

void DeleteContextL ( MWPContextExtensionArray & aArray,
TUint32 aUid
) [pure virtual]

Deletes a context.

Parameters

MWPContextExtensionArray & aArray The context extension array
TUint32 aUid

RegisterContextObserverL(MWPContextObserver *)

void RegisterContextObserverL ( MWPContextObserver * aObserver ) [pure virtual]

Register an observer to context information.

Parameters

MWPContextObserver * aObserver The new observer

SaveL(MWPContextExtension &, TInt)

void SaveL ( MWPContextExtension & aExtension,
TInt aItem
) [pure virtual]

Called after saving one setting.

Parameters

MWPContextExtension & aExtension Extension interface for the saving adapter
TInt aItem Setting number

SetCurrentContextL(TUint32)

void SetCurrentContextL ( TUint32 aUid ) [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 * aObserver The observer to unregister