meetingrequest/mrgui/inc/cesmrtodotimevalidator.h
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     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".
    30 
    30 
    31 class MESMRCalEntry;
    31 class MESMRCalEntry;
    32 class CEikTimeEditor;
    32 class CEikTimeEditor;
    33 class CEikDateEditor;
    33 class CEikDateEditor;
    34 class MESMRMeetingRequestEntry;
    34 class MESMRMeetingRequestEntry;
       
    35 class MMRAbsoluteAlarmController;
    35 
    36 
    36 /**
    37 /**
    37  * Wrapper class handles sanity checks for date/time fields.
    38  * Wrapper class handles sanity checks for date/time fields.
    38  * For example start date can not be after end date.
    39  * For example start date can not be after end date.
    39  * this calss deals with the cheks for To-do option
    40  * this calss deals with the cheks for To-do option
    79             CEikTimeEditor& aAlarmTime );
    80             CEikTimeEditor& aAlarmTime );
    80     void SetAlarmDateFieldL(
    81     void SetAlarmDateFieldL(
    81             CEikDateEditor& aAlarmDate );
    82             CEikDateEditor& aAlarmDate );
    82      void SetRecurrenceUntilDateFieldL(
    83      void SetRecurrenceUntilDateFieldL(
    83                 CEikDateEditor& aRecurrenceUntil );
    84                 CEikDateEditor& aRecurrenceUntil );
       
    85      void SetAbsoluteAlarmOnOffFieldL( 
       
    86              MMRAbsoluteAlarmController& aAbsoluteAlarmController ); 
    84     void StartTimeChangedL();
    87     void StartTimeChangedL();
    85     void EndTimeChangedL();
    88     void EndTimeChangedL();
    86     void StartDateChandedL();
    89     void StartDateChandedL();
    87     void EndDateChangedL();
    90     void EndDateChangedL();
    88     void AlarmTimeChangedL();
    91     void AlarmTimeChangedL();
   108     void DrawEditorsDeferred();
   111     void DrawEditorsDeferred();
   109     TDateTime DueStartDateL();
   112     TDateTime DueStartDateL();
   110     TDateTime DueDateTimeL();
   113     TDateTime DueDateTimeL();
   111     TDateTime AlarmDateTimeL();
   114     TDateTime AlarmDateTimeL();
   112     void ForceValuesL();
   115     void ForceValuesL();
       
   116     TBool IsModifiedL( MESMRCalEntry& aEntry );
   113 
   117 
   114 private:
   118 private:
   115     /// Ref: Start date editor.
   119     /// Ref: Start date editor.
   116     CEikDateEditor* iDueDate;
   120     CEikDateEditor* iDueDate;
   117     /// Ref: Alarm time editor
   121     /// Ref: Alarm time editor
   124     TTime iCurrentAlarmTime;
   128     TTime iCurrentAlarmTime;
   125     /// Own: Flag for amarm on/off.
   129     /// Own: Flag for amarm on/off.
   126     TBool iAlarmOnOff;
   130     TBool iAlarmOnOff;
   127     /// Ref: Entry being handled
   131     /// Ref: Entry being handled
   128     MESMRCalEntry* iEntry;
   132     MESMRCalEntry* iEntry;
       
   133     /// Own: Saves initial alarm time, for later comparisons
       
   134     TTime iInitialAlarmTime;
       
   135     /// Own: Saves initial alarm date, for later comparisons
       
   136     TTime iInitialAlarmDate;
       
   137     /// Own: Saves initial alarm on off, for later comparisons
       
   138     TBool iInitialAlarmOnOff;
       
   139     /// Own: Saves initial due date, for later comparisons
       
   140     TTime iInitialDueDate;
   129     };
   141     };
   130 
   142 
   131 #endif  // CESMRTODOTIMEVALIDATOR_H
   143 #endif  // CESMRTODOTIMEVALIDATOR_H
   132 
   144