CXIMPPscContext Class Reference

class CXIMPPscContext : public CObject

Client data for context.

Since
S60 v4.0

Inherits from

Public Member Functions
~CXIMPPscContext ()
IMPORT_C TXIMPRequestId AddNewOperationL ( TInt , const TDesC8 &)
IMPORT_C void AppendToOpQueueL ( CXIMPOperationBase *)
IMPORT_C TXIMPRequestId AppendToOpQueueUpdateReqIdL ( CXIMPOperationBase *)
IMPORT_C CXIMPContextClientInfoImp * ClientInfo ()
IMPORT_C void DestroyCachedUnbind ()
IMPORT_C CXIMPContextEventQueue & EventQueue ()
IMPORT_C CXIMPFeatureInfoImp * FeaturesForSessionLC ()
IMPORT_C CXIMPOperationBase * GetCachedUnbind ()
IMPORT_C TBool IsHostAssigned ()
IMPORT_C CXIMPPscContext * NewL ( TUint32 )
IMPORT_C TInt OrderOfContexts (const CXIMPPscContext &, const CXIMPPscContext &)
CPresenceInfoFilterImp * PresenceInfoFilter (TFilterStoreType, const CXIMPIdentityImp *)
IMPORT_C CXIMPServiceInfoImp * ServiceInfo ()
IMPORT_C TUint32 SessionId ()
IMPORT_C void SetClientInfo (CXIMPContextClientInfoImp *)
IMPORT_C void SetPresenceInfoFilterL (TFilterStoreType, CPresenceInfoFilterImp *, const CXIMPIdentityImp *)
IMPORT_C void SetServiceInfo (CXIMPServiceInfoImp *)
Private Member Functions
CXIMPPscContext ( TUint32 )
void ConstructL ()
void ResolveHostL ()
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 TUint32 iSessionId

Constructor & Destructor Documentation

CXIMPPscContext(TUint32)

CXIMPPscContext ( TUint32 aSessionId ) [private]

Construction

Parameters

TUint32 aSessionId

~CXIMPPscContext()

~CXIMPPscContext ( ) [virtual]

Destruction

Member Functions Documentation

AddNewOperationL(TInt, const TDesC8 &)

IMPORT_C TXIMPRequestId AddNewOperationL ( TInt aOperation,
const TDesC8 & aReqParams
)

Add new operation to be processed to the proper host.

Parameters

TInt aOperation Enumeration describing the operation
const TDesC8 & aReqParams Parameters for the operation

AppendToOpQueueL(CXIMPOperationBase *)

IMPORT_C void AppendToOpQueueL ( CXIMPOperationBase * aOperation )

Parameters

CXIMPOperationBase * aOperation

AppendToOpQueueUpdateReqIdL(CXIMPOperationBase *)

IMPORT_C TXIMPRequestId AppendToOpQueueUpdateReqIdL ( 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 * aOperation The operation to append

ClientInfo()

IMPORT_C CXIMPContextClientInfoImp * ClientInfo ( ) const

Client info of context

ConstructL()

void ConstructL ( ) [private]

Construction

DestroyCachedUnbind()

IMPORT_C void DestroyCachedUnbind ( )

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 TBool IsHostAssigned ( ) const

Check if host is assigned.

NewL(TUint32)

IMPORT_C CXIMPPscContext * NewL ( TUint32 aSessionId ) [static]

Construction

Parameters

TUint32 aSessionId

OrderOfContexts(const CXIMPPscContext &, const CXIMPPscContext &)

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

Parameters

const CXIMPPscContext & aFirst
const CXIMPPscContext & aSecond

PresenceInfoFilter(TFilterStoreType, const CXIMPIdentityImp *)

CPresenceInfoFilterImp * PresenceInfoFilter ( TFilterStoreType aTypeOfFilter,
const CXIMPIdentityImp * aIdentity = NULL
) const

Access to current presence interest.

Parameters

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

ResolveHostL()

void ResolveHostL ( ) [private]

Resolve host for operation

ServiceInfo()

IMPORT_C CXIMPServiceInfoImp * ServiceInfo ( ) const

Service info of context.

SessionId()

IMPORT_C TUint32 SessionId ( ) const

Session id of context.

SetClientInfo(CXIMPContextClientInfoImp *)

IMPORT_C void SetClientInfo ( CXIMPContextClientInfoImp * aClientInfo )

Set service info

Parameters

CXIMPContextClientInfoImp * aClientInfo

SetPresenceInfoFilterL(TFilterStoreType, CPresenceInfoFilterImp *, const CXIMPIdentityImp *)

IMPORT_C void SetPresenceInfoFilterL ( TFilterStoreType aTypeOfFilter,
CPresenceInfoFilterImp * aPif,
const CXIMPIdentityImp * aIdentity = NULL
)

Set new presence interest filter

Parameters

TFilterStoreType aTypeOfFilter Type of filter to access.
CPresenceInfoFilterImp * aPif New presence info filter to set.
const CXIMPIdentityImp * aIdentity = NULL Identity to map filter. Default NULL

SetServiceInfo(CXIMPServiceInfoImp *)

IMPORT_C void SetServiceInfo ( 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]

CXIMPServiceInfoImp * iServiceInfo

CXIMPServiceInfoImp * iServiceInfo [private]

Service information structure. Owns.

const TUint32 iSessionId

const TUint32 iSessionId [private]

Identifier for this session.