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