class MPresenceCacheReader |
Interface for presence cache reader API. This interface is implemented by the XIMP Framework Presence Cache client. Clients must call REComSession::FinalClose() from their destructors. Notice that an xsp id is in the form ovi: mailto:xyz@example.com
Public Member Functions | |
---|---|
~MPresenceCacheReader () | |
TInt | AllBuddiesPresenceInService (const TDesC &, MPresCacheReadHandler *) |
TInt | BuddyCountInAllServices () |
TInt | BuddyCountInService (const TDesC &) |
TInt | CancelRead () |
MXIMPIdentity * | NewIdentityLC () |
MPresenceCacheReader * | NewL () |
MPresenceInfo * | PresenceInfoLC (const MXIMPIdentity &) |
TInt | ServicesCount () |
TInt | SetObserverForSubscribedNotifications ( MPresCacheReadHandler *) |
TInt | SubscribePresenceBuddyChangeL (const MXIMPIdentity &) |
void | UnSubscribePresenceBuddyChangeL (const MXIMPIdentity &) |
Protected Member Functions | |
---|---|
MPresenceCacheReader () |
Private Attributes | |
---|---|
TUid | iEcomDtorID |
MPresenceCacheReader | ( | ) | [protected, inline] |
Default constructor to zero initialize the iEcomDtorID member.
~MPresenceCacheReader | ( | ) | [inline, virtual] |
Public destructor. Objects can be deleted through this interface.
TInt | AllBuddiesPresenceInService | ( | const TDesC & | aServiceName, |
MPresCacheReadHandler * | aHandler | |||
) | [pure virtual] |
Reads all presence info from cache for a given service. Returns in MPresCacheReadHandler's HandlePresenceReadL.
const TDesC & aServiceName | Service name to search from |
MPresCacheReadHandler * aHandler | to handle async. callback |
TInt | BuddyCountInAllServices | ( | ) | [pure virtual] |
Returns total number of buddies stored in presence cache. It includes all services, probably useful while deciding performance overheads or informing to the user.
TInt | BuddyCountInService | ( | const TDesC & | aServiceName | ) | [pure virtual] |
Returns total number of buddies (presence infos) stored in a specific service in presence cache. It includes only the given service.
const TDesC & aServiceName | as in device's service table |
TInt | CancelRead | ( | ) | [pure virtual] |
Returns all service names present in presence cache.
Service names are returned here, ownership to caller. Cancels any async. read operation going on. After calling this method no callback will be received from asycn read method.
MXIMPIdentity * | NewIdentityLC | ( | ) | [pure virtual] |
Instantiates new identity object.
MPresenceCacheReader * | NewL | ( | ) | [static, inline] |
Factory method to instantiate MPresenceCacheReader through the ECom.
MPresenceInfo * | PresenceInfoLC | ( | const MXIMPIdentity & | aIdentity | ) | [pure virtual] |
Reads presence info from cache for a given identity, returns immediately.
const MXIMPIdentity & aIdentity | buddy id, identity must be in xsp id format |
TInt | ServicesCount | ( | ) | [pure virtual] |
Returns total number services in presence cache.
TInt | SetObserverForSubscribedNotifications | ( | MPresCacheReadHandler * | aHandler | ) | [pure virtual] |
Sets the observer to receive Presence Buddy Change notifications. Observer must be set before using SubscribePresenceBuddyChangeL. If client changes the observer using this method, all the notifications related to existing and new subscriptions will be delivered to the new observer.
MPresCacheReadHandler * aHandler |
TInt | SubscribePresenceBuddyChangeL | ( | const MXIMPIdentity & | aIdentity | ) | [pure virtual] |
Subscribe for given presence buddy's change in presence. An observer must be set before using this method by SetObserverForSubscribedNotifications. Notifcations are delivered through MPresCacheReadHandler's HandlePresenceNotificationL
const MXIMPIdentity & aIdentity | buddy id, identity must be in xsp id format |
void | UnSubscribePresenceBuddyChangeL | ( | const MXIMPIdentity & | aIdentity | ) | [pure virtual] |
Unsubscribe for given presence buddy's change in presence. The request is ignored if invalid.
const MXIMPIdentity & aIdentity | buddy id, identity must be in xsp id format |
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.