author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 22 | fc9cf246af83 |
permissions | -rw-r--r-- |
19 | 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 |
||
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
22 |
#include <liwcommon.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
23 |
#include <liwserviceifbase.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
24 |
#include <liwbufferextension.h> |
19 | 25 |
|
26 |
#include <calchangecallback.h> |
|
27 |
||
28 |
#include "calendarheader.h" |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
29 |
class CCalendarInterface; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
30 |
|
19 | 31 |
/** |
32 |
* Implemenation of abstract MCalCallbackBase interface for Buffer output |
|
33 |
* Used in Async Export operation |
|
34 |
* |
|
35 |
* @see MCalCallbackBase |
|
36 |
* |
|
37 |
*/ |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
38 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
39 |
class CCalCallbackCalEntryList: public CBase, public MCalCallbackBase |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
40 |
{ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
41 |
public: |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
42 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
43 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
44 |
* Two-phase Constructor |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
45 |
* @return CMsgCallbackBase* |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
46 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
47 |
static CCalCallbackCalEntryList* NewL( CCalendarInterface& aCalendarInterface, MLiwNotifyCallback *aPtrNotifyCallback, const TDesC& aCalendarName, TInt32 aTransactionId, TBool aIsEntryArray ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
48 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
49 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
50 |
* Gives the result of asynchronous SAPI |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
51 |
* @param aErrCode errcode |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
52 |
* @param aResult Result |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
53 |
* @return void |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
54 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
55 |
void NotifyResultL(TInt aErrCode, TAny* aResult); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
56 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
57 |
// TInt32 GetTransactionID(); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
58 |
~CCalCallbackCalEntryList(); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
59 |
private: |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
60 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
61 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
62 |
* Constructor |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
63 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
64 |
CCalCallbackCalEntryList( CCalendarInterface& aCalendarInterface, MLiwNotifyCallback *aPtrNotifyCallback, TInt32 aTransactionId, TBool aIsEntryArray ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
65 |
void ConstructL( const TDesC& aCalendarName ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
66 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
67 |
private: |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
68 |
TBool iIsEntryArray; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
69 |
CCalendarInterface& iInterface; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
70 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
71 |
* Calendar Name |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
72 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
73 |
HBufC* iCalendarName; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
74 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
75 |
/* MLiwNotifyCallback* iCallback; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
76 |
TInt32 iTransactionId; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
77 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
78 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
79 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
80 |
}; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
81 |
|
19 | 82 |
class CCalCallbackBaseBuffer: public CBase, public MCalCallbackBase //USED IN CASE OF EXPORT ASYNC |
83 |
{ |
|
84 |
public: |
|
85 |
||
86 |
/** |
|
87 |
* Two-phase Constructor |
|
88 |
* @return CMsgCallbackBase* |
|
89 |
*/ |
|
90 |
static CCalCallbackBaseBuffer* NewL( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
91 |
||
92 |
/** |
|
93 |
* Gives the result of asynchronous SAPI |
|
94 |
* @param aErrCode errcode |
|
95 |
* @param aResult Result |
|
96 |
* @return void |
|
97 |
*/ |
|
98 |
void NotifyResultL(TInt aErrCode, TAny* aResult); |
|
99 |
||
100 |
private: |
|
101 |
||
102 |
/** |
|
103 |
* Constructor |
|
104 |
*/ |
|
105 |
CCalCallbackBaseBuffer( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
106 |
||
107 |
}; |
|
108 |
||
109 |
/** |
|
110 |
* Implemenation of abstract MCalCallbackBase interface for TUIDSet output |
|
111 |
* Used in Async Import operation |
|
112 |
* |
|
113 |
* @see MCalCallbackBase |
|
114 |
* |
|
115 |
*/ |
|
116 |
class CCalCallbackBaseUIDSet: public CBase, public MCalCallbackBase |
|
117 |
{ |
|
118 |
public: |
|
119 |
||
120 |
/** |
|
121 |
* Two-phase Constructor |
|
122 |
* @return CMsgCallbackBase* |
|
123 |
*/ |
|
124 |
static CCalCallbackBaseUIDSet* NewL( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
125 |
||
126 |
/** |
|
127 |
* Gives the result of asynchronous SAPI |
|
128 |
* @param aErrCode errcode |
|
129 |
* @param aResult Result |
|
130 |
* @return void |
|
131 |
*/ |
|
132 |
void NotifyResultL(TInt aErrCode, TAny* aResult); |
|
133 |
||
134 |
private: |
|
135 |
||
136 |
/** |
|
137 |
* Constructor |
|
138 |
*/ |
|
139 |
CCalCallbackBaseUIDSet( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
140 |
}; |
|
141 |
||
142 |
/** |
|
143 |
* Implemenation of abstract MCalCallbackBase interface for Error code as output |
|
144 |
* Used in Async Delete operation |
|
145 |
* |
|
146 |
* @see MCalCallbackBase |
|
147 |
* |
|
148 |
*/ |
|
149 |
class CCalCallbackInt: public CBase, public MCalCallbackBase |
|
150 |
{ |
|
151 |
public: |
|
152 |
||
153 |
/** |
|
154 |
* Two-phase Constructor |
|
155 |
* @return CMsgCallbackBase* |
|
156 |
*/ |
|
157 |
static CCalCallbackInt* NewL( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
158 |
||
159 |
/** |
|
160 |
* Gives the result of asynchronous SAPI |
|
161 |
* @param aErrCode errcode |
|
162 |
* @param aResult Result |
|
163 |
* @return void |
|
164 |
*/ |
|
165 |
void NotifyResultL(TInt aErrCode, TAny* aResult); |
|
166 |
||
167 |
private: |
|
168 |
||
169 |
/** |
|
170 |
* Constructor |
|
171 |
*/ |
|
172 |
CCalCallbackInt( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
173 |
}; |
|
174 |
||
175 |
/** |
|
176 |
* Implemenation of abstract MCalCallbackBase interface for Change Notifications |
|
177 |
* |
|
178 |
* @see MCalCallbackBase |
|
179 |
* |
|
180 |
*/ |
|
181 |
class CCalCallbackChangeNotify : public CBase, public MCalCallbackBase |
|
182 |
{ |
|
183 |
public: |
|
184 |
||
185 |
/** |
|
186 |
* Two-phase Constructor |
|
187 |
* @return CMsgCallbackBase* |
|
188 |
*/ |
|
189 |
static CCalCallbackChangeNotify* NewL( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
190 |
||
191 |
/** |
|
192 |
* Gives the result of asynchronous SAPI |
|
193 |
* @param aErrCode errcode |
|
194 |
* @param aResult Result |
|
195 |
* @return void |
|
196 |
*/ |
|
197 |
void NotifyResultL(TInt aErrCode, TAny* aResult); |
|
198 |
||
199 |
private: |
|
200 |
||
201 |
/** |
|
202 |
* Constructor |
|
203 |
*/ |
|
204 |
CCalCallbackChangeNotify( MLiwNotifyCallback *aPtrNotifyCallback, const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId ); |
|
205 |
}; |
|
206 |
#endif __CALENDARCALLBACK_H |