calendarui/editors/inc/calenunifiededitorcontrol.h
branchRCL_3
changeset 31 97232defd20e
parent 30 bd7edf625bdd
equal deleted inserted replaced
30:bd7edf625bdd 31:97232defd20e
    22 // system includes
    22 // system includes
    23 #include <calentry.h>
    23 #include <calentry.h>
    24 
    24 
    25 // user includes
    25 // user includes
    26 #include "CalenEditorDataHandler.h"
    26 #include "CalenEditorDataHandler.h"
       
    27 #include "CalenEntryUtil.h"
    27 
    28 
    28 // forward declaration
    29 // forward declaration
    29 class CCalenUnifiedEditor;
    30 class CCalenUnifiedEditor;
    30 class CCalenEventTypeField;
    31 class CCalenEventTypeField;
    31 class CCalenReminderField;
    32 class CCalenReminderField;
    33 class CCalenAllDayField;
    34 class CCalenAllDayField;
    34 class CCalenPriorityField;
    35 class CCalenPriorityField;
    35 class CCalenDbField;
    36 class CCalenDbField;
    36 class CCalenDescription;
    37 class CCalenDescription;
    37 class MCalenServices;
    38 class MCalenServices;
       
    39 class CKoreanLunarDateEditor;
       
    40 class CKoreanLunarTypeField;
    38 
    41 
    39 /**
    42 /**
    40  * CCalenUnifiedEditorControl class declaration
    43  * CCalenUnifiedEditorControl class declaration
    41  */
    44  */
    42 NONSHARABLE_CLASS( CCalenUnifiedEditorControl ) : public CBase
    45 NONSHARABLE_CLASS( CCalenUnifiedEditorControl ) : public CBase
   167         /**
   170         /**
   168          * @brief Handles event type changed 
   171          * @brief Handles event type changed 
   169          * @param aNewEventType Holds the new event type selected in editor
   172          * @param aNewEventType Holds the new event type selected in editor
   170          */
   173          */
   171         void OnEventTypeChangedL( CCalEntry::TType aNewEventType );
   174         void OnEventTypeChangedL( CCalEntry::TType aNewEventType );
       
   175 
       
   176         /**
       
   177          * @brief Handles lunar event type changed 
       
   178          * @param aNewEventType Holds the new event type selected in editor
       
   179          */
       
   180         void OnLunarTypeChangedL( TLunarCalendarType aNewEventType );
   172     
   181     
   173         /**
   182         /**
   174          * @brief Reads editor data mainly for collapsed editor
   183          * @brief Reads editor data mainly for collapsed editor
   175          * @aContinueOnError used for handling forced exit of the editor
   184          * @aContinueOnError used for handling forced exit of the editor
   176          */
   185          */
   336         /**
   345         /**
   337          * @brief To to update meeting duration in iMeetingInterval Which is used
   346          * @brief To to update meeting duration in iMeetingInterval Which is used
   338          *        in updating the EndTime of editor on StartTime change.
   347          *        in updating the EndTime of editor on StartTime change.
   339          */
   348          */
   340         void UpdateMeetingDurationL();
   349         void UpdateMeetingDurationL();
   341         
   350 
       
   351         /**
       
   352          * @brief Setups Lunar Fields
       
   353          */
       
   354         void SetupLunarFields();
       
   355 
       
   356         /**
       
   357          * @brief Updates Lunar Date Fields
       
   358          */
       
   359         void UpdateLunarDateFields();
       
   360 
   342     private:
   361     private:
   343  
   362  
   344         /**
   363         /**
   345          * @var iUnifiedEditor
   364          * @var iUnifiedEditor
   346          * @brief referance to CCalenUnifiedEditor
   365          * @brief referance to CCalenUnifiedEditor
   393          * @var iMeetingInterval
   412          * @var iMeetingInterval
   394          * @brief To update end time as per Start time change
   413          * @brief To update end time as per Start time change
   395          */
   414          */
   396         TTimeIntervalMinutes  iMeetingInterval;
   415         TTimeIntervalMinutes  iMeetingInterval;
   397         
   416         
       
   417         /**
       
   418          * @var iKoreanLunarDateEditor
       
   419          * @brief Korean lunar data editor
       
   420          */
       
   421         CKoreanLunarDateEditor* iKoreanLunarDateEditor;
       
   422         
       
   423         /**
       
   424          * @var iKoreanLunarTypeField
       
   425          * @brief Korean lunar type field
       
   426          */
       
   427         CKoreanLunarTypeField* iKoreanLunarTypeField;
       
   428         
       
   429         /**
       
   430          * @var iPrevLunarType
       
   431          * @brief previous lunar type
       
   432          */
       
   433         TLunarCalendarType iPrevLunarType;
       
   434         
       
   435         /**
       
   436     	* True if FeatureManager is initialized.
       
   437     	*/
       
   438     	TBool iFeatMgrInitialized;
       
   439         
   398     };
   440     };
   399 
   441 
   400 #endif // _CALENUNIFIEDEDITORCONTROL_H
   442 #endif // _CALENUNIFIEDEDITORCONTROL_H