equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
27 #include "mesmrfieldvalidator.h" |
27 #include "mesmrfieldvalidator.h" |
28 |
28 |
29 class MESMRCalEntry; |
29 class MESMRCalEntry; |
30 class CEikTimeEditor; |
30 class CEikTimeEditor; |
31 class CEikDateEditor; |
31 class CEikDateEditor; |
|
32 class MMRAbsoluteAlarmController; |
32 |
33 |
33 /** |
34 /** |
34 * Wrapper class handles sanity checks for date/time fields on Anniversary |
35 * Wrapper class handles sanity checks for date/time fields on Anniversary |
35 * Entry. For example start date can not be after end date. |
36 * Entry. For example start date can not be after end date. |
36 * this calss deals with the cheks for To-do option |
37 * this calss deals with the cheks for To-do option |
73 CEikDateEditor& aEndDate ); |
74 CEikDateEditor& aEndDate ); |
74 void SetAlarmTimeFieldL( |
75 void SetAlarmTimeFieldL( |
75 CEikTimeEditor& aAlarmTime ); |
76 CEikTimeEditor& aAlarmTime ); |
76 void SetAlarmDateFieldL( |
77 void SetAlarmDateFieldL( |
77 CEikDateEditor& aAlarmDate ); |
78 CEikDateEditor& aAlarmDate ); |
78 void SetRecurrenceUntilDateFieldL( |
79 void SetRecurrenceUntilDateFieldL( |
79 CEikDateEditor& aRecurrenceUntil ); |
80 CEikDateEditor& aRecurrenceUntil ); |
|
81 void SetAbsoluteAlarmOnOffFieldL( |
|
82 MMRAbsoluteAlarmController& aAbsoluteAlarmController ); |
80 void StartTimeChangedL(); |
83 void StartTimeChangedL(); |
81 void EndTimeChangedL(); |
84 void EndTimeChangedL(); |
82 void StartDateChandedL(); |
85 void StartDateChandedL(); |
83 void EndDateChangedL(); |
86 void EndDateChangedL(); |
84 void AlarmTimeChangedL(); |
87 void AlarmTimeChangedL(); |
103 void PreValidateEditorContentL(); |
106 void PreValidateEditorContentL(); |
104 void DrawEditorsDeferred(); |
107 void DrawEditorsDeferred(); |
105 TDateTime StartTimeL(); |
108 TDateTime StartTimeL(); |
106 TDateTime AlarmTimeL(); |
109 TDateTime AlarmTimeL(); |
107 void ForceValuesL(); |
110 void ForceValuesL(); |
|
111 TBool IsModifiedL( MESMRCalEntry& aEntry ); |
108 |
112 |
109 private: |
113 private: |
110 /// Ref: Start date editor. |
114 /// Ref: Start date editor. |
111 CEikDateEditor* iStartDate; |
115 CEikDateEditor* iStartDate; |
112 /// Ref: Alarm time editor |
116 /// Ref: Alarm time editor |
119 TTime iCurrentAlarmTime; |
123 TTime iCurrentAlarmTime; |
120 /// Own: Flag for amarm on/off. |
124 /// Own: Flag for amarm on/off. |
121 TBool iAlarmOnOff; |
125 TBool iAlarmOnOff; |
122 /// Ref: Entry being handled |
126 /// Ref: Entry being handled |
123 MESMRCalEntry* iEntry; |
127 MESMRCalEntry* iEntry; |
|
128 /// Own: Saves initial alarm time, for later comparisons |
|
129 TTime iInitialAlarmTime; |
|
130 /// Own: Saves initial alarm date, for later comparisons |
|
131 TTime iInitialAlarmDate; |
|
132 /// Own: Saves initial alarm on off, for later comparisons |
|
133 TBool iInitialAlarmOnOff; |
|
134 /// Own: Saves initial due date, for later comparisons |
|
135 TTime iInitialStartDate; |
124 }; |
136 }; |
125 |
137 |
126 #endif // CESMRANNIVTIMEVALIDATOR_H |
138 #endif // CESMRANNIVTIMEVALIDATOR_H |