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 |
||
20 |
#ifndef __CALENDARINTERFACE_H |
|
21 |
#define __CALENDARINTERFACE_H |
|
22 |
||
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
23 |
#include <liwcommon.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
24 |
#include <liwserviceifbase.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
25 |
#include <liwbufferextension.h> |
19 | 26 |
|
27 |
#include <calrrule.h> |
|
28 |
#include <calalarm.h> |
|
29 |
#include <caluser.h> |
|
30 |
#include <calentry.h> |
|
31 |
#include <calchangecallback.h> |
|
32 |
||
33 |
#include "calendarheader.h" |
|
34 |
#include "calendarconstants.h" |
|
35 |
||
36 |
class CCalendarService; |
|
37 |
class CIterableCalEntryList; |
|
38 |
class CEntryAttributes; |
|
39 |
class TUIDSet; |
|
40 |
||
41 |
/** |
|
42 |
* This class provides the Calendar SAPI interface to LIW Framework |
|
43 |
*/ |
|
44 |
class CCalendarInterface : public CBase, public MLiwInterface |
|
45 |
{ |
|
46 |
||
47 |
public: |
|
48 |
||
49 |
/** |
|
50 |
* Two-phased constructor. |
|
51 |
* @return CCalendarInterface* |
|
52 |
*/ |
|
53 |
static CCalendarInterface* NewL(); |
|
54 |
||
55 |
/** |
|
56 |
* Destructor. |
|
57 |
*/ |
|
58 |
virtual ~CCalendarInterface(); |
|
59 |
||
60 |
private: |
|
61 |
||
62 |
/** |
|
63 |
* Constructor |
|
64 |
*/ |
|
65 |
CCalendarInterface(); |
|
66 |
||
67 |
/** |
|
68 |
* Symbian Constructor |
|
69 |
*/ |
|
70 |
void ConstructL(); |
|
71 |
||
72 |
// MLiwInterface member functions |
|
73 |
public: |
|
74 |
||
75 |
/** |
|
76 |
* Executes the SAPI as per params |
|
77 |
* @param aCmdName Command name defining which operation is to be performed |
|
78 |
* @param aInParamList Input param list |
|
79 |
* @param aOutParamList Output list |
|
80 |
* @param aCmdOptions Command option |
|
81 |
* @param aCallback Callback object pointer |
|
82 |
*/ |
|
83 |
virtual void ExecuteCmdL( const TDesC8& aCmdName, |
|
84 |
const CLiwGenericParamList& aInParamList, |
|
85 |
CLiwGenericParamList& aOutParamList, |
|
86 |
TUint aCmdOptions = 0, |
|
87 |
MLiwNotifyCallback* aCallback = 0 ); |
|
88 |
||
89 |
/** |
|
90 |
* Closes the interface |
|
91 |
*/ |
|
92 |
virtual void Close(); |
|
93 |
||
94 |
/** |
|
95 |
* Static Functions |
|
96 |
* |
|
97 |
* Same functionality required outside the CCalendarInterface class in case of async |
|
98 |
* operation. Those set of functions can be given as static. |
|
99 |
*/ |
|
100 |
public: |
|
101 |
||
102 |
/** |
|
103 |
* Converts symbian errcode to equivalent SAPI error code |
|
104 |
* @param aErrorCode Symbian error code |
|
105 |
* |
|
106 |
* @return mapped SAPI error code |
|
107 |
*/ |
|
108 |
static TInt32 ErrCodeConversion(TInt aErrorCode); |
|
109 |
||
110 |
/** |
|
111 |
* Set Import output to output parameter |
|
112 |
* @param aOutputUIDSet Import output |
|
113 |
* @param aOutParamList Output parammeter |
|
114 |
* |
|
115 |
* @return void |
|
116 |
*/ |
|
117 |
static void SetImportOutputL( RPointerArray<TUIDSet>& aOutputUIDSet, |
|
118 |
CLiwGenericParamList& aOutParamList ); |
|
119 |
||
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
120 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
121 |
* Set Getlist output to output parameter |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
122 |
* @param aOutputCalEntry getlist output |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
123 |
* @param aOutParamList Output parammeter |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
124 |
* |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
125 |
* @return void |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
126 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
127 |
void SetCalEntryOutputL( RPointerArray<CCalEntry>& aOutputCalEntry, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
128 |
CLiwGenericParamList& aOutParamList, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
129 |
const TDesC& aCalendarName ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
130 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
131 |
* Set Getlist output to output parameter |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
132 |
* @param aOutputCalEntry getlist output |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
133 |
* @param aOutParamList Output parammeter |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
134 |
* |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
135 |
* @return void |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
136 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
137 |
void SetCalInstanceOutputL( RPointerArray<CCalInstance>& aOutputCalEntry, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
138 |
CLiwGenericParamList& aOutParamList, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
139 |
const TDesC& aCalendarName ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
140 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
141 |
|
19 | 142 |
/** |
143 |
* Set Change Notification output to output parameter |
|
144 |
* @param aOutputChangeSet Notifications list |
|
145 |
* @param aOutParamList Output parammeter |
|
146 |
* |
|
147 |
* @return void |
|
148 |
*/ |
|
149 |
static void SetNotifyOutputL( RArray<TCalChangeEntry>& aOutputChangeSet, |
|
150 |
CLiwGenericParamList& aOutParamList ); |
|
151 |
||
152 |
/** |
|
153 |
* Set GlobalUid/LocalUid to the LiwVariant |
|
154 |
* @param aReturnValue Variant to be set |
|
155 |
* @param aUIDSet GlobalUid/LocalUid |
|
156 |
* |
|
157 |
* @return void |
|
158 |
*/ |
|
159 |
static void GetTLiwVariantForUIDSetL( TLiwVariant& aReturnValue, TUIDSet* aUIDSet ); |
|
160 |
||
161 |
/** |
|
162 |
* Set Change type to the LiwVariant |
|
163 |
* @param aValue Variant to be set |
|
164 |
* @param aChangeEntry Change Type |
|
165 |
* |
|
166 |
* @return void |
|
167 |
*/ |
|
168 |
static void GetTLiwVariantForCalChangeEntryL( TLiwVariant& aValue, |
|
169 |
TCalChangeEntry& aChangeEntry ); |
|
170 |
||
171 |
/** |
|
172 |
* Cleanup function for an CIterableCalEntryList |
|
173 |
* @param aIterEntryList CIterableCalEntryList pointer |
|
174 |
* |
|
175 |
* @return void |
|
176 |
*/ |
|
177 |
static void CleanupIterableCalEntry(void* aIterEntryList); |
|
178 |
||
179 |
/** |
|
180 |
* Returns Day of Month of repeat rule as LiwVariant Map. Caller takes the ownership of map |
|
181 |
* @param aDayOfMonth Day of Month |
|
182 |
* |
|
183 |
* @return CLiwDefaultMap* LiwMap object |
|
184 |
*/ |
|
185 |
static CLiwDefaultMap* GetDayOfMonthL( const TCalRRule::TDayOfMonth& aDayOfMonth ); |
|
186 |
||
187 |
/** |
|
188 |
* Returns CalUser as LiwVariant Map. Caller takes the ownership of map |
|
189 |
* @param aCalUser Day of Month |
|
190 |
* @param aAttendee True if User is an attendee |
|
191 |
* |
|
192 |
* @return CLiwDefaultMap* LiwMap object |
|
193 |
*/ |
|
194 |
static CLiwDefaultMap* GetCalUserL( CCalUser* aCalUser, TBool aAttendee = EFalse ); |
|
195 |
||
196 |
/** |
|
197 |
* Returns array of CalTime as LiwVariant List. Caller takes the ownership of list |
|
198 |
* @param aDates Array of CalTime |
|
199 |
* |
|
200 |
* @return CLiwDefaultList* LiwList object |
|
201 |
*/ |
|
202 |
static CLiwDefaultList* GetDatesListL( RArray<TCalTime>& aDates ) ; |
|
203 |
||
204 |
/** |
|
205 |
* Returns RepeatRule as LiwVariant Map. Caller takes the ownership of map |
|
206 |
* @param aRepeatRule Repeat Rule |
|
207 |
* |
|
208 |
* @return CLiwDefaultMap* LiwMap object |
|
209 |
*/ |
|
210 |
static CLiwDefaultMap* GetRRMapL( const TCalRRule& aRepeatRule ); |
|
211 |
||
212 |
/** |
|
213 |
* Returns string literal for the given Entry Type |
|
214 |
* @param aType Entry Type |
|
215 |
* |
|
216 |
* @return TPtrC Entry Type string |
|
217 |
*/ |
|
218 |
static TPtrC GetEntryTypeL( const CCalEntry::TType aType ); |
|
219 |
||
220 |
/** |
|
221 |
* Returns string literal for the given Entry Replication status |
|
222 |
* @param aReplicationStatus Replication status |
|
223 |
* |
|
224 |
* @return TPtrC Replication status string |
|
225 |
*/ |
|
226 |
static TPtrC GetReplicationL( const CCalEntry::TReplicationStatus aReplicationStatus ); |
|
227 |
||
228 |
/** |
|
229 |
* Returns string literal for Change Types |
|
230 |
* @param aChangeType Change Type |
|
231 |
* |
|
232 |
* @return TPtrC Change Type |
|
233 |
*/ |
|
234 |
static TPtrC GetChangeType( const MCalChangeCallBack2::TChangeType aChangeType ); |
|
235 |
||
236 |
/** |
|
237 |
* Returns string literal for Entry Status |
|
238 |
* @param aStatus Entry Status |
|
239 |
* |
|
240 |
* @return TPtrC Entry Status |
|
241 |
*/ |
|
242 |
static TPtrC GetStatusL( const CCalEntry::TStatus aStatus ); |
|
243 |
||
244 |
/** |
|
245 |
* Returns string literal for Attendee Status |
|
246 |
* @param aStatus Attendee Status |
|
247 |
* |
|
248 |
* @return TPtrC Attendee Status |
|
249 |
*/ |
|
250 |
static TPtrC GetAttendeeStatusL( const CCalAttendee::TCalStatus aStatus ); |
|
251 |
||
252 |
/** |
|
253 |
* Get string literal for Attendee Role |
|
254 |
* @param aRole Attendee Role |
|
255 |
* |
|
256 |
* @return TPtrC Attendee Role |
|
257 |
*/ |
|
258 |
static TPtrC GetAttendeeRoleL( const CCalAttendee::TCalRole aRole ); |
|
259 |
||
260 |
/** |
|
261 |
* Return string literal for Entry Method |
|
262 |
* @param aMethod Entry Method |
|
263 |
* |
|
264 |
* @return TPtrC Entry Method |
|
265 |
*/ |
|
266 |
static TPtrC GetMethodL( const CCalEntry::TMethod aMethod ); |
|
267 |
||
268 |
/** |
|
269 |
* Removes the reference of CIterableCalEntryList from the table maintained |
|
270 |
* by interface |
|
271 |
* @param aCalEntryList Element that need to be removed from the table |
|
272 |
* |
|
273 |
* @return void |
|
274 |
*/ |
|
275 |
void RemoveCalEntryListFromArray( CIterableCalEntryList* aCalEntryList ); |
|
276 |
||
277 |
||
278 |
private: |
|
279 |
||
280 |
/** |
|
281 |
* Issues Add Calendar request to Calendar Service |
|
282 |
* @param aInParamList Input param list |
|
283 |
* @param aOutParamList Output param list |
|
284 |
* @param aPosBased ETrue for position pased parameters |
|
285 |
* |
|
286 |
* @return void |
|
287 |
*/ |
|
288 |
void AddCalendarL(const CLiwGenericParamList& aInParamList, |
|
289 |
CLiwGenericParamList& aOutParamList, |
|
290 |
const TBool aPosBased ); |
|
291 |
||
292 |
/** |
|
293 |
* Issues Add Calendar Entry request to Calendar Service |
|
294 |
* @param aInParamList Input param list |
|
295 |
* @param aOutParamList Output param list |
|
296 |
* @param aPosBased ETrue for position pased parameters |
|
297 |
* |
|
298 |
* @return void |
|
299 |
*/ |
|
300 |
void AddCalendarEntryL(const CLiwGenericParamList& aInParamList, |
|
301 |
CLiwGenericParamList& aOutParamList, |
|
302 |
const TBool aPosBased ); |
|
303 |
||
304 |
/** |
|
305 |
* Issues Delete Calendar request to Calendar Service |
|
306 |
* @param aInParamList Input param list |
|
307 |
* @param aOutParamList Output param list |
|
308 |
* @param aPosBased ETrue for position pased parameters |
|
309 |
* |
|
310 |
* @return void |
|
311 |
*/ |
|
312 |
void DeleteCalendarL( const CLiwGenericParamList& aInParamList, TBool aPosBased); |
|
313 |
||
314 |
/** |
|
315 |
* Issues Delete Calendar Entry request to Calendar Service |
|
316 |
* @param aInParamList Input param list |
|
317 |
* @param aOutParamList Output param list |
|
318 |
* @param aCmdOptions Command option |
|
319 |
* @param aCallback Callback object pointer |
|
320 |
* @param aPosBased ETrue for position pased parameters |
|
321 |
* @param aTransactionId Output param for async request to store transaction id |
|
322 |
* |
|
323 |
* @return void |
|
324 |
*/ |
|
325 |
void DeleteCalendarEntryL(const CLiwGenericParamList& aInParamList, |
|
326 |
CLiwGenericParamList& aOutParamList, |
|
327 |
TUint aCmdOptions, |
|
328 |
MLiwNotifyCallback* aCallback , |
|
329 |
const TBool aPosBased, |
|
330 |
TInt32& aTransactionId ); |
|
331 |
||
332 |
/** |
|
333 |
* Issues GetList Calendar request to Calendar Service |
|
334 |
* @param aInParamList Input param list |
|
335 |
* @param aOutParamList Output param list |
|
336 |
* @param aPosBased ETrue for position pased parameters |
|
337 |
* |
|
338 |
* @return void |
|
339 |
*/ |
|
340 |
void GetListCalendarL(const CLiwGenericParamList& aInParamList, |
|
341 |
CLiwGenericParamList& aOutParamList, |
|
342 |
const TBool aPosBased ); |
|
343 |
||
344 |
/** |
|
345 |
* Issues GetList Calendar Entry request to Calendar Service |
|
346 |
* @param aInParamList Input param list |
|
347 |
* @param aOutParamList Output param list |
|
348 |
* @param aPosBased ETrue for position pased parameters |
|
349 |
* |
|
350 |
* @return void |
|
351 |
*/ |
|
352 |
void GetListCalendarEntryL(const CLiwGenericParamList& aInParamList, |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
353 |
CLiwGenericParamList& aOutParamList, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
354 |
TUint aCmdOptions, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
355 |
MLiwNotifyCallback* aCallback , |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
356 |
const TBool aPosBased, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
357 |
TInt32& aTransactionId ); |
19 | 358 |
|
359 |
/** |
|
360 |
* Issues Import Calendar Entry request to Calendar Service |
|
361 |
* @param aInParamList Input param list |
|
362 |
* @param aOutParamList Output param list |
|
363 |
* @param aCmdOptions Command option |
|
364 |
* @param aCallback Callback object pointer |
|
365 |
* @param aPosBased ETrue for position pased parameters |
|
366 |
* @param aTransactionId Output param for async request to store transaction id |
|
367 |
* |
|
368 |
* @return void |
|
369 |
*/ |
|
370 |
void ImportCalendarEntryL(const CLiwGenericParamList& aInParamList, |
|
371 |
CLiwGenericParamList& aOutParamList, |
|
372 |
TUint aCmdOptions, |
|
373 |
MLiwNotifyCallback* aCallback , |
|
374 |
const TBool aPosBased, |
|
375 |
TInt32& aTransactionId ); |
|
376 |
||
377 |
/** |
|
378 |
* Issues Export Calendar Entry request to Calendar Service |
|
379 |
* @param aInParamList Input param list |
|
380 |
* @param aOutParamList Output param list |
|
381 |
* @param aCmdOptions Command option |
|
382 |
* @param aCallback Callback object pointer |
|
383 |
* @param aPosBased ETrue for position pased parameters |
|
384 |
* @param aTransactionId Output param for async request to store transaction id |
|
385 |
* |
|
386 |
* @return void |
|
387 |
*/ |
|
388 |
void ExportCalendarEntryL(const CLiwGenericParamList& aInParamList, |
|
389 |
CLiwGenericParamList& aOutParamList, |
|
390 |
TUint aCmdOptions, |
|
391 |
MLiwNotifyCallback* aCallback , |
|
392 |
const TBool aPosBased, |
|
393 |
TInt32& aTransactionId ); |
|
394 |
||
395 |
/** |
|
396 |
* Issues Change Notification request to Calendar Service |
|
397 |
* @param aInParamList Input param list |
|
398 |
* @param aCallback Callback object pointer |
|
399 |
* @param aPosBased ETrue for position pased parameters |
|
400 |
* @param aTransactionId Output param for async request to store transaction id |
|
401 |
* |
|
402 |
* @return void |
|
403 |
*/ |
|
404 |
void RequestNotificationL( const CLiwGenericParamList& aInParamList, |
|
405 |
MLiwNotifyCallback* aCallback, |
|
406 |
const TBool aPosBased, |
|
407 |
TInt32& aTransactionId ); |
|
408 |
||
409 |
||
410 |
||
411 |
/** |
|
412 |
* Extracts LocalUid as TCalLocalUid from input Uid String |
|
413 |
* @param aLocalUid Input string |
|
414 |
* @param aOutLocalUid output param for LocalUid |
|
415 |
* |
|
416 |
* @return void |
|
417 |
*/ |
|
418 |
void GetLocalUid( const TDesC& aLocalUid, TCalLocalUid& aOutLocalUid ); |
|
419 |
||
420 |
/** |
|
421 |
* Extracts GlobalUid as 8-bit string from input Uid String |
|
422 |
* @param aGlobalUid Input string |
|
423 |
* @param aOutGlobalUid output param for GlobalUid |
|
424 |
* |
|
425 |
* @return void |
|
426 |
*/ |
|
427 |
void GetGlobalUid( const TDesC& aGlobalUid, TPtr8 aOutGlobalUid ); |
|
428 |
||
429 |
/** |
|
430 |
* Extracts ContentType from the input param list |
|
431 |
* @param aInParamList Input param list |
|
432 |
* @param aPosBased ETrue for position pased parameters |
|
433 |
* |
|
434 |
* @return ContentType string |
|
435 |
*/ |
|
436 |
TPtrC GetContentType(const CLiwGenericParamList& aInParamList, |
|
437 |
TBool& aPosBased ); |
|
438 |
||
439 |
/** |
|
440 |
* Extracts TransactionId from the input param list |
|
441 |
* @param aInParamList Input param list |
|
442 |
* @param aTransactionId output param fromtransactiod id |
|
443 |
* |
|
444 |
* @return void |
|
445 |
*/ |
|
446 |
void GetTransactionIdL( const CLiwGenericParamList& aInParamList, |
|
447 |
TInt32& aTransactionId ); |
|
448 |
||
449 |
/** |
|
450 |
* Extracts CalendarName from the input param list |
|
451 |
* @param aInParamList Input param list |
|
452 |
* @param aCmdName Command Name |
|
453 |
* @param aField ParameterName to read |
|
454 |
* @param aPosBased ETrue for position pased parameters |
|
455 |
* @param aCalendarName Output param for Calendar Name |
|
456 |
* |
|
457 |
* @return void |
|
458 |
*/ |
|
459 |
void GetCalendarNameL( const CLiwGenericParamList& aInParamList, |
|
460 |
const TDesC8& aCmdName, |
|
461 |
const TDesC8& aField, |
|
462 |
TBool aPosBased, |
|
463 |
HBufC*& aCalendarName ); |
|
464 |
||
465 |
/** |
|
466 |
* Extracts Descriptor Field from Map in input param list |
|
467 |
* @param aInParamList Input param list |
|
468 |
* @param aCmdName Command Name |
|
469 |
* @param aMapName Map name in input param list |
|
470 |
* @param aFieldName Filed name to read from map |
|
471 |
* @param aPosBased ETrue for position pased parameters |
|
472 |
* @param aOutputField Output param for Field value |
|
473 |
* |
|
474 |
* @return void |
|
475 |
*/ |
|
476 |
void CCalendarInterface::GetDesCFieldFromMapL( const CLiwGenericParamList& aInParamList, |
|
477 |
const TDesC8& aCmdName, |
|
478 |
const TDesC8& aMapName, |
|
479 |
const TDesC8& aFieldName, |
|
480 |
TBool aPosBased, |
|
481 |
HBufC*& aOutputField ); |
|
482 |
||
483 |
/** |
|
484 |
* Extracts 8-bit Descriptor Field from Map in input param list |
|
485 |
* @param aInParamList Input param list |
|
486 |
* @param aCmdName Command Name |
|
487 |
* @param aMapName Map name in input param list |
|
488 |
* @param aFieldName Filed name to read from map |
|
489 |
* @param aPosBased ETrue for position pased parameters |
|
490 |
* @param aOutputField Output param for Field value |
|
491 |
* |
|
492 |
* @return void |
|
493 |
*/ |
|
494 |
void CCalendarInterface::GetDesC8FieldFromMapL( const CLiwGenericParamList& aInParamList, |
|
495 |
const TDesC8& aCmdName, |
|
496 |
const TDesC8& aMapName, |
|
497 |
const TDesC8& aFieldName, |
|
498 |
TBool aPosBased, |
|
499 |
HBufC8*& aOutputField ); |
|
500 |
||
501 |
/** |
|
502 |
* Extracts Entry attributes for Add/Update request |
|
503 |
* @param aInParamList Input param list |
|
504 |
* @param aCalendarName CalendarName |
|
505 |
* @param aPosBased ETrue for position pased parameters |
|
506 |
* |
|
507 |
* @return CEntryAttributes* EntryAttributes object |
|
508 |
*/ |
|
509 |
CEntryAttributes* GetAddParametersL( const CLiwGenericParamList& aInParamList, |
|
510 |
const TDesC& aCalendarName, |
|
511 |
TBool aPosBased); |
|
512 |
||
513 |
/** |
|
514 |
* Extracts Filter for Delete request |
|
515 |
* @param aInParamList Input param list |
|
516 |
* @param aFilter Output param for Filter |
|
517 |
* @param aPosBased ETrue for position pased parameters |
|
518 |
* |
|
519 |
* @return void |
|
520 |
*/ |
|
521 |
void GetDeleteEntryFilterL(const CLiwGenericParamList& aInParamList, |
|
522 |
CCalendarFilter& aFilter, |
|
523 |
const TBool aPosBased ); |
|
524 |
||
525 |
/** |
|
526 |
* Extracts Inputs for Import request |
|
527 |
* @param aInParamList Input param list |
|
528 |
* @param aPosBased ETrue for position pased parameters |
|
529 |
* @param aInputBuffer Output param for Buffer from which entries to be imported |
|
530 |
* @param aImportFile Output param for File from which entries to be imported |
|
531 |
* @param aCalendarFormat Output param for Calendar Format to be used (ICal/VCal) |
|
532 |
* @param aCalendarName Output param for Calendar Name |
|
533 |
* |
|
534 |
* @return void |
|
535 |
*/ |
|
536 |
void GetImportInputL( const CLiwGenericParamList& aInParamList, |
|
537 |
TBool aPosBased, |
|
538 |
HBufC8*& aInputBuffer, |
|
539 |
TDes& aImportFile, |
|
540 |
TDes8& aCalendarFormat, |
|
541 |
TDes& aCalendarName ); |
|
542 |
||
543 |
/** |
|
544 |
* Extracts Inputs for Export request |
|
545 |
* @param aInParamList Input param list |
|
546 |
* @param aPosBased ETrue for position pased parameters |
|
547 |
* @param aCalExportParams Output param for Export parameters |
|
548 |
* |
|
549 |
* @return void |
|
550 |
*/ |
|
551 |
void GetExportInputL( const CLiwGenericParamList& aInParamList, |
|
552 |
TBool aPosBased, |
|
553 |
CCalendarExportParams& aCalExportParams); |
|
554 |
||
555 |
/** |
|
556 |
* Extracts Inputs for Change Notification request |
|
557 |
* @param aInParamList Input param list |
|
558 |
* @param aFileter Output param for Change Notification filter |
|
559 |
* @param aPosBased ETrue for position pased parameters |
|
560 |
* |
|
561 |
* @return void |
|
562 |
*/ |
|
563 |
void GetNotificationFilterL( const CLiwGenericParamList& aInParamList, |
|
564 |
CCalendarFilter& aFilter, |
|
565 |
const TBool aPosBased ); |
|
566 |
||
567 |
/** |
|
568 |
* Appends error message |
|
569 |
* @param aCmdName Command Name |
|
570 |
* @param aParameter Parameter Name |
|
571 |
* @param aMessage Error message |
|
572 |
* |
|
573 |
* @return void |
|
574 |
*/ |
|
575 |
void AppendErrorMessageL( const TDesC8& aCmdName, |
|
576 |
const TDesC8& aParameter, |
|
577 |
const TDesC& aMessage ); |
|
578 |
||
579 |
/** |
|
580 |
* Checks for the valid data type of Parameter. |
|
581 |
* @param aParam Input parameter |
|
582 |
* @param aExpectedtype Expected type for input parameter |
|
583 |
* @param aCmdName Command Name |
|
584 |
* @param aParameter Parameter Name |
|
585 |
* @param aErrorMessage Error message in case of type mismatch |
|
586 |
* |
|
587 |
* @return void |
|
588 |
*/ |
|
589 |
void ValidateParamTypeL( TLiwVariant& aParam, |
|
590 |
LIW::TVariantTypeId aExpectedtype, |
|
591 |
const TDesC8& aCmdName, |
|
592 |
const TDesC8& aParameter, |
|
593 |
const TDesC& aMessage ); |
|
594 |
||
595 |
/** |
|
596 |
* Returns entry type for given LocalUid. |
|
597 |
* @param aCalendarName CalendarName |
|
598 |
* @param aLocalUid LocalUid |
|
599 |
* |
|
600 |
* @return Entry type |
|
601 |
*/ |
|
602 |
TInt GetEntryType( const TDesC& aCalendarName, TCalLocalUid aLocalUid ); |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
603 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
604 |
* Returns entry type for given LocalUid. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
605 |
* @param aCalendarName CalendarName |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
606 |
* @param aLocalUid LocalUid |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
607 |
* |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
608 |
* @return Entry type |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
609 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
610 |
TInt GetEntryType( const TDesC& aCalendarName, const TDesC8& aGuid ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
611 |
|
19 | 612 |
|
613 |
/** |
|
614 |
* Check if given calendar is in use. |
|
615 |
* @param aCalendarName CalendarName |
|
616 |
* |
|
617 |
* @return True if given calendar is in use |
|
618 |
*/ |
|
619 |
TBool CCalendarInterface::CheckCalendarInUse( const TDesC& aCalendarName ); |
|
620 |
||
621 |
private: |
|
622 |
||
623 |
/** |
|
624 |
* CCalendarService class pointer |
|
625 |
* @internal |
|
626 |
*/ |
|
627 |
CCalendarService* iCalService; |
|
628 |
||
629 |
/** |
|
630 |
* Error Message object |
|
631 |
* @internal |
|
632 |
*/ |
|
633 |
HBufC* iErrorMessage; |
|
634 |
||
635 |
/** |
|
636 |
* Array containing the list of CalEntryList. |
|
637 |
* @internal |
|
638 |
*/ |
|
639 |
RPointerArray<CIterableCalEntryList> iArrayCalEntryList; |
|
640 |
||
641 |
}; |
|
642 |
||
643 |
||
644 |
#endif __CALENDARINTERFACE_H |