MNssContext Class Reference

class MNssContext
MNssContext is a pure interface for context processing. MNssContext provides methods for setting & getting context name and setting & getting context global flag. A context can only be created using the context manager. The context manager returns an empty context, and the client had to populate its name and global flag using the methods below. A context can be destroyed using delete on the context pointer. NssVASApi.lib
Since
2.0

Constructor & Destructor Documentation

~MNssContext()

~MNssContext ( ) [inline, virtual]
virutal destructor to ensure proper cleanup
Since
2.0

Member Functions Documentation

ClientData()

const TDesC8 & ClientData ( ) [pure virtual]
Gets the client data.
Since
2.8

ContextName()

TDesC & ContextName ( ) [pure virtual]
Get the name of the context
Since
2.0

IsGlobal()

TBool IsGlobal ( ) [pure virtual]
Is the context global
Since
2.0

SetClientData(const TDesC8 &)

void SetClientData ( const TDesC8 & aData ) [pure virtual]
Sets/Resets the client data. The data must be saved with MNssContextMgr::SaveClientData after this call.
Since
2.8

Parameters

const TDesC8 & aData At most 100 bytes of serialized client data.

SetGlobal(TBool)

void SetGlobal ( TBool aGlobal ) [pure virtual]
Sets/Resets the global flag for the context
Since
2.0

Parameters

TBool aGlobal ETrue to set the context as global, EFalse as not global

SetNameL(const TDesC &)

void SetNameL ( const TDesC & aName ) [pure virtual]
Sets the name of the context
Since
2.0

Parameters

const TDesC & aName name of the context as a descriptor