author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 14 Sep 2010 21:17:03 +0300 | |
branch | RCL_3 |
changeset 31 | 97232defd20e |
parent 30 | bd7edf625bdd |
permissions | -rw-r--r-- |
30 | 1 |
/* |
2 |
* Copyright (c) 2006 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 "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: CalenEditorDataHandler implements all logic of checking and |
|
15 |
* validating editor data |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
||
20 |
#ifndef CALENEDITORDATAHANDLER_H |
|
21 |
#define CALENEDITORDATAHANDLER_H |
|
22 |
||
23 |
// system includes |
|
24 |
#include <e32base.h> |
|
25 |
#include <caltime.h> |
|
26 |
#include <calentry.h> |
|
27 |
#include <calinstanceview.h> |
|
28 |
#include <caleninstanceid.h> |
|
29 |
||
30 |
// user includes |
|
31 |
#include "calennotedatautil.h" |
|
32 |
||
33 |
// forward declaration |
|
34 |
class CCalenEntryUtil; |
|
35 |
class MCalenServices; |
|
36 |
||
37 |
/** |
|
38 |
* CCalenEditorDataHandler implements all logic of checking and validating editor data. |
|
39 |
* |
|
40 |
* Necessary checks and validations are specificed in UI spec. |
|
41 |
* CCalenEditorIt doesn't contain any dependencies to UI classes, so logic can be |
|
42 |
* unit-tested more easily. |
|
43 |
* |
|
44 |
* @lib CalenDefaultEditors.dll |
|
45 |
* @since S60 v3.0 |
|
46 |
*/ |
|
47 |
class CCalenEditorDataHandler : public CBase |
|
48 |
{ |
|
49 |
public: |
|
50 |
enum TError |
|
51 |
{ |
|
52 |
EFormErrNone, |
|
53 |
EFormErrAlarmTimeLaterThanNote, |
|
54 |
EFormErrAlarmTimePast, |
|
55 |
EFormErrAlarmDateTooManyDaysBeforeNote, |
|
56 |
EFormErrRepeatUntilEarlierThanNote, |
|
57 |
EFormErrDurationGreaterThanRepeatInterval, |
|
58 |
EFormErrStopTimeEarlierThanStartTime, |
|
59 |
EFormErrCancelSaveRepNoteWhenStartChange, // FIXME should be removed |
|
60 |
EFormErrCancelChangeRepeatingNote, // FIXME should be removed |
|
61 |
EFormErrDbConflictEntryDeleted, |
|
62 |
EFormErrDbConflictEntryModified, |
|
63 |
EFormErrOutOfSequence, |
|
64 |
EFormErrOverlapsExistingInstance, |
|
65 |
EFormErrInstanceAlreadyExistsOnThisDay |
|
66 |
}; |
|
67 |
||
68 |
enum TAction |
|
69 |
{ |
|
70 |
EActionNothing, |
|
71 |
EActionSave, |
|
72 |
EActionDelete |
|
73 |
}; |
|
74 |
public: |
|
75 |
/** |
|
76 |
* @param aEntry that is being edited. Is modified only after call to |
|
77 |
* WriteChangesToEntryL function. |
|
78 |
* @param aInstanceDateTime time of instance that is edited |
|
79 |
* @param aMaxTextEditorLength text editors have max length depending |
|
80 |
* on variant, but data in database can be longer. |
|
81 |
* We need this information to compare those fields correctly. |
|
82 |
*/ |
|
83 |
static CCalenEditorDataHandler* NewL(CCalEntry& aEntry, |
|
84 |
const TCalTime& aInstanceDateTime, |
|
85 |
TBool aIsCreatingNew, |
|
86 |
TInt aMaxTextEditorLength, |
|
87 |
MCalenServices& aServices, |
|
88 |
RArray<TInt>& aCollectionIds); |
|
89 |
||
90 |
virtual ~CCalenEditorDataHandler(); |
|
91 |
||
92 |
/** |
|
93 |
* @brief Edited data. Data that is currently edited in form |
|
94 |
* @return CCalenEntryUtil, Edited entry data |
|
95 |
*/ |
|
96 |
CCalenEntryUtil& Edited(); |
|
97 |
||
98 |
/** |
|
99 |
* @brief Original data. Data that was original set to form. |
|
100 |
* @return CCalenEntryUtil, Original entry data |
|
101 |
*/ |
|
102 |
const CCalenEntryUtil& Original() const; |
|
103 |
||
104 |
/** |
|
105 |
* @brief Do not modify entry! Use WriteChangesToEntryL and access |
|
106 |
* entry after that. |
|
107 |
* @return CCalEntry |
|
108 |
*/ |
|
109 |
CCalEntry& Entry(); |
|
110 |
||
111 |
/** |
|
112 |
* @brief To Return the instance date/time. |
|
113 |
* @return TCalTime |
|
114 |
*/ |
|
115 |
const TCalTime& InstanceDateTime() const; |
|
116 |
||
117 |
/** |
|
118 |
* @brief check is child entry |
|
119 |
* @return ETrue if entry is child. |
|
120 |
*/ |
|
121 |
TBool IsChildL() const; |
|
122 |
||
123 |
/** |
|
124 |
* @brief write all changed fields to entry |
|
125 |
* @param aRepeatTarget |
|
126 |
*/ |
|
127 |
void WriteChangesToEntryL( CalCommon::TRecurrenceRange aRepeatTarget = CalCommon::EThisAndAll ); |
|
128 |
||
129 |
/** |
|
130 |
* @brief To deside Shoud entry be saved or deleted. Entry should be saved, |
|
131 |
* if it is edited. However, if subject and location fields has been |
|
132 |
* cleared, it should be deleted. Otherwise nothing should be done. |
|
133 |
*/ |
|
134 |
TAction ShouldSaveOrDeleteOrDoNothingL(); |
|
135 |
||
136 |
/** |
|
137 |
* @brief checks if non text fields AND/OR Description field are edited |
|
138 |
*/ |
|
139 |
TBool IsEditedOtherThanSubjectAndLocation(); |
|
140 |
||
141 |
/** |
|
142 |
* @brief checks if non text fields are edited |
|
143 |
* @return ETrue if non-text fields are edited else EFalse |
|
144 |
*/ |
|
145 |
TBool NonTextFieldsEditedL(); |
|
146 |
||
147 |
/** |
|
148 |
* @brief checks if text fields are edited |
|
149 |
* @return ETrue if text fields are edited else EFalse |
|
150 |
*/ |
|
151 |
TBool TextFieldsEdited(); |
|
152 |
||
153 |
/** |
|
154 |
* @brief compares data to original data and checks if any field is edited. |
|
155 |
* @return ETrue if entry data edited, else EFalse |
|
156 |
*/ |
|
157 |
TBool IsEditedL(); |
|
158 |
||
159 |
/** |
|
160 |
* @brief checks data for errors and returns enumeration that describes error |
|
161 |
* type. These checks are specified in UI spec under |
|
162 |
* chapter 4.7.7.2.1 Checking Fields Before Saving, and are used when user |
|
163 |
* presses 'Done' and tries to save entry. |
|
164 |
* |
|
165 |
* Called either when repeat type has not yet been chosen (S60 3.1 and prior) |
|
166 |
* or when editing EThisAndAll. |
|
167 |
*/ |
|
168 |
TError CheckErrorsForThisAndAllL(); |
|
169 |
||
170 |
/** |
|
171 |
* @brief checks data for errors and returns enumeration |
|
172 |
* that describes error type. These checks are specified in UI spec under |
|
173 |
* chapter 4.7.7.2.1 Checking Fields Before Saving, and are used when user |
|
174 |
* presses 'Done' and tries to save entry. |
|
175 |
* |
|
176 |
* Only called when editing EThisOnly. |
|
177 |
*/ |
|
178 |
TError CheckErrorsForThisOnlyL( CCalEntry& aParentEntry, |
|
179 |
CCalInstanceView& aInstanceView); |
|
180 |
||
181 |
/** |
|
182 |
* @brief checks validity of data and forces valid values |
|
183 |
* to fields, if they have errors. These checks are specified in UI spec |
|
184 |
* under chapter 4.6.4.1 Exiting Note Editor, and are used when editors |
|
185 |
* are forced to exit without anymore user interaction. These situations |
|
186 |
* include: - user selects Exit from Options menu |
|
187 |
* - user presses Red key |
|
188 |
* - power is turned-off |
|
189 |
* - application is closed by OS in OOM situation |
|
190 |
* - application is closed by OS when restoring data |
|
191 |
* |
|
192 |
||
193 |
*/ |
|
194 |
void ForceValidValuesL( CalCommon::TRecurrenceRange aRepeatTarget ); |
|
195 |
||
196 |
/** |
|
197 |
* @brief check whether timed entry |
|
198 |
* @return ETrue if timed entry, else EFalse |
|
199 |
*/ |
|
200 |
TBool IsTimedEntry() const; |
|
201 |
||
202 |
/** |
|
203 |
* @brief check if summary edited |
|
204 |
* @return ETrue if summary edited, else EFalse |
|
205 |
*/ |
|
206 |
TBool IsSummaryEdited(); |
|
207 |
||
208 |
/** |
|
209 |
* @brief check if Location edited |
|
210 |
* @return ETrue if Location edited, else EFalse |
|
211 |
*/ |
|
212 |
TBool IsLocationEdited(); |
|
213 |
||
214 |
/** |
|
215 |
* @brief check if Alarm edited |
|
216 |
* @return ETrue if Alarm edited, else EFalse |
|
217 |
*/ |
|
218 |
TBool IsAlarmEditedL(); |
|
219 |
||
220 |
/** |
|
221 |
* @brief check if RepeatRule edited |
|
222 |
* @return ETrue if RepeatRule edited, else EFalse |
|
223 |
*/ |
|
224 |
TBool IsRepeatRuleEdited(); |
|
225 |
||
226 |
/** |
|
227 |
* @brief check if EntryType edited |
|
228 |
* @return ETrue if EntryType edited, else EFalse |
|
229 |
*/ |
|
230 |
TBool IsEntryTypeEdited(); |
|
231 |
/** |
|
232 |
* @brief check if StartDateTime edited |
|
233 |
* @return ETrue if StartDateTime edited, else EFalse |
|
234 |
*/ |
|
235 |
TBool IsStartDateTimeEdited(); |
|
236 |
||
237 |
/** |
|
238 |
* @brief check if EndDateTime edited |
|
239 |
* @return ETrue if EndDateTime edited, else EFalse |
|
240 |
*/ |
|
241 |
TBool IsEndDateTimeEdited(); |
|
242 |
||
243 |
/** |
|
244 |
* @brief check if Description edited |
|
245 |
* @return ETrue if Description edited, else EFalse |
|
246 |
*/ |
|
247 |
TBool IsDescriptionEdited(); |
|
248 |
||
249 |
/** |
|
250 |
* @brief check if Priority edited |
|
251 |
* @return ETrue if Priority edited, else EFalse |
|
252 |
*/ |
|
253 |
TBool IsPriorityEdited(); |
|
254 |
||
255 |
/** |
|
256 |
* @brief Returns ETrue if the calendar filed has been edited, EFalse otherwise. |
|
257 |
*/ |
|
258 |
TBool IsCalendarEditedL(); |
|
259 |
||
260 |
/** |
|
261 |
* @brief compares just date of edited and original start datetime. It is needed |
|
262 |
* when changing start date of repeating event |
|
263 |
*/ |
|
264 |
TBool IsStartDateChanged(); |
|
265 |
||
266 |
/** |
|
267 |
* @brief Returns ETrue if attachment exists |
|
268 |
*/ |
|
269 |
TBool IsAttachmentExists(); |
|
270 |
||
271 |
/** |
|
272 |
* @brief Returns ETrue if EventType field modified for already saved entry |
|
273 |
*/ |
|
274 |
TBool IsEventTypeEdited(); |
|
275 |
||
276 |
/** |
|
277 |
* @brief Returns if the `All day event' field is modified or not. |
|
278 |
* |
|
279 |
* @return ETrue if modified, EFalse otherwise. |
|
280 |
*/ |
|
281 |
TBool AllDayFieldEdited(); |
|
31
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
282 |
|
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
283 |
/** |
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
284 |
* @brief Returns if the `Lunar event' field is modified or not. |
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
285 |
* |
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
286 |
* @return ETrue if modified, EFalse otherwise. |
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
287 |
*/ |
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
288 |
TBool LunarFieldEdited(); |
30 | 289 |
|
290 |
/** |
|
291 |
* @brief To set default Alarm date time. |
|
292 |
*/ |
|
293 |
void SetDefaultAlarmDateTimeL(); // might need to be public |
|
294 |
||
295 |
/** |
|
296 |
* @brief Returns true if both summary and location are empty. |
|
297 |
* If UI doesn't support location for edited entry type(e.g. anniversaries), |
|
298 |
* it's enough for summary to be empty |
|
299 |
*/ |
|
300 |
TBool AreTextFieldsEmptyL(); |
|
301 |
||
302 |
/** |
|
303 |
* @brief Reset original editor data |
|
304 |
*/ |
|
305 |
void ResetOriginalDataL(); |
|
306 |
||
307 |
/** |
|
308 |
* @brief To set the entry type of handler data |
|
309 |
*/ |
|
310 |
void SetEntryType( CCalEntry::TType aNewEntryType ); |
|
311 |
||
312 |
/** |
|
313 |
* @brief Returns ETrue if the entry should use floating time, EFalse otherwise. |
|
314 |
*/ |
|
315 |
TBool UseFloatingTimeL() const; |
|
316 |
||
317 |
/** |
|
318 |
* @brief Returns the instance id of the instance being edited currently. |
|
319 |
* @return TCalenInstanceId |
|
320 |
*/ |
|
321 |
const TCalenInstanceId CalenInstanceId(); |
|
322 |
||
323 |
private: |
|
324 |
||
325 |
/** |
|
326 |
* @brief default constrecture |
|
327 |
*/ |
|
328 |
CCalenEditorDataHandler( CCalEntry& aEntry, |
|
329 |
const TCalTime& aInstanceDateTime, |
|
330 |
TBool aIsCreatingNew, |
|
331 |
TInt aMaxTextEditorLength, |
|
332 |
MCalenServices& aServices, |
|
333 |
RArray<TInt>& aCollectionIds); |
|
334 |
||
335 |
/** |
|
336 |
* @brief two-phase constrecture |
|
337 |
*/ |
|
338 |
void ConstructL(); |
|
339 |
||
340 |
/** |
|
341 |
* @brief Check whether Text fields cleared |
|
342 |
*/ |
|
343 |
TBool AreTextFieldsClearedL(); |
|
344 |
||
345 |
/** |
|
346 |
* @brief Returns ETrue if the location is a valid field for this type of entry |
|
347 |
*/ |
|
348 |
TBool LocationEnabledInUiL(); |
|
349 |
||
350 |
||
351 |
/** |
|
352 |
* @brief Sets the default values when creating a new entry. |
|
353 |
* @param aData |
|
354 |
*/ |
|
355 |
void SetDefaultNewValuesL( CCalenEntryUtil& aData ); |
|
356 |
||
357 |
/** |
|
358 |
* @brief Calculates the repeat rule for a given entry. |
|
359 |
* @param aStartDateTime |
|
360 |
* @param aNewREpeatType |
|
361 |
* @param aRepeatUntil |
|
362 |
* @param aRRule |
|
363 |
*/ |
|
364 |
void CalculateRepeatRuleL( const TTime& aStartDateTime, |
|
365 |
TCalenRepeatIndex aNewRepeatType, |
|
366 |
const TTime& aRepeatUntil, |
|
367 |
TCalRRule& aRRule); |
|
368 |
||
369 |
/** |
|
370 |
* @brief Writes the start and end times from the form to the CCalEntry. |
|
371 |
* @param aRepeatTarget |
|
372 |
*/ |
|
373 |
void WriteStartAndEndTimesToEntryL( CalCommon::TRecurrenceRange aRepeatTarget ); |
|
374 |
||
375 |
/** |
|
376 |
* @brief Applys a new repeat until date to the past repeat rule. |
|
377 |
* @param aRule, |
|
378 |
* @param aRepeatUntil, Time upto which rule should be repeated. |
|
379 |
*/ |
|
380 |
void ApplyUntilDateToRRuleL( TCalRRule& aRule, const TTime& aRepeatUntil ) const; |
|
381 |
||
382 |
/** |
|
383 |
* @brief To check whether entry duration is greater than repeat interval |
|
384 |
* @return ETrue if the duration of instances of the meeting is greater than |
|
385 |
*/ |
|
386 |
TBool DurationGreaterThanRepeatIntervalError(); |
|
387 |
||
388 |
/** |
|
389 |
* @brief Checks to see if the instance is being moved out of sequence, relative |
|
390 |
* to the rest of the series. |
|
391 |
*/ |
|
392 |
TError CheckForOutOfSequenceL(); |
|
393 |
||
394 |
/** |
|
395 |
* @brief Check the alarm fields for errors. |
|
396 |
* @param aSerief |
|
397 |
* @return the error if found, or EFormErrNone if no error found. |
|
398 |
*/ |
|
399 |
TError CheckAlarmFieldsForErrorsL(TBool aSeries = EFalse); |
|
400 |
||
401 |
/** |
|
402 |
* @brief Gets the start and end times of the next instance. Sets both to a null |
|
403 |
* time if there is no instance after the current one. |
|
404 |
* @param aNextStartTime |
|
405 |
* @param aNextEndTime |
|
406 |
*/ |
|
407 |
void GetNextInstanceTimeL( TCalTime& aNextStartTime, TCalTime& aNextEndTime ); |
|
408 |
||
409 |
/** |
|
410 |
* @brief Gets the start and end times of the previous instance. Sets both to a |
|
411 |
* null time if there is no instance after the current one. |
|
412 |
* @param aPreviousStartTime |
|
413 |
* @param aPreviousEndTime |
|
414 |
*/ |
|
415 |
void GetPreviousInstanceTimeL( TCalTime& aPreviousStartTime, |
|
416 |
TCalTime& aPreviousEndTime ); |
|
417 |
||
418 |
/** |
|
419 |
* @brief Chaeck whether entry is ToDo |
|
420 |
* @return Returns ETrue if the entry is ToDo, returns EFalse otherwise |
|
421 |
*/ |
|
422 |
TBool IsToDo() const; |
|
423 |
||
424 |
/** |
|
425 |
* @brief Returns ETrue if the entry was already created previously so that |
|
426 |
* we are now editing it, returns EFalse otherwise. |
|
427 |
*/ |
|
428 |
TBool IsOldEntry(); |
|
429 |
||
430 |
/** |
|
431 |
* @brief Returns ETrue, the summary was not empty in original && is empty |
|
432 |
* in the edited note, returns EFalse, otherwise |
|
433 |
*/ |
|
434 |
TBool IsSummaryEmptied(); |
|
435 |
||
436 |
/** |
|
437 |
* @brief Returns ETrue, the location was not empty in original && is empty |
|
438 |
* in the edited note, returns EFalse, otherwise |
|
439 |
*/ |
|
440 |
TBool IsLocationEmptied(); |
|
441 |
||
442 |
/** |
|
443 |
* @brief Returns ETrue, the description was not empty in original && is empty |
|
444 |
* in the edited note, returns EFalse, otherwise |
|
445 |
*/ |
|
446 |
TBool IsDescriptionEmptied(); |
|
447 |
||
448 |
/** |
|
449 |
* @brief Checks if aAlarmTime is 31 days from aStartTime, |
|
450 |
* then sets aError to EFormErrAlarmDateTooManyDaysBeforeNote and returns EFalse |
|
451 |
* Checks if aAlarmTime is later aStartTime, |
|
452 |
* then sets aError to EFormErrAlarmTimeLaterThanNote and returns EFalse |
|
453 |
* returns ETrue otherwise, aError untouched |
|
454 |
*/ |
|
455 |
TBool IsAlarmInAcceptablePeriod(TError& aError, const TTime& aAlarmTime, const TTime& aStartTime) const; |
|
456 |
||
457 |
/* |
|
458 |
* @brief Get EntryView using MCalenService |
|
459 |
* @return referance CCalEntryView |
|
460 |
*/ |
|
461 |
CCalEntryView& EntryViewL(); |
|
462 |
||
463 |
/** |
|
464 |
* @brief Get referance to InstanceView using MCalenService |
|
465 |
* @return CCalInstanceView |
|
466 |
*/ |
|
467 |
CCalInstanceView& InstanceViewL(); |
|
468 |
||
469 |
/** |
|
470 |
* @brief Get previous instance for repeating event |
|
471 |
* @return Returns TTime of previous instance of a repeating event when repeat type is ERepeatOther |
|
472 |
* returns NULLTime when not suitable pevious instance is not found |
|
473 |
*/ |
|
474 |
TTime GetPreviousInstanceForRepeatOtherL(CCalEntry& aEntry, const CalCommon::TCalTimeRange& timeRange); |
|
475 |
||
476 |
/* |
|
477 |
* @brief Get next instance of a reapeating event |
|
478 |
* @return TTime of next instance of a repeating event when repeat type is ERepeatOther |
|
479 |
* returns NULLTime when not suitable next instance is not found |
|
480 |
*/ |
|
481 |
TTime GetNextInstanceForRepeatOtherL(CCalEntry& aEntry, const CalCommon::TCalTimeRange& timeRange); |
|
482 |
||
483 |
/** |
|
484 |
* @brief add attachments to the entry as ccalattachments |
|
485 |
*/ |
|
486 |
void AddAttachementsToEntryL(); |
|
487 |
||
488 |
||
489 |
public: |
|
490 |
/** |
|
491 |
* @brief Returns ETrue if the user is creating a new entry, EFalse if the user |
|
492 |
* is editing an existing entry. |
|
493 |
*/ |
|
494 |
TBool IsCreatingNew() const; |
|
495 |
||
496 |
/** |
|
497 |
* @brief Set if calendar is been edited or not with previous and current collection id |
|
498 |
* @param TBool aEdited calendar edited or not |
|
499 |
* @param TCalCollectionId aPreviousColId previous collection id |
|
500 |
* @param TCalCollectionId aCurrentColId current collection id |
|
501 |
*/ |
|
502 |
void SetCalendarFieldEditedL(TBool aEdited, |
|
503 |
TCalCollectionId aPreviousColId, |
|
504 |
TCalCollectionId aCurrentColId); |
|
505 |
||
506 |
/* |
|
507 |
* Get previous collection id |
|
508 |
*/ |
|
509 |
TCalCollectionId PreviousDbCollectionId(); |
|
510 |
||
511 |
/* |
|
512 |
* Get current collection id |
|
513 |
*/ |
|
514 |
TCalCollectionId CurrentDbCollectionId(); |
|
515 |
||
516 |
private: // data |
|
517 |
||
518 |
/** |
|
519 |
* @var iEntry |
|
520 |
* @brief This should not be modified anywhere else than WriteChangesToEntryL |
|
521 |
* function. |
|
522 |
*/ |
|
523 |
CCalEntry& iEntry; |
|
524 |
||
525 |
/** |
|
526 |
* @var iInstanceDateTime |
|
527 |
* @brief Date and time of instance. This defines what instance of entry |
|
528 |
* is currently edited |
|
529 |
*/ |
|
530 |
const TCalTime& iInstanceDateTime; |
|
531 |
||
532 |
/** |
|
533 |
* @var iRecurrenceId |
|
534 |
*/ |
|
535 |
TCalTime iRecurrenceId; |
|
536 |
||
537 |
/** |
|
538 |
* @var iEntryType |
|
539 |
* @brief Entry type, stored from iEntry |
|
540 |
*/ |
|
541 |
CCalEntry::TType iEntryType; |
|
542 |
||
543 |
/** |
|
544 |
* @var iIsCreatingNew |
|
545 |
* @brief iIsCreatingNew is true if user is creating totally new entry |
|
546 |
*/ |
|
547 |
TBool iIsCreatingNew; |
|
548 |
||
549 |
/** |
|
550 |
* @var iEdited |
|
551 |
* @brief Edited entry data |
|
552 |
*/ |
|
553 |
CCalenEntryUtil* iEdited; |
|
554 |
||
555 |
/** |
|
556 |
* @var iOrigianl |
|
557 |
* @brief Original entry data |
|
558 |
*/ |
|
559 |
CCalenEntryUtil* iOriginal; |
|
560 |
||
561 |
/** |
|
562 |
* @var iMaxTextEditorLength |
|
563 |
* @brief Max length of text in editors. This is needed when comparing |
|
564 |
* subject and location. |
|
565 |
*/ |
|
566 |
TInt iMaxTextEditorLength; |
|
567 |
||
568 |
/** |
|
569 |
* @var iServices |
|
570 |
* @brief referance to MCalenServices |
|
571 |
*/ |
|
572 |
MCalenServices& iServices; |
|
573 |
||
574 |
/* |
|
575 |
* @var iPreviousDbColId |
|
576 |
* @brief previous collection id |
|
577 |
*/ |
|
578 |
TCalCollectionId iPreviousDbColId; |
|
579 |
||
580 |
/* |
|
581 |
* @var iCurrentDbColId |
|
582 |
* @brief current collection id after editing |
|
583 |
*/ |
|
584 |
TCalCollectionId iCurrentDbColId; |
|
585 |
||
586 |
||
587 |
/* |
|
588 |
* @var iCalendarFieldEdited |
|
589 |
* @brief Status of calendar been edited or not |
|
590 |
*/ |
|
591 |
TBool iCalendarFieldEdited; |
|
592 |
||
593 |
||
594 |
/* |
|
595 |
* @var iCollectionIds |
|
596 |
* @brief collection ids for calendars |
|
597 |
*/ |
|
598 |
RArray<TInt>& iCollectionIds; |
|
599 |
||
600 |
/** |
|
601 |
* @var iInstanceId |
|
602 |
* @brief Holds the id of the instance which is being edited currently. |
|
603 |
*/ |
|
604 |
TCalenInstanceId iInstanceId; |
|
31
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
605 |
|
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
606 |
|
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
607 |
/** |
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
608 |
* True if FeatureManager is initialized. |
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
609 |
*/ |
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
610 |
TBool iFeatMgrInitialized; |
97232defd20e
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
611 |
|
30 | 612 |
}; |
613 |
||
614 |
#endif // CALENEDITORDATAHANDLER_H |
|
615 |
||
616 |
// End of File |