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