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
Public Member Functions
~MNssContext()
const TDesC8 &ClientData()
TDesC &ContextName()
TBool IsGlobal()
voidSetClientData(const TDesC8 &)
voidSetGlobal(TBool)
voidSetNameL(const TDesC &)

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 &)

voidSetClientData(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 & aDataAt most 100 bytes of serialized client data.

SetGlobal(TBool)

voidSetGlobal(TBoolaGlobal)[pure virtual]
Sets/Resets the global flag for the context
Since
2.0

Parameters

TBool aGlobalETrue to set the context as global, EFalse as not global

SetNameL(const TDesC &)

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

Parameters

const TDesC & aNamename of the context as a descriptor