|
1 /* |
|
2 * Copyright (c) 2007 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 the License "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: Defination of class CCalendarInterface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CALENDARCALLBACK_H |
|
20 #define __CALENDARCALLBACK_H |
|
21 |
|
22 #include <LiwCommon.h> |
|
23 #include <LiwServiceIfBase.h> |
|
24 #include <LiwBufferExtension.h> |
|
25 |
|
26 #include <calchangecallback.h> |
|
27 |
|
28 #include "calendarheader.h" |
|
29 /** |
|
30 * Implemenation of abstract MCalCallbackBase interface for Buffer output |
|
31 * Used in Async Export operation |
|
32 * |
|
33 * @see MCalCallbackBase |
|
34 * |
|
35 */ |
|
36 class CCalCallbackBaseBuffer: public CBase, public MCalCallbackBase //USED IN CASE OF EXPORT ASYNC |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Two-phase Constructor |
|
42 * @return CMsgCallbackBase* |
|
43 */ |
|
44 static CCalCallbackBaseBuffer* NewL( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
45 |
|
46 /** |
|
47 * Gives the result of asynchronous SAPI |
|
48 * @param aErrCode errcode |
|
49 * @param aResult Result |
|
50 * @return void |
|
51 */ |
|
52 void NotifyResultL(TInt aErrCode, TAny* aResult); |
|
53 |
|
54 private: |
|
55 |
|
56 /** |
|
57 * Constructor |
|
58 */ |
|
59 CCalCallbackBaseBuffer( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
60 |
|
61 }; |
|
62 |
|
63 /** |
|
64 * Implemenation of abstract MCalCallbackBase interface for TUIDSet output |
|
65 * Used in Async Import operation |
|
66 * |
|
67 * @see MCalCallbackBase |
|
68 * |
|
69 */ |
|
70 class CCalCallbackBaseUIDSet: public CBase, public MCalCallbackBase |
|
71 { |
|
72 public: |
|
73 |
|
74 /** |
|
75 * Two-phase Constructor |
|
76 * @return CMsgCallbackBase* |
|
77 */ |
|
78 static CCalCallbackBaseUIDSet* NewL( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
79 |
|
80 /** |
|
81 * Gives the result of asynchronous SAPI |
|
82 * @param aErrCode errcode |
|
83 * @param aResult Result |
|
84 * @return void |
|
85 */ |
|
86 void NotifyResultL(TInt aErrCode, TAny* aResult); |
|
87 |
|
88 private: |
|
89 |
|
90 /** |
|
91 * Constructor |
|
92 */ |
|
93 CCalCallbackBaseUIDSet( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
94 }; |
|
95 |
|
96 /** |
|
97 * Implemenation of abstract MCalCallbackBase interface for Error code as output |
|
98 * Used in Async Delete operation |
|
99 * |
|
100 * @see MCalCallbackBase |
|
101 * |
|
102 */ |
|
103 class CCalCallbackInt: public CBase, public MCalCallbackBase |
|
104 { |
|
105 public: |
|
106 |
|
107 /** |
|
108 * Two-phase Constructor |
|
109 * @return CMsgCallbackBase* |
|
110 */ |
|
111 static CCalCallbackInt* NewL( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
112 |
|
113 /** |
|
114 * Gives the result of asynchronous SAPI |
|
115 * @param aErrCode errcode |
|
116 * @param aResult Result |
|
117 * @return void |
|
118 */ |
|
119 void NotifyResultL(TInt aErrCode, TAny* aResult); |
|
120 |
|
121 private: |
|
122 |
|
123 /** |
|
124 * Constructor |
|
125 */ |
|
126 CCalCallbackInt( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
127 }; |
|
128 |
|
129 /** |
|
130 * Implemenation of abstract MCalCallbackBase interface for Change Notifications |
|
131 * |
|
132 * @see MCalCallbackBase |
|
133 * |
|
134 */ |
|
135 class CCalCallbackChangeNotify : public CBase, public MCalCallbackBase |
|
136 { |
|
137 public: |
|
138 |
|
139 /** |
|
140 * Two-phase Constructor |
|
141 * @return CMsgCallbackBase* |
|
142 */ |
|
143 static CCalCallbackChangeNotify* NewL( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
144 |
|
145 /** |
|
146 * Gives the result of asynchronous SAPI |
|
147 * @param aErrCode errcode |
|
148 * @param aResult Result |
|
149 * @return void |
|
150 */ |
|
151 void NotifyResultL(TInt aErrCode, TAny* aResult); |
|
152 |
|
153 private: |
|
154 |
|
155 /** |
|
156 * Constructor |
|
157 */ |
|
158 CCalCallbackChangeNotify( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
159 }; |
|
160 #endif __CALENDARCALLBACK_H |