CPresenceDataCache Class Reference
class CPresenceDataCache : public CBase
|
PSC Presence Data Cache implementation.
Private Member Functions
|
|
CPresenceDataCache
(
MXIMPHost
&)
|
void
|
ActivatePresentityPresenceSubscriberL
(const CXIMPIdentityImp &,
CXIMPSubscriptionItemBase
*)
|
void
|
AddEventL
(
CXIMPApiEventBase
&,
MXIMPPscContext
*)
|
void
|
AddPresenceConfiguratorL
(const CXIMPIdentityImp &,
CXIMPConfigurationItemBase
*)
|
void
|
AddPresentityPresenceSubscriberL
(const CXIMPIdentityImp &,
CXIMPSubscriptionItemBase
*, CXIMPIdentityImp *)
|
Type &
|
ArrayItemLC
(
RPointerArray
< Type > &, const CXIMPIdentityImp &)
|
Type &
|
ArrayItemLC
(
RPointerArray
< Type > &,
RPointerArray
< ContentType > &, const CXIMPIdentityImp &)
|
void
|
ConstructL
()
|
const
MXIMPDataSubscriptionState
&
|
DataSubscriptionState
(Type *)
|
const
MXIMPDataSubscriptionState
&
|
DataSubscriptionState
(const
RPointerArray
< Type > &, const
MXIMPIdentity
&)
|
MPresenceCacheWriter
*
|
ExternalCache
()
|
TAny
*
|
GetInterface
(
TInt
)
|
Type &
|
ItemLC
(Type *&)
|
TInt32
|
ProtocolUID
()
|
void
|
RegisterExpiringItemL
(
CXIMPSubscriptionItemBase
*)
|
void
|
RemoveMe
(
COwnPresenceSubscriptionItem
*)
|
void
|
RemoveMe
(
CGroupListSubscriptionItem
*)
|
void
|
RemoveMe
(
CGroupContentSubscriptionItem
*)
|
void
|
RemoveMe
(
CPresentityPresenceSubscriptionItem
*)
|
void
|
RemoveMe
(
CWatcherListSubscriptionItem
*)
|
void
|
RemoveMe
(
CPresentityGroupMembersPresenceSubscriptionItem
*)
|
void
|
RemoveMe
(
CGrantRequestListSubscriptionItem
*)
|
void
|
RemoveMe
(
CBlockListSubscriptionItem
*)
|
void
|
RemoveMe
(
CPresenceConfigurationItem
*)
|
void
|
RemoveMe
(
CPresenceToEveryoneConfigurationItem
*)
|
void
|
RemoveMe
(
CGroupMembersPresenceConfigurationItem
*)
|
IMPORT_C void
|
RemoveMe
(Type *&, Type *)
|
void
|
RemoveMeFromArray
(
RPointerArray
< Type > &, Type *)
|
void
|
RemovePresenceConfigurator
(const CXIMPIdentityImp &,
CXIMPConfigurationItemBase
*)
|
void
|
RemovePresentityPresenceSubscriber
(const CXIMPIdentityImp &,
CXIMPSubscriptionItemBase
*)
|
void
|
SynthesisePresentityPresenceSubscriptionEventToL
(const CXIMPIdentityImp &,
MXIMPPscContext
*,
TBool
)
|
void
|
UnregisterExpiringItem
(
CXIMPSubscriptionItemBase
*)
|
Constructor & Destructor Documentation
CPresenceDataCache(MXIMPHost &)
CPresenceDataCache
|
(
|
MXIMPHost
&
|
aHost
|
)
|
[private]
|
~CPresenceDataCache()
~CPresenceDataCache
|
(
|
)
|
[virtual]
|
Member Functions Documentation
ActivatePresentityPresenceSubscriberL(const CXIMPIdentityImp &, CXIMPSubscriptionItemBase *)
void
|
ActivatePresentityPresenceSubscriberL
|
(
|
const CXIMPIdentityImp &
|
aIdentity,
|
|
CXIMPSubscriptionItemBase
*
|
aItem
|
|
)
|
[private]
|
AddEventL(CXIMPApiEventBase &, MXIMPPscContext *)
AddPresenceConfiguratorL(const CXIMPIdentityImp &, CXIMPConfigurationItemBase *)
AddPresentityPresenceSubscriberL(const CXIMPIdentityImp &, CXIMPSubscriptionItemBase *, CXIMPIdentityImp *)
void
|
AddPresentityPresenceSubscriberL
|
(
|
const CXIMPIdentityImp &
|
aIdentity,
|
|
CXIMPSubscriptionItemBase
*
|
aItem,
|
|
CXIMPIdentityImp *
|
aGroup = NULL
|
|
)
|
[private]
|
ArrayItemLC(RPointerArray< Type > &, const CXIMPIdentityImp &)
Type &
|
ArrayItemLC
|
(
|
RPointerArray
< Type > &
|
aItemArray,
|
|
const CXIMPIdentityImp &
|
aIdentity
|
|
)
|
[private]
|
Templated item instance creation. If item is not found it is created.
Parameters
RPointerArray
< Type > & aItemArray
|
Array of items where new item should be created.
|
const CXIMPIdentityImp & aIdentity
|
|
ArrayItemLC(RPointerArray< Type > &, RPointerArray< ContentType > &, const CXIMPIdentityImp &)
Type &
|
ArrayItemLC
|
(
|
RPointerArray
< Type > &
|
aItemArray,
|
|
RPointerArray
< ContentType > &
|
aContentArray,
|
|
const CXIMPIdentityImp &
|
aIdentity
|
|
)
|
[private]
|
Templated item instance creation. If item is not found it is created.
Parameters
RPointerArray
< Type > & aItemArray
|
Array of items where new item should be created.
|
RPointerArray
< ContentType > & aContentArray
|
|
const CXIMPIdentityImp & aIdentity
|
|
BlockListSubscriptionItemLC()
CleanExpired()
IMPORT_C void
|
CleanExpired
|
(
|
)
|
|
CleanResources(MXIMPPscContext &)
Clean resources concerning context.
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
DataSubscriptionState(Type *)
Get data subscription state for item.
Parameters
Type * aItem
|
Item which data subscription state should be found.
|
DataSubscriptionState(const RPointerArray< Type > &, const MXIMPIdentity &)
Get data subscription state for item.
Parameters
const
RPointerArray
< Type > & aItemArray
|
Item array where item should be found. Key for finding right item.
|
const
MXIMPIdentity
& aIdentity
|
|
GetInterface(TInt)
TAny
*
|
GetInterface
|
(
|
TInt
|
aInterfaceId
|
)
|
[private]
|
GrantRequestListSubscriptionItemLC()
GroupContentSubscriptionItemExists(const CXIMPIdentityImp &)
IMPORT_C
TBool
|
GroupContentSubscriptionItemExists
|
(
|
const CXIMPIdentityImp &
|
aGroupId
|
)
|
|
Checks if group content subscription item with given group id is found.
Parameters
const CXIMPIdentityImp & aGroupId
|
|
GroupContentSubscriptionItemLC(const CXIMPIdentityImp &)
Parameters
const CXIMPIdentityImp & aGroupId
|
|
GroupListSubscriptionItemLC()
GroupMembersPresenceConfigurationItemLC(const CXIMPIdentityImp &)
Parameters
const CXIMPIdentityImp & aGroupId
|
|
ItemLC(Type *&)
Type &
|
ItemLC
|
(
|
Type *&
|
aItem
|
)
|
[private]
|
Templated item instance creation. If item is not found it is created.
Parameters
Type *& aItem
|
Reference to pointer where new item should be saved.
|
OwnPresenceDataSubscriptionState()
OwnPresenceSubscriptionItemLC()
-
If OwnPresenceSubscriptionItem is not found, data cache initializes new one and returns ownership to caller
-
If OwnPresenceSubscriptionItem is found, data cache increases refcount by one, and returns the old object
PackGroupIdLC(const MXIMPIdentity &)
Helper method to pack group id.
PresenceBlockDataSubscriptionState()
PresenceConfigurationItemLC(const CXIMPIdentityImp &)
Parameters
const CXIMPIdentityImp & aIdentity
|
|
PresenceGrantRequestDataSubscriptionState()
PresenceToEveryoneConfigurationItemLC()
PresenceWatcherListDataSubscriptionState()
PresentityGroupContentDataSubscriptionState(const MXIMPIdentity &)
PresentityGroupListDataSubscriptionState()
PresentityGroupMembersPresenceSubscriptionItemLC(const CXIMPIdentityImp &)
Parameters
const CXIMPIdentityImp & aIdentity
|
|
PresentityPresenceDataSubscriptionState(const MXIMPIdentity &)
PresentityPresenceSubscriptionItemLC(const CXIMPIdentityImp &)
Parameters
const CXIMPIdentityImp & aIdentity
|
|
ProtocolUID()
TInt32
|
ProtocolUID
|
(
|
)
|
[private]
|
RegisterExpiringItemL(CXIMPSubscriptionItemBase *)
RemoveMe(COwnPresenceSubscriptionItem *)
RemoveMe(CGroupListSubscriptionItem *)
RemoveMe(CGroupContentSubscriptionItem *)
RemoveMe(CPresentityPresenceSubscriptionItem *)
RemoveMe(CWatcherListSubscriptionItem *)
RemoveMe(CPresentityGroupMembersPresenceSubscriptionItem *)
RemoveMe(CGrantRequestListSubscriptionItem *)
RemoveMe(CBlockListSubscriptionItem *)
RemoveMe(CPresenceConfigurationItem *)
RemoveMe(CPresenceToEveryoneConfigurationItem *)
RemoveMe(CGroupMembersPresenceConfigurationItem *)
RemoveMe(Type *&, Type *)
IMPORT_C void
|
RemoveMe
|
(
|
Type *&
|
aItem,
|
|
Type *
|
aChild
|
|
)
|
[private, static]
|
Template method for removeMe when one subscription item is target.
Parameters
Type *& aItem
|
Reference to subscription item pointer to remove.
|
Type * aChild
|
|
RemoveMeFromArray(RPointerArray< Type > &, Type *)
void
|
RemoveMeFromArray
|
(
|
RPointerArray
< Type > &
|
aItemArray,
|
|
Type *
|
aChild
|
|
)
|
[private]
|
Template method for removeme if target subscription item is in array.
Parameters
RPointerArray
< Type > & aItemArray
|
Array of subscription items where aChild should exists.
|
Type * aChild
|
|
RemovePresenceConfigurator(const CXIMPIdentityImp &, CXIMPConfigurationItemBase *)
RemovePresentityPresenceSubscriber(const CXIMPIdentityImp &, CXIMPSubscriptionItemBase *)
SynthesisePresentityPresenceSubscriptionEventToL(const CXIMPIdentityImp &, MXIMPPscContext *, TBool)
void
|
SynthesisePresentityPresenceSubscriptionEventToL
|
(
|
const CXIMPIdentityImp &
|
aIdentity,
|
|
MXIMPPscContext
*
|
aContext,
|
|
TBool
|
aForceEvent
|
|
)
|
[private]
|
UnregisterExpiringItem(CXIMPSubscriptionItemBase *)
WatcherListSubscriptionItemLC()
Member Data Documentation
CBlockListSubscriptionItem * iBlockListSubscriptionItem
CXIMPDataSubscriptionStateImp * iEmptySubscriptionState
Empty subscription state to pass adaptation exists request is subscription item does not exists.
RPointerArray< CXIMPSubscriptionItemBase > iExpiringSubscriptionItems
MPresenceCacheWriter * iExtPresenceCache
CGrantRequestListSubscriptionItem * iGrantRequestListSubscriptionItem
RPointerArray< CGroupContentSubscriptionItem > iGroupContentSubscriptionItems
CGroupListSubscriptionItem * iGroupListSubscriptionItem
RPointerArray< CGroupMembersPresenceConfigurationItem > iGroupMembersPresenceConfigurationItems
RPointerArray< CPresentityGroupMembersPresenceSubscriptionItem > iGroupMembersPresenceSubscriptionItems
COwnPresenceSubscriptionItem * iOwnSubscriptionItem
Does not own. Removed when RemoveMe called.
RPointerArray< CPresenceConfigurationItem > iPresenceConfigurationItems
CPresenceToEveryoneConfigurationItem * iPresenceToEveryoneConfigurationItem
RPointerArray< CPresentityPresenceSubscriptionItem > iPresentityPresenceSubscriptionItems
CWatcherListSubscriptionItem * iWatcherListSubscriptionItem
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.