MNssContextMgr Class Reference

class MNssContextMgr
MNssContextMgr is the public interface class for context management. It provides methods for context creation, saving context into the VAS database, retriving contexts from VAS database, and deletion of context from the VAS database. A context manager cannot be instantiated directly but needs to be got from the VAS DB manager. NssVASApi.lib
Since
2.8

Member Functions Documentation

CancelGetContext()

voidCancelGetContext()[pure virtual]
Cancel get context / get context list / get global contexts
Since
3.2

CreateContextL()

MNssContext *CreateContextL()[pure virtual]
Create a new empty context
Since
2.0

DeleteContext(MNssDeleteContextClient *, MNssContext *)

TInt DeleteContext(MNssDeleteContextClient *aContextClient,
MNssContext *aContext
)[pure virtual]
DeleteContext is called to remove a context from the VAS DB. This method is asynchronous. A call back will be made to either DeleteContextCompleted() or DeleteContextFailed() as defined in the MNssDeleteContextClient interface. It also returns an error code validating success of call to VAS DB.
Since
2.0

Parameters

MNssDeleteContextClient * aContextClient- call back address
MNssContext * aContext- context object to delete

GetContext(MNssGetContextClient *, const TDesC &)

TInt GetContext(MNssGetContextClient *aContextClient,
const TDesC &aName
)[pure virtual]
GetContext is called to retrieve a context from the VAS DB. This method is asynchronous. A call back will be made to either GetContextCompleted() or GetContextFailed() as defined in the MNssGetContextClient interface. It also returns an error code validating success of call to VAS DB.
Since
2.0

Parameters

MNssGetContextClient * aContextClient- call back address
const TDesC & aName- name of context to retreive

GetContextList(MNssGetContextClient *)

TInt GetContextList(MNssGetContextClient *aContextClient)[pure virtual]
GetContextList is called to retrieve a context list from the VAS DB. This method is asynchronous. A call back will be made to either GetContextListCompleted() or GetContextFailed() as defined in the MNssGetContextClient interface. It also returns an error code validating success of call to VAS DB.
Since
2.0

Parameters

MNssGetContextClient * aContextClient- call back address

SaveClientData(MNssContext *)

TInt SaveClientData(MNssContext *aContext)[pure virtual]
SaveClientData is called to save client-specific data about the context. This method is asynchronous. A call back will be made to either SaveContextCompleted or SaveContextFailed() as defined in the MNssSaveContextClient interface. It also returns an error code validating success of call to VAS DB.
Since
2.8

Parameters

MNssContext * aContext- the client data of this context will be updated.

SaveContext(MNssSaveContextClient *, MNssContext *)

TInt SaveContext(MNssSaveContextClient *aContextClient,
MNssContext *aContext
)[pure virtual]
SaveContext is called to store a context to the VAS DB. This method is asynchronous. A call back will be made to either SaveContextCompleted() or SaveContextFailed() as defined in the MNssSaveContextClient interface. It also returns an error code validating success of call to VAS DB.
Since
2.0

Parameters

MNssSaveContextClient * aContextClient- call back address
MNssContext * aContext- context object to save