| class MPresenceCacheWriter |
Interface for presence cache writer 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 | |
|---|---|
| ~MPresenceCacheWriter () | |
| TInt | CancelWrite () |
| TInt | DeletePresenceL (const MXIMPIdentity &) |
| TInt | DeleteService (const TDesC &) |
| MPresenceBuddyInfo * | NewBuddyPresenceInfoLC () |
| MXIMPIdentity * | NewIdentityLC () |
| MPresenceCacheWriter * | NewL () |
| MPresenceBuddyInfoList * | NewPresenceBuddyInfoListLC (const TDesC &) |
| MPresenceInfo * | NewPresenceInfoLC () |
| MPresenceObjectFactory & | PresenceObjectFactory () |
| TInt | WritePresenceL (const MPresenceBuddyInfo *) |
| TInt | WritePresenceL (const MPresenceBuddyInfoList *, MPresCacheWriteHandler *) |
| Protected Member Functions | |
|---|---|
| MPresenceCacheWriter () | |
| Private Attributes | |
|---|---|
| TUid | iEcomDtorID |
| MPresenceCacheWriter | ( | ) | [protected, inline] |
Default constructor to zero initialize the iEcomDtorID member.
| ~MPresenceCacheWriter | ( | ) | [inline, virtual] |
Public destructor. Objects can be deleted through this interface.
| TInt | CancelWrite | ( | ) | [pure virtual] |
Cancels any async. write operation going on. After calling this method no callback will be received from asycn write method.
| TInt | DeletePresenceL | ( | const MXIMPIdentity & | aIdentity | ) | [pure virtual] |
Deletes all presence related to given xsp identity. Leaves only in system errors.
| const MXIMPIdentity & aIdentity |
| TInt | DeleteService | ( | const TDesC & | aServiceName | ) | [pure virtual] |
Delete all buddies presence associated with given service.
| const TDesC & aServiceName | service name as in sp table |
| MPresenceBuddyInfo * | NewBuddyPresenceInfoLC | ( | ) | [pure virtual] |
Instantiates new buddy presence info object.
| MXIMPIdentity * | NewIdentityLC | ( | ) | [pure virtual] |
Instantiates new identity object.
| MPresenceCacheWriter * | NewL | ( | ) | [static, inline] |
Factory method to instantiate MPresenceCacheWriter through the ECom.
| MPresenceBuddyInfoList * | NewPresenceBuddyInfoListLC | ( | const TDesC & | aServiceName | ) | [pure virtual] |
Instantiates new buddy presence info list object.
| const TDesC & aServiceName | service name for this list, if set to KNullDesC the list can be appended with identities from different services |
| MPresenceInfo * | NewPresenceInfoLC | ( | ) | [pure virtual] |
Instantiates new presence info object.
| MPresenceObjectFactory & | PresenceObjectFactory | ( | ) | const [pure virtual] |
Instantiates new Presence object Factory object. With this factory presence related ximp structures can be created.
| TInt | WritePresenceL | ( | const MPresenceBuddyInfo * | aPresenceBuddyInfo | ) | [pure virtual] |
Writes presence info to cache for a given buddy. Leaves only in system errors.
| const MPresenceBuddyInfo * aPresenceBuddyInfo | contains xsp identity and presence |
| TInt | WritePresenceL | ( | const MPresenceBuddyInfoList * | aBuddyPresenceInfos, |
| MPresCacheWriteHandler * | aHandler | |||
| ) | [pure virtual] | |||
Writes buddy presence info objects to cache. Returns in MPresCacheWriteHandler's HandlePresenceWriteL. Provide a null pointer to receive no call back. Leaves only in system errors.
| const MPresenceBuddyInfoList * aBuddyPresenceInfos | presence infos for all buddies. Ownership remains to caller. |
| MPresCacheWriteHandler * aHandler |
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.