|
1 /* |
|
2 * Copyright (c) 2006 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: RLS and Presence XDM, This is Asynchronous handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __MRLSPRESXDMASYNCHANDLER_H__ |
|
21 #define __MRLSPRESXDMASYNCHANDLER_H__ |
|
22 |
|
23 // Class declaration |
|
24 /** |
|
25 * This is asynchronous handler class for CPresenceXDM's and CRLSXDM's async |
|
26 * functions. The client classes should drive from this class and must implement |
|
27 * it's functions to get async. requests handled. |
|
28 */ |
|
29 class MRLSPresXDMAsyncHandler |
|
30 { |
|
31 public: |
|
32 |
|
33 // Functions needed implementation for using CRLSXDM, and empty implementation |
|
34 // for using CPresenceXDM. |
|
35 /** |
|
36 * This method handles the async. call to function CRLSXDM::UpdateToServerL |
|
37 * and CRLSXDM::UpdateAllFromServerL. Clients should implement this method |
|
38 * to get callbacks |
|
39 * |
|
40 * @param aErrorCode, XDMengine error codes |
|
41 */ |
|
42 virtual void HandleRLSUpdateDocumentL(TInt aErrorCode) = 0; |
|
43 |
|
44 /** |
|
45 * This method is called when client cancels the update request to/from server |
|
46 * using to function CRLSXDM::CancelUpdateL. |
|
47 * Clients should implement this method to get a callback |
|
48 * |
|
49 * @param aErrorCode, XDMengine error codes |
|
50 */ |
|
51 virtual void HandleRLSUpdateCancelL(TInt aErrorCode) = 0; |
|
52 |
|
53 /** |
|
54 * This method handles the async. call to function CRLSXDM::DeleteAllEmptyListsL |
|
55 * Clients should implement this method to get a callback |
|
56 * |
|
57 * @param aErrorCode, XDMengine error codes |
|
58 */ |
|
59 virtual void HandleRLSDeleteAllEmptyListsL(TInt aErrorCode) = 0; |
|
60 |
|
61 // Functions needed implementation for using CPresenceXDM, and empty implementation |
|
62 // for using CRLSXDM. |
|
63 |
|
64 /** |
|
65 * This method handles the async. call to function CPresenceXDM::UpdateToServerL |
|
66 * and CPresenceXDM::UpdateAllFromServerL. Clients should implement this method |
|
67 * to get a callback. |
|
68 * |
|
69 * @param aErrorCode, XDMengine error codes |
|
70 */ |
|
71 virtual void HandlePresUpdateDocumentL(TInt aErrorCode) = 0; |
|
72 |
|
73 /** |
|
74 * This method is called when client cancels the update request to/from server |
|
75 * using to function CPresenceXDM::CancelUpdateL. |
|
76 * Clients should implement this method to get a callback |
|
77 * |
|
78 * @param aErrorCode, XDMengine error codes |
|
79 */ |
|
80 virtual void HandlePresUpdateCancelL(TInt aErrorCode) = 0; |
|
81 }; |
|
82 |
|
83 #endif //__MRLSPRESXDMASYNCHANDLER_H__ |