|
1 /* |
|
2 * Copyright (c) 2007, 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Interface for presence cache reader handler. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MPRESCACHEREADHANDLER_H |
|
19 #define MPRESCACHEREADHANDLER_H |
|
20 |
|
21 /** |
|
22 * Interface for presence cache reader API handler for asynchronous functions used in API. |
|
23 * This interface is implemented by the clients as per their needs. |
|
24 * |
|
25 * @ingroup ximpprescacheapi |
|
26 * @since S60 v3.2 |
|
27 */ |
|
28 |
|
29 class MPresenceBuddyInfoList; |
|
30 class MPresenceBuddyInfo; |
|
31 |
|
32 class MPresCacheReadHandler |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Handler for AllBuddiesPresenceInService method of MPresenceCacheReader. |
|
37 * |
|
38 * @param aErrorCode |
|
39 * @param aPresenceBuddyInfoList presence infos for all buddies requested. |
|
40 * Ownership to callee. Can be null if not found. |
|
41 */ |
|
42 virtual void HandlePresenceReadL(TInt aErrorCode, |
|
43 MPresenceBuddyInfoList* aPresenceBuddyInfoList) = 0; |
|
44 |
|
45 /** |
|
46 * Handler for Buddy presence change notifications. |
|
47 * |
|
48 * @param aErrorCode |
|
49 * @param aPresenceBuddyInfo presence info for buddy. |
|
50 * Ownership to callee. Can be NULL if aErrorCode exist. |
|
51 */ |
|
52 virtual void HandlePresenceNotificationL(TInt aErrorCode, |
|
53 MPresenceBuddyInfo* aPresenceBuddyInfo) = 0; |
|
54 }; |
|
55 |
|
56 #endif // MPRESCACHEREADHANDLER_H |
|
57 |
|
58 |
|
59 |