meetingrequest/mrgui/inc/cesmrmeetingtimevalidator.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".
    28 
    28 
    29 class CCalEntry;
    29 class CCalEntry;
    30 class CEikTimeEditor;
    30 class CEikTimeEditor;
    31 class CEikDateEditor;
    31 class CEikDateEditor;
    32 class MESMRCalEntry;
    32 class MESMRCalEntry;
       
    33 class MMRAbsoluteAlarmController;
    33 
    34 
    34 /**
    35 /**
    35  * Validator for meetings.
    36  * Validator for meetings.
    36  *
    37  *
    37  * @lib esmrgui.lib
    38  * @lib esmrgui.lib
    71             CEikDateEditor& aEndDate );
    72             CEikDateEditor& aEndDate );
    72     void SetAlarmTimeFieldL(
    73     void SetAlarmTimeFieldL(
    73             CEikTimeEditor& aAlarmTime );
    74             CEikTimeEditor& aAlarmTime );
    74     void SetAlarmDateFieldL(
    75     void SetAlarmDateFieldL(
    75             CEikDateEditor& aAlarmDate );
    76             CEikDateEditor& aAlarmDate );
    76      void SetRecurrenceUntilDateFieldL(
    77     void SetRecurrenceUntilDateFieldL(
    77                 CEikDateEditor& aRecurrenceUntil );
    78             CEikDateEditor& aRecurrenceUntil );
       
    79     void SetAbsoluteAlarmOnOffFieldL( 
       
    80             MMRAbsoluteAlarmController& aAbsoluteAlarmController ); 
    78     void StartTimeChangedL();
    81     void StartTimeChangedL();
    79     void EndTimeChangedL();
    82     void EndTimeChangedL();
    80     void StartDateChandedL();
    83     void StartDateChandedL();
    81     void EndDateChangedL();
    84     void EndDateChangedL();
    82     void AlarmTimeChangedL();
    85     void AlarmTimeChangedL();
    93             TESMRRecurrenceValue aRecurrence );
    96             TESMRRecurrenceValue aRecurrence );
    94     void RecurrenceEndDateChangedL();
    97     void RecurrenceEndDateChangedL();
    95     TBool IsRelativeAlarmValid(
    98     TBool IsRelativeAlarmValid(
    96             TTimeIntervalMinutes aAlarmTimeOffset );
    99             TTimeIntervalMinutes aAlarmTimeOffset );
    97     void SetFieldEventQueue( MESMRFieldEventQueue* aEventQueue );
   100     void SetFieldEventQueue( MESMRFieldEventQueue* aEventQueue );
    98 
   101     MESMRFieldValidator::TESMRFieldValidatorError ValidateEditedInstanceTimeL();
    99 private: // Implementation
   102 private: // Implementation
   100     CESMRMeetingTimeValidator();
   103     CESMRMeetingTimeValidator();
   101     TInt PreValidateEditorContent();
   104     TInt PreValidateEditorContent();
   102     void PreValidateEditorContentL();
   105     void PreValidateEditorContentL();
   103     void HandleStartTimeChangeL();
   106     void HandleStartTimeChangeL();
   135     CEikDateEditor* iEndDate;
   138     CEikDateEditor* iEndDate;
   136     // Ref: Reference to alarm date editor
   139     // Ref: Reference to alarm date editor
   137     CEikDateEditor* iAlarmDate;
   140     CEikDateEditor* iAlarmDate;
   138     /// Ref: Reference to recurrence until date field
   141     /// Ref: Reference to recurrence until date field
   139     CEikDateEditor* iRecurrenceUntilDate;
   142     CEikDateEditor* iRecurrenceUntilDate;
       
   143     // Ref: Reference to absolute alarm on of interface
       
   144     MMRAbsoluteAlarmController* iAbsoluteAlarmController;
   140     /// Own: Current recurrence value
   145     /// Own: Current recurrence value
   141     TESMRRecurrenceValue iRecurrenceValue;
   146     TESMRRecurrenceValue iRecurrenceValue;
   142     /// Ref: Entry being handled
   147     /// Ref: Entry being handled
   143     MESMRCalEntry* iEntry;
   148     MESMRCalEntry* iEntry;
   144     /// Own: Current startTime
   149     /// Own: Current startTime