author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 24 Sep 2009 12:43:20 +0300 | |
changeset 24 | f4292e0e20df |
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 |
* |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
14 |
* Description: |
19 | 15 |
* |
16 |
*/ |
|
17 |
#ifndef __CALENDARENTRY_H |
|
18 |
#define __CALENDARENTRY_H |
|
19 |
||
20 |
#include <calentry.h> |
|
21 |
#include <calrrule.h> |
|
22 |
||
23 |
class CCalUser; |
|
24 |
||
25 |
class CAttendeeInfo : public CBase |
|
26 |
{ |
|
27 |
public: |
|
28 |
||
29 |
/** |
|
30 |
* Two-phased constructor. |
|
31 |
* @param aAddress The address of the attendee |
|
32 |
* @return An instance of CAttendeeInfo |
|
33 |
*/ |
|
34 |
IMPORT_C static CAttendeeInfo* NewL( const TDesC& aAddress ); |
|
35 |
||
36 |
/** |
|
37 |
* Destructor. |
|
38 |
*/ |
|
39 |
~CAttendeeInfo(); |
|
40 |
||
41 |
/** |
|
42 |
* Sets the iCalender-defined common name of the user |
|
43 |
* @param aName It is the common name of the user |
|
44 |
*/ |
|
45 |
IMPORT_C void SetCommonNameL( const TDesC& aName ); |
|
46 |
||
47 |
/** |
|
48 |
* Set the role of this attendee |
|
49 |
* @param aRole The role |
|
50 |
*/ |
|
51 |
IMPORT_C void SetRoleL( const TDesC& aRole ); |
|
52 |
||
53 |
/** |
|
54 |
* Set the status of this attendee |
|
55 |
* @param aStatus The status |
|
56 |
*/ |
|
57 |
IMPORT_C void SetStatusL( const TDesC& aStatus ); |
|
58 |
||
59 |
/** |
|
60 |
* Sets whether or not a response was requested for this attendee |
|
61 |
* @param aResponse ETrue if a response was requested, EFalse if not |
|
62 |
*/ |
|
63 |
IMPORT_C void SetRsvp( const TBool aResponse ); |
|
64 |
||
65 |
/** |
|
66 |
* Gets the address of the attendee. |
|
67 |
* @return The address of the attendee. |
|
68 |
*/ |
|
69 |
IMPORT_C TPtrC Address(); |
|
70 |
||
71 |
/** |
|
72 |
* Gets the iCalender-defined common name of the user. |
|
73 |
* @return The common name of the user. |
|
74 |
*/ |
|
75 |
IMPORT_C TPtrC CommonName(); |
|
76 |
||
77 |
/** |
|
78 |
* Get the role of this attendee |
|
79 |
* @return The role |
|
80 |
*/ |
|
81 |
IMPORT_C TPtrC Role(); |
|
82 |
||
83 |
/** |
|
84 |
* Get the status of this attendee |
|
85 |
* @return The status |
|
86 |
*/ |
|
87 |
IMPORT_C TPtrC Status(); |
|
88 |
||
89 |
/** |
|
90 |
* Gets whether or not a response was requested for this attendee. |
|
91 |
* @return ETrue if a response was requested, EFalse if not. |
|
92 |
*/ |
|
93 |
IMPORT_C TBool ResponseRequested(); |
|
94 |
||
95 |
||
96 |
private: |
|
97 |
||
98 |
/** |
|
99 |
* Constructor |
|
100 |
*/ |
|
101 |
CAttendeeInfo(); |
|
102 |
||
103 |
/** |
|
104 |
* Constructor |
|
105 |
*/ |
|
106 |
void ConstructL( const TDesC& aAddress ); |
|
107 |
||
108 |
private: |
|
109 |
||
110 |
||
111 |
/** |
|
112 |
* Repeat type: can be daily, weekly, monthly or yearly |
|
113 |
*/ |
|
114 |
HBufC* iAddress; |
|
115 |
||
116 |
/** |
|
117 |
* Repeat type: can be daily, weekly, monthly or yearly |
|
118 |
*/ |
|
119 |
HBufC* iRole; |
|
120 |
||
121 |
/** |
|
122 |
* Until time of the repeat rule |
|
123 |
*/ |
|
124 |
HBufC* iStatus; |
|
125 |
||
126 |
/** |
|
127 |
* Start time of the repeat rule |
|
128 |
*/ |
|
129 |
HBufC* iCommonName; |
|
130 |
||
131 |
/** |
|
132 |
* Interval for the repeat rule |
|
133 |
*/ |
|
134 |
TBool iResponse; |
|
135 |
||
136 |
||
137 |
||
138 |
}; |
|
139 |
||
140 |
class CRepeatInfo : public CBase |
|
141 |
{ |
|
142 |
||
143 |
public: |
|
144 |
/** |
|
145 |
* Two-phased constructor. |
|
146 |
* @param |
|
147 |
* @return An instance of CRepeatInfo |
|
148 |
*/ |
|
149 |
IMPORT_C static CRepeatInfo* NewL( const TInt aType ); |
|
150 |
||
151 |
/** |
|
152 |
* Destructor. |
|
153 |
*/ |
|
154 |
~CRepeatInfo(); |
|
155 |
||
156 |
/** |
|
157 |
* Sets the until time for the repeat rule |
|
158 |
* @param aUntilTime It is the time until which we want this rule to |
|
159 |
* repeat |
|
160 |
*/ |
|
161 |
IMPORT_C void SetUntilTimeL( const TTime& aUntilTime ); |
|
162 |
||
163 |
/** |
|
164 |
* Sets the number of instances for the repeat rule |
|
165 |
* @param aCount It is the number of instances we want this rule to |
|
166 |
* repeat |
|
167 |
*/ |
|
168 |
IMPORT_C void SetCount( const TUint aCount ); |
|
169 |
||
170 |
/** |
|
171 |
* Sets the start time for the repeat rule |
|
172 |
* @param aStartTime It is the start time for the repeat rule |
|
173 |
*/ |
|
174 |
IMPORT_C void SetStartTimeL( const TTime& aStartTime ); |
|
175 |
||
176 |
/** |
|
177 |
* Sets the interval for the repeat rule |
|
178 |
* @param aInterval It is the interval between two successive repeats |
|
179 |
*/ |
|
180 |
IMPORT_C void SetInterval( const TInt aInterval ); |
|
181 |
||
182 |
/** |
|
183 |
* Sets all week days on which this rule is repeated, applicable only |
|
184 |
* for weekly repeat rule |
|
185 |
* @param aDay It specifies the day of the week on which this rule |
|
186 |
* repeats. |
|
187 |
*/ |
|
188 |
IMPORT_C void SetDaysInWeek( const RArray<TDay>& aDays ); |
|
189 |
||
190 |
/** |
|
191 |
* Sets all dates of the month on which this rule is repeated, applicable |
|
192 |
* only for monthly repeat rule |
|
193 |
* @param aDay It specifies the day of the month on which this rule |
|
194 |
* repeats. |
|
195 |
*/ |
|
196 |
IMPORT_C void SetMonthDates( const RArray<TInt>& aMonthDates ); |
|
197 |
||
198 |
/** |
|
199 |
* Sets all days of the month on which this rule is repeated, applicable |
|
200 |
* only for monthly and yearly repeat rule |
|
201 |
* @param aDay It specifies the day of the week on which this rule |
|
202 |
* repeats. |
|
203 |
* @param aWeekNum The week number in the month i.e.1, 2, 3, 4 for the 1st, |
|
204 |
2nd, 3rd and 4th week of the month, or -1 for the last week |
|
205 |
of the month. |
|
206 |
*/ |
|
207 |
IMPORT_C void SetMonthDays( const RArray<TCalRRule::TDayOfMonth>& aDays ); |
|
208 |
||
209 |
/** |
|
210 |
* Sets the month of the year for this repeat rule |
|
211 |
* @param aMonthNum It is the month number in which we want the rule to repeat |
|
212 |
*/ |
|
213 |
IMPORT_C void SetMonth( const TInt aMonthNum ); |
|
214 |
||
215 |
||
216 |
/** |
|
217 |
* Sets the first day of the week for this repeat rule. |
|
218 |
* @param aDay The weekday to be the first |
|
219 |
*/ |
|
220 |
IMPORT_C void SetWeekStart( const TInt aDay ); |
|
221 |
||
222 |
/** |
|
223 |
* Gets the month of the year for this repeat rule |
|
224 |
* @return The month of the yearly repeat |
|
225 |
*/ |
|
226 |
IMPORT_C TMonth Month(); |
|
227 |
||
228 |
/** |
|
229 |
* Gets all weekdays on which this rule is repeated |
|
230 |
* @return Array containing all weekdays that are to be set |
|
231 |
*/ |
|
232 |
IMPORT_C RArray< TDay >& DaysInWeek(); |
|
233 |
||
234 |
/** |
|
235 |
* Gets all days in the month on which this rule is repeated |
|
236 |
* @return Array containing all days in the month that are to be set |
|
237 |
*/ |
|
238 |
IMPORT_C RArray< TCalRRule::TDayOfMonth >& DaysInMonth(); |
|
239 |
||
240 |
/** |
|
241 |
* Gets all dates in the month on which this rule is repeated |
|
242 |
* @return Array containing all dates in the month that are to be set |
|
243 |
*/ |
|
244 |
IMPORT_C RArray< TInt >& DatesInMonth(); |
|
245 |
||
246 |
/** |
|
247 |
* Gets the repeat interval. |
|
248 |
* @return The repeat interval |
|
249 |
*/ |
|
250 |
IMPORT_C TInt Interval(); |
|
251 |
||
252 |
/** |
|
253 |
* Gets the repeat interval. |
|
254 |
* @return The end date, as a TCalTime so it may be accessed in utc or system local time |
|
255 |
*/ |
|
256 |
IMPORT_C TCalTime& UntilDate(); |
|
257 |
||
258 |
/** |
|
259 |
* Gets the repeat definition's type. |
|
260 |
* @return The repeat definition's type |
|
261 |
*/ |
|
262 |
IMPORT_C TCalRRule::TType Type(); |
|
263 |
||
264 |
/** |
|
265 |
* Gets the first day of the week for this repeat rule. |
|
266 |
* @return The first day of the week for this repeat rule. |
|
267 |
*/ |
|
268 |
IMPORT_C TDay WeekStart(); |
|
269 |
||
270 |
/** |
|
271 |
* Gets the repeat rule |
|
272 |
* @return The repeat rule. |
|
273 |
*/ |
|
274 |
IMPORT_C TCalRRule& GetRepeatRule(); |
|
275 |
private: |
|
276 |
||
277 |
/** |
|
278 |
* Constructor |
|
279 |
*/ |
|
280 |
CRepeatInfo(); |
|
281 |
||
282 |
/** |
|
283 |
* Constructor |
|
284 |
*/ |
|
285 |
void ConstructL( const TInt aType ); |
|
286 |
private: |
|
287 |
||
288 |
||
289 |
/** |
|
290 |
* Repeat type: can be daily, weekly, monthly or yearly |
|
291 |
*/ |
|
292 |
TCalRRule::TType iType; |
|
293 |
||
294 |
/** |
|
295 |
* Until time of the repeat rule |
|
296 |
*/ |
|
297 |
TCalTime iUntilTime; |
|
298 |
||
299 |
/** |
|
300 |
* Start time of the repeat rule |
|
301 |
*/ |
|
302 |
TCalTime iStartTime; |
|
303 |
||
304 |
/** |
|
305 |
* Interval for the repeat rule |
|
306 |
*/ |
|
307 |
TInt iInterval; |
|
308 |
||
309 |
/** |
|
310 |
* Month for the yearly repeat rule |
|
311 |
*/ |
|
312 |
TMonth iMonth; |
|
313 |
||
314 |
/** |
|
315 |
* Array of month days for the monthly/yearly repeat rule |
|
316 |
*/ |
|
317 |
RArray<TCalRRule::TDayOfMonth> iMonthDays; |
|
318 |
||
319 |
/** |
|
320 |
* Array of month dates for the monthly repeat rule |
|
321 |
*/ |
|
322 |
RArray<TInt> iMonthDates; |
|
323 |
||
324 |
/** |
|
325 |
* Array of weekdays for the weekly repeat rule |
|
326 |
*/ |
|
327 |
RArray<TDay> iWeekDays; |
|
328 |
||
329 |
TDay iWkSt; |
|
330 |
||
331 |
TCalRRule iRule; |
|
332 |
||
333 |
}; |
|
334 |
||
335 |
/** |
|
336 |
* This class provides function to set and get various attributes |
|
337 |
* associated with a calendar entry. |
|
338 |
*/ |
|
339 |
class CEntryAttributes : public CBase |
|
340 |
{ |
|
341 |
public: |
|
342 |
||
343 |
/** |
|
344 |
* TModifiedParameters enum for indicating which entry fields have new values |
|
345 |
* for modification |
|
346 |
*/ |
|
347 |
enum TModifiedParameters |
|
348 |
{ |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
349 |
ESummary =0x000001, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
350 |
ESeqNum =0x000002, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
351 |
EStartTime =0x000004, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
352 |
EEndTime =0x000008, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
353 |
EReplication =0x000010, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
354 |
EDescription =0x000020, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
355 |
EPriority =0x000040, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
356 |
EMethod =0x000080, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
357 |
EAlarmTime =0x000100, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
358 |
ELocation =0x000200, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
359 |
EStatus =0x000400, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
360 |
ERepeatRule =0x000800, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
361 |
EExDates =0x001000, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
362 |
ERepeatDates =0x002000, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
363 |
EPhoneOwner =0x004000, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
364 |
EOrganizer =0x008000, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
365 |
EAttendees =0x010000, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
366 |
ELocalUid =0x020000, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
367 |
EEntryType =0x040000, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
368 |
EInsStartTime =0x080000, |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
369 |
EGlobalUid =0x100000, |
19 | 370 |
}; |
371 |
||
372 |
public: |
|
373 |
||
374 |
/** |
|
375 |
* Two-phased constructor. |
|
376 |
* @param aType It is the type of calendar entry and can be an appointment, |
|
377 |
* to-do item, reminder, event or anniversary |
|
378 |
* @return An instance of CEntryAttributes |
|
379 |
*/ |
|
380 |
IMPORT_C static CEntryAttributes* NewL( const TDesC& aType ); |
|
381 |
||
382 |
/** |
|
383 |
* Two-phased constructor. |
|
384 |
* @return An instance of CEntryAttributes |
|
385 |
*/ |
|
386 |
IMPORT_C static CEntryAttributes* CEntryAttributes::NewL(); |
|
387 |
/** |
|
388 |
* Destructor. |
|
389 |
*/ |
|
390 |
~CEntryAttributes(); |
|
391 |
||
392 |
/** |
|
393 |
* Sets the start time for the calendar entry |
|
394 |
* @param aStartTime It is the start time that we want to set to the |
|
395 |
* calendar entry. |
|
396 |
* @return void |
|
397 |
*/ |
|
398 |
IMPORT_C void SetTypeL( const TDesC& aType ); |
|
399 |
||
400 |
/** |
|
401 |
* Sets the start time for the calendar entry |
|
402 |
* @param aStartTime It is the start time that we want to set to the |
|
403 |
* calendar entry. |
|
404 |
* @return void |
|
405 |
*/ |
|
406 |
IMPORT_C void SetStartTimeL( const TTime& aStartTime ); |
|
407 |
||
408 |
/** |
|
409 |
* Sets the end time for the calendar entry |
|
410 |
* @param aEndTime It is the start time that we want to set to the |
|
411 |
* calendar entry. |
|
412 |
* @return void |
|
413 |
*/ |
|
414 |
IMPORT_C void SetEndTimeL( const TTime& aEndTime ); |
|
415 |
||
416 |
/** |
|
417 |
* Sets the instance start time for the calendar entry, valid for "Update" |
|
418 |
* opration |
|
419 |
* @param aEndTime It is the start time that we want to set to the |
|
420 |
* calendar entry. |
|
421 |
* @return void |
|
422 |
*/ |
|
423 |
IMPORT_C void SetInstanceStartTimeL( const TTime& aStartTime ); |
|
424 |
||
425 |
/** |
|
426 |
* Sets the sequence number for the calendar entry |
|
427 |
* @param aSeqNum It is the sequence number that we want to set to the |
|
428 |
* calendar entry. |
|
429 |
* @return void |
|
430 |
*/ |
|
431 |
IMPORT_C void SetSequenceNumber( const TInt aSeqNum ); |
|
432 |
||
433 |
/** |
|
434 |
* Sets the status of the calendar entry |
|
435 |
* @param aStatus It specifies the current status of the calendar entry. |
|
436 |
* @return void |
|
437 |
*/ |
|
438 |
IMPORT_C void SetEntryStatusL( const TDesC& aStatus ); |
|
439 |
||
440 |
/** |
|
441 |
* Sets the phone owner for a calendar entry |
|
442 |
* @param aCommonName It is the common name of the calendar user |
|
443 |
* @param aEmailAddress It is the email address of the calendar user |
|
444 |
* @return void |
|
445 |
*/ |
|
446 |
IMPORT_C void SetPhoneOwnerDataL( const TDesC& aPhoneOwner ); |
|
447 |
/** |
|
448 |
||
449 |
* Sets the organizer of a calendar entry of type appointment |
|
450 |
* @param aCommonName It is the common name of the group to which |
|
451 |
* this user belongs. |
|
452 |
* @param aEmailAddress It is the email address of the meeting organizer |
|
453 |
* @return void |
|
454 |
*/ |
|
455 |
IMPORT_C void SetOrganizerDataL( CAttendeeInfo* aPhoneOwner ); |
|
456 |
||
457 |
/** |
|
458 |
* Adds the attendees of a calendar entry of type appointment |
|
459 |
* @param aAttendee attendee for the appointment. Ownership is transfered |
|
460 |
* @return void |
|
461 |
*/ |
|
462 |
IMPORT_C void AddAttendeeL( CAttendeeInfo* aAttendee ); |
|
463 |
||
464 |
/** |
|
465 |
* Adds the out-of-sequence dates on which this entry occurs. |
|
466 |
* @param aRepeatDate date that we want to add to the original schedule. |
|
467 |
* @return void |
|
468 |
*/ |
|
469 |
IMPORT_C void AddRepeatDateL( const TTime& aRepeatDate ); |
|
470 |
||
471 |
/** |
|
472 |
* Adds the date that is to be exceptioned in the original schedule. |
|
473 |
* @param aExDate It is the date that we want to remove |
|
474 |
* from the original schedule. |
|
475 |
* @return void |
|
476 |
*/ |
|
477 |
IMPORT_C void AddExceptionDateL( const TTime& aExDate ); |
|
478 |
||
479 |
/** |
|
480 |
* Sets the summary for the calendar entry. |
|
481 |
* @param aSummary It is the summary that we want to set for the |
|
482 |
* calendar entry. |
|
483 |
* @return void |
|
484 |
*/ |
|
485 |
IMPORT_C void SetSummaryL( const TDesC& aSummary ); |
|
486 |
||
487 |
/** |
|
488 |
* Sets the description for the calendar entry. |
|
489 |
* @param aDescription It is the description that we want to set for the |
|
490 |
* calendar entry. |
|
491 |
* @return void |
|
492 |
*/ |
|
493 |
IMPORT_C void SetDescriptionL( const TDesC& aDescription ); |
|
494 |
||
495 |
/** |
|
496 |
* Sets the location for the calendar entry. |
|
497 |
* @param aLocation It is the location that we want to set for the |
|
498 |
* meeting entry. |
|
499 |
* @return void |
|
500 |
*/ |
|
501 |
IMPORT_C void SetLocationL( const TDesC& aLocation ); |
|
502 |
||
503 |
/** |
|
504 |
* Sets the method for the calendar entry. |
|
505 |
* @param aMethod It is the method that we want to set for the |
|
506 |
* meeting entry. |
|
507 |
* @return void |
|
508 |
*/ |
|
509 |
IMPORT_C void SetMethodL( const TDesC& aMethod ); |
|
510 |
||
511 |
/** |
|
512 |
* Sets the replication for the calendar entry. |
|
513 |
* @param aLocation It is the location that we want to set for the |
|
514 |
* meeting entry. |
|
515 |
* @return void |
|
516 |
*/ |
|
517 |
IMPORT_C void SetReplicationL( const TDesC& aRepStatus ); |
|
518 |
||
519 |
/** |
|
520 |
* Sets the priority for the calendar entry. |
|
521 |
* @param aLocation It is the location that we want to set for the |
|
522 |
* meeting entry. |
|
523 |
* @return Error code |
|
524 |
*/ |
|
525 |
IMPORT_C int SetPriority(const TInt aPriority ); |
|
526 |
||
527 |
/** |
|
528 |
* Sets the alarm for the calendar entry. |
|
529 |
* @param aAlarmTime It is the time that we want to set for the |
|
530 |
* entry alarm. |
|
531 |
* @return void |
|
532 |
*/ |
|
533 |
IMPORT_C void SetAlarm( const TTime& aAlarmTime); |
|
534 |
||
535 |
/** |
|
536 |
* Sets the local uid for the calendar entry. |
|
537 |
* @param aLocation It is the location that we want to set for the |
|
538 |
* meeting entry. |
|
539 |
* @return void |
|
540 |
*/ |
|
541 |
IMPORT_C void SetLocalUid( const TCalLocalUid aLUid); |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
542 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
543 |
* Sets the uid for the calendar entry. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
544 |
* @param aUid It is the uid of the entry to be modified |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
545 |
* @return void |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
546 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
547 |
IMPORT_C void SetUidL( const TDesC8& aUid ); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
548 |
|
19 | 549 |
|
550 |
/** |
|
551 |
* Gets the start time for the calendar entry. |
|
552 |
* @param aLocation It is the location that we want to set for the |
|
553 |
* meeting entry. |
|
554 |
* @return void |
|
555 |
*/ |
|
556 |
||
557 |
||
558 |
IMPORT_C TCalTime& StartTime(); |
|
559 |
||
560 |
/** |
|
561 |
* Sets the entry's repeat rule |
|
562 |
* @param aRptInfo It is the repeat rule information for this entry |
|
563 |
*/ |
|
564 |
IMPORT_C void SetRepeatRule( CRepeatInfo* aRptInfo); |
|
565 |
||
566 |
/** |
|
567 |
* Gets the end time for the calendar entry. |
|
568 |
* @return The end time for the calendar entry. |
|
569 |
*/ |
|
570 |
IMPORT_C TCalTime& EndTime(); |
|
571 |
||
572 |
/** |
|
573 |
* Gets the instance start time. |
|
574 |
* @return void The instance start time. |
|
575 |
*/ |
|
576 |
IMPORT_C TCalTime& InstanceStartTime(); |
|
577 |
||
578 |
/** |
|
579 |
* Gets the entry type for the calendar entry. |
|
580 |
* @return void The entry type for the calendar entry. |
|
581 |
*/ |
|
582 |
IMPORT_C CCalEntry::TType EntryType(); |
|
583 |
||
584 |
/** |
|
585 |
* Gets the sequence number for the calendar entry. |
|
586 |
* @return void The sequence number for the calendar entry. |
|
587 |
*/ |
|
588 |
IMPORT_C TInt SequenceNumber(); |
|
589 |
||
590 |
/** |
|
591 |
* Gets the entry status for the calendar entry. |
|
592 |
* @return void The entry status for the calendar entry. |
|
593 |
*/ |
|
594 |
IMPORT_C CCalEntry::TStatus EntryStatus(); |
|
595 |
||
596 |
/** |
|
597 |
* Gets the alarm time for the calendar entry. |
|
598 |
* @return void The alarm time for the calendar entry. |
|
599 |
*/ |
|
600 |
IMPORT_C TTime AlarmTime(); |
|
601 |
||
602 |
/** |
|
603 |
* Gets the phone owner for the calendar entry. |
|
604 |
* @return void The phone owner for the calendar entry. |
|
605 |
*/ |
|
606 |
IMPORT_C TPtrC PhoneOwner(); |
|
607 |
||
608 |
/** |
|
609 |
* Gets the method for the calendar entry. |
|
610 |
* @return void The method for the calendar entry |
|
611 |
*/ |
|
612 |
IMPORT_C CCalEntry::TMethod Method(); |
|
613 |
||
614 |
/** |
|
615 |
* Gets the organizer for the calendar entry. |
|
616 |
* @return void The organizer for the calendar entry. |
|
617 |
*/ |
|
618 |
IMPORT_C CCalUser* Organizer(); |
|
619 |
||
620 |
/** |
|
621 |
* Gets the list of attendees for the calendar entry. |
|
622 |
* @return RPointerArray<CCalAttendee>& |
|
623 |
*/ |
|
624 |
IMPORT_C RPointerArray<CCalAttendee>& AttendeeList(); |
|
625 |
||
626 |
/** |
|
627 |
* Gets the list of repeat dates for the calendar entry. |
|
628 |
* @return void |
|
629 |
*/ |
|
630 |
IMPORT_C RArray<TCalTime>& RepeatDates(); |
|
631 |
||
632 |
/** |
|
633 |
* Gets the exception dates for the calendar entry. |
|
634 |
* @return void |
|
635 |
*/ |
|
636 |
IMPORT_C RArray<TCalTime>& ExceptionDates(); |
|
637 |
||
638 |
/** |
|
639 |
* Gets the summary for the calendar entry. |
|
640 |
* @return void |
|
641 |
*/ |
|
642 |
IMPORT_C TPtrC Summary(); |
|
643 |
||
644 |
/** |
|
645 |
* Gets the description for the calendar entry. |
|
646 |
* @return void |
|
647 |
*/ |
|
648 |
IMPORT_C TPtrC Description(); |
|
649 |
||
650 |
/** |
|
651 |
* Gets the location for the calendar entry. |
|
652 |
* @return void |
|
653 |
*/ |
|
654 |
IMPORT_C TPtrC Location(); |
|
655 |
||
656 |
/** |
|
657 |
* Gets the priority for the calendar entry. |
|
658 |
* @return void |
|
659 |
*/ |
|
660 |
IMPORT_C TInt Priority(); |
|
661 |
||
662 |
/** |
|
663 |
* Gets the replication status for the calendar entry. |
|
664 |
* @return void |
|
665 |
*/ |
|
666 |
IMPORT_C CCalEntry::TReplicationStatus ReplicationStatus(); |
|
667 |
||
668 |
/** |
|
669 |
* Gets the repeat rule for the calendar entry. |
|
670 |
* @return void |
|
671 |
*/ |
|
672 |
IMPORT_C TCalRRule& RepeatRuleL(); |
|
673 |
||
674 |
/** |
|
675 |
* Gets the local uid for the calendar entry. |
|
676 |
* @return void |
|
677 |
*/ |
|
678 |
IMPORT_C TCalLocalUid LocalUid(); |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
679 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
680 |
* Gets the GlobalUid for the calendar entry. |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
681 |
* @return void |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
682 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
683 |
IMPORT_C TPtrC8 GlobalUid(); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
684 |
|
19 | 685 |
|
686 |
/** |
|
687 |
* Gets the attributes that have changed for the calendar entry. |
|
688 |
* @return A 32-bit integer indicating which attributes have been modified. |
|
689 |
*/ |
|
690 |
IMPORT_C TInt32 ModifiedAttributes(); |
|
691 |
||
692 |
private: |
|
693 |
||
694 |
/** |
|
695 |
* Constructor |
|
696 |
*/ |
|
697 |
CEntryAttributes(); |
|
698 |
||
699 |
/** |
|
700 |
* Constructor |
|
701 |
*/ |
|
702 |
void ConstructL( const TDesC& aType ); |
|
703 |
private: |
|
704 |
||
705 |
||
706 |
/** |
|
707 |
* Entry type: can be an appointment, to-do item, reminder, event or anniversary |
|
708 |
*/ |
|
709 |
CCalEntry::TType iType; |
|
710 |
||
711 |
/** |
|
712 |
* Start time of the entry |
|
713 |
*/ |
|
714 |
TCalTime iStartTime; |
|
715 |
||
716 |
/** |
|
717 |
* End time of the entry |
|
718 |
*/ |
|
719 |
TCalTime iEndTime; |
|
720 |
||
721 |
/** |
|
722 |
* Start time of the instance to be modified |
|
723 |
*/ |
|
724 |
TCalTime iInstanceStartTime; |
|
725 |
||
726 |
/** |
|
727 |
* Sequence number for the entry |
|
728 |
*/ |
|
729 |
TInt iSequenceNum; |
|
730 |
||
731 |
/** |
|
732 |
* Summary for the entry |
|
733 |
*/ |
|
734 |
HBufC* iSummary; |
|
735 |
||
736 |
/** |
|
737 |
* Description for the entry |
|
738 |
*/ |
|
739 |
HBufC* iDescription; |
|
740 |
||
741 |
/** |
|
742 |
* Location for entry of appointment type |
|
743 |
*/ |
|
744 |
HBufC* iLocation; |
|
745 |
||
746 |
/** |
|
747 |
* Alarm time for the entry |
|
748 |
*/ |
|
749 |
TTime iAlarmTime; |
|
750 |
||
751 |
/** |
|
752 |
* Status of the entry: valid for entries of "appointment" and "todo" type |
|
753 |
*/ |
|
754 |
CCalEntry::TStatus iEntryStatus; |
|
755 |
||
756 |
/** |
|
757 |
* Entry's method property for group scheduling |
|
758 |
*/ |
|
759 |
CCalEntry::TMethod iMethod; |
|
760 |
||
761 |
/** |
|
762 |
* Replication status of the entry |
|
763 |
*/ |
|
764 |
CCalEntry::TReplicationStatus iRepStatus; |
|
765 |
||
766 |
/** |
|
767 |
* Phone owner data for the entry: applicable only for entries of "appointment" type |
|
768 |
*/ |
|
769 |
HBufC* iPhoneOwner; |
|
770 |
||
771 |
/** |
|
772 |
* Organizer of an appointment entry |
|
773 |
*/ |
|
774 |
CCalUser* iOrganizer; |
|
775 |
||
776 |
/** |
|
777 |
* An array of out-of-sequence dates on which this entry repeats |
|
778 |
*/ |
|
779 |
RArray<TCalTime> iRepeatDates; |
|
780 |
||
781 |
/** |
|
782 |
* An array of exception dates i.e occurrences in the original schedule that |
|
783 |
* have been removed and may be replaced with a different occurrence |
|
784 |
*/ |
|
785 |
RArray<TCalTime> iExDates; |
|
786 |
||
787 |
/** |
|
788 |
* Array of attendees of an appointment entry |
|
789 |
*/ |
|
790 |
RPointerArray<CCalAttendee> iAttendees; |
|
791 |
||
792 |
/** |
|
793 |
* The entry's repeat definition: valid for repeating entries of "appointment" type |
|
794 |
*/ |
|
795 |
TCalRRule iRepeatRule; |
|
796 |
||
797 |
/** |
|
798 |
* Priority of the entry |
|
799 |
*/ |
|
800 |
TInt iPriority; |
|
801 |
||
802 |
/** |
|
803 |
* Local Uid of an entry which can uniquely identify entries having the same Global Uid |
|
804 |
*/ |
|
805 |
TCalLocalUid iLocal; |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
806 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
807 |
/** |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
808 |
* Global Uid of an entry which can uniquely identify entries having the same Global Uid |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
809 |
*/ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
810 |
HBufC8* iUid; |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
811 |
|
19 | 812 |
|
813 |
/** |
|
814 |
* Indicates which entries have new values for the update operation |
|
815 |
*/ |
|
816 |
TInt32 iSetAttributes; |
|
817 |
}; |
|
818 |
||
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
819 |
#endif __CALENDARENTRY_H |