CXIMPPscContext Class Reference

class CXIMPPscContext : public CObject

Client data for context.

Since
S60 v4.0

Inherits from

Public Member Functions
~CXIMPPscContext()
IMPORT_C TXIMPRequestIdAddNewOperationL(TInt, const TDesC8 &)
IMPORT_C voidAppendToOpQueueL(CXIMPOperationBase *)
IMPORT_C TXIMPRequestIdAppendToOpQueueUpdateReqIdL(CXIMPOperationBase *)
IMPORT_C CXIMPContextClientInfoImp *ClientInfo()
IMPORT_C voidDestroyCachedUnbind()
IMPORT_C CXIMPContextEventQueue &EventQueue()
IMPORT_C CXIMPFeatureInfoImp *FeaturesForSessionLC()
IMPORT_C CXIMPOperationBase *GetCachedUnbind()
IMPORT_C TBoolIsHostAssigned()
IMPORT_C CXIMPPscContext *NewL(TUint32)
IMPORT_C TIntOrderOfContexts(const CXIMPPscContext &, const CXIMPPscContext &)
CPresenceInfoFilterImp *PresenceInfoFilter(TFilterStoreType, const CXIMPIdentityImp *)
IMPORT_C CXIMPServiceInfoImp *ServiceInfo()
IMPORT_C TUint32SessionId()
IMPORT_C voidSetClientInfo(CXIMPContextClientInfoImp *)
IMPORT_C voidSetPresenceInfoFilterL(TFilterStoreType, CPresenceInfoFilterImp *, const CXIMPIdentityImp *)
IMPORT_C voidSetServiceInfo(CXIMPServiceInfoImp *)
Private Member Functions
CXIMPPscContext(TUint32)
voidConstructL()
voidResolveHostL()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CObject::AccessCount()const
CObject::CObject()
CObject::Close()
CObject::Dec()
CObject::Extension_(TUint,TAny *&,TAny *)
CObject::FullName()const
CObject::Inc()
CObject::Name()const
CObject::Open()
CObject::Owner()const
CObject::SetName(const TDesC *)
CObject::SetNameL(const TDesC *)
CObject::SetOwner(CObject *)
CObject::UniqueID()const
CObject::~CObject()
Private Attributes
CXIMPOperationBase *iCachedUnbind
CXIMPContextClientInfoImp *iClientInfo
CXIMPContextEventQueue *iEventQueue
CPresenceInfoFilterImp *iGrantEveryonePif
CPresenceFilterStore *iGrantFilterStore
CPresenceFilterStore *iGrantGroupFilterStore
CXIMPHost *iHost
TInt iOperationIndex
CPresenceInfoFilterImp *iOwnPif
CPresenceFilterStore *iPresentityFilterStore
CPresenceFilterStore *iPresentityGroupFilterStore
TXIMPRequestIdBuilder iReqIdBuilder
CXIMPServiceInfoImp *iServiceInfo
const TUint32iSessionId

Constructor & Destructor Documentation

CXIMPPscContext(TUint32)

CXIMPPscContext(TUint32aSessionId)[private]

Construction

Parameters

TUint32 aSessionId

~CXIMPPscContext()

~CXIMPPscContext()[virtual]

Destruction

Member Functions Documentation

AddNewOperationL(TInt, const TDesC8 &)

IMPORT_C TXIMPRequestIdAddNewOperationL(TIntaOperation,
const TDesC8 &aReqParams
)

Add new operation to be processed to the proper host.

Parameters

TInt aOperationEnumeration describing the operation
const TDesC8 & aReqParamsParameters for the operation

AppendToOpQueueL(CXIMPOperationBase *)

IMPORT_C voidAppendToOpQueueL(CXIMPOperationBase *aOperation)

Parameters

CXIMPOperationBase * aOperation

AppendToOpQueueUpdateReqIdL(CXIMPOperationBase *)

IMPORT_C TXIMPRequestIdAppendToOpQueueUpdateReqIdL(CXIMPOperationBase *aOperation)

Append given operation to the end of the proper operation queue. The queue resides in the host associated with the given context.

Parameters

CXIMPOperationBase * aOperationThe operation to append

ClientInfo()

IMPORT_C CXIMPContextClientInfoImp *ClientInfo()const

Client info of context

ConstructL()

voidConstructL()[private]

Construction

DestroyCachedUnbind()

IMPORT_C voidDestroyCachedUnbind()

When bind operation fails, the cached unbind must be destroyed.

EventQueue()

IMPORT_C CXIMPContextEventQueue &EventQueue()const

Access to eventqueue of context. return Reference to eventqueue.

FeaturesForSessionLC()

IMPORT_C CXIMPFeatureInfoImp *FeaturesForSessionLC()

Find cached features for this session

GetCachedUnbind()

IMPORT_C CXIMPOperationBase *GetCachedUnbind()

Ownership is transferred

IsHostAssigned()

IMPORT_C TBoolIsHostAssigned()const

Check if host is assigned.

NewL(TUint32)

IMPORT_C CXIMPPscContext *NewL(TUint32aSessionId)[static]

Construction

Parameters

TUint32 aSessionId

OrderOfContexts(const CXIMPPscContext &, const CXIMPPscContext &)

IMPORT_C TIntOrderOfContexts(const CXIMPPscContext &aFirst,
const CXIMPPscContext &aSecond
)[static]

TLinearOrder method.

Parameters

const CXIMPPscContext & aFirst
const CXIMPPscContext & aSecond

PresenceInfoFilter(TFilterStoreType, const CXIMPIdentityImp *)

CPresenceInfoFilterImp *PresenceInfoFilter(TFilterStoreTypeaTypeOfFilter,
const CXIMPIdentityImp *aIdentity = NULL
)const

Access to current presence interest.

Parameters

TFilterStoreType aTypeOfFilter
const CXIMPIdentityImp * aIdentity = NULLIdentity to map filter. Default NULL

ResolveHostL()

voidResolveHostL()[private]

Resolve host for operation

ServiceInfo()

IMPORT_C CXIMPServiceInfoImp *ServiceInfo()const

Service info of context.

SessionId()

IMPORT_C TUint32SessionId()const

Session id of context.

SetClientInfo(CXIMPContextClientInfoImp *)

IMPORT_C voidSetClientInfo(CXIMPContextClientInfoImp *aClientInfo)

Set service info

Parameters

CXIMPContextClientInfoImp * aClientInfo

SetPresenceInfoFilterL(TFilterStoreType, CPresenceInfoFilterImp *, const CXIMPIdentityImp *)

IMPORT_C voidSetPresenceInfoFilterL(TFilterStoreTypeaTypeOfFilter,
CPresenceInfoFilterImp *aPif,
const CXIMPIdentityImp *aIdentity = NULL
)

Set new presence interest filter

Parameters

TFilterStoreType aTypeOfFilterType of filter to access.
CPresenceInfoFilterImp * aPifNew presence info filter to set.
const CXIMPIdentityImp * aIdentity = NULLIdentity to map filter. Default NULL

SetServiceInfo(CXIMPServiceInfoImp *)

IMPORT_C voidSetServiceInfo(CXIMPServiceInfoImp *aServiceInfo)

Set service info

Parameters

CXIMPServiceInfoImp * aServiceInfo

Member Data Documentation

CXIMPOperationBase * iCachedUnbind

CXIMPOperationBase *iCachedUnbind[private]

Unbind operation for need cases.

CXIMPContextClientInfoImp * iClientInfo

CXIMPContextClientInfoImp *iClientInfo[private]

Client information structure

CXIMPContextEventQueue * iEventQueue

CXIMPContextEventQueue *iEventQueue[private]

Event queue for context-

CPresenceInfoFilterImp * iGrantEveryonePif

CPresenceInfoFilterImp *iGrantEveryonePif[private]

Current grant everyone pif.

CPresenceFilterStore * iGrantFilterStore

CPresenceFilterStore *iGrantFilterStore[private]

Owned. Identity to filter mapping for this context.

CPresenceFilterStore * iGrantGroupFilterStore

CPresenceFilterStore *iGrantGroupFilterStore[private]

Owned. Identity to filter mapping for this context.

CXIMPHost * iHost

CXIMPHost *iHost[private]

The host associated with this context. Owned via reference counting. Host has to be reference counted, since multiple contexts can own a reference to one host.

TInt iOperationIndex

TInt iOperationIndex[private]

Counter for the operations, used to build the request id.

CPresenceInfoFilterImp * iOwnPif

CPresenceInfoFilterImp *iOwnPif[private]

Current presence interest.

CPresenceFilterStore * iPresentityFilterStore

CPresenceFilterStore *iPresentityFilterStore[private]

Owned. Identity to filter mapping for this context.

CPresenceFilterStore * iPresentityGroupFilterStore

CPresenceFilterStore *iPresentityGroupFilterStore[private]

Owned. Identity to filter mapping for this context.

TXIMPRequestIdBuilder iReqIdBuilder

TXIMPRequestIdBuilder iReqIdBuilder[private]

TXIMPRequestId builder

CXIMPServiceInfoImp * iServiceInfo

CXIMPServiceInfoImp *iServiceInfo[private]

Service information structure. Owns.

const TUint32 iSessionId

const TUint32iSessionId[private]

Identifier for this session.