calendarui/editors/inc/calenunifiededitorcontrol.h
branchRCL_3
changeset 86 ed599363c2d7
parent 74 97232defd20e
equal deleted inserted replaced
78:356f28cd5ca0 86:ed599363c2d7
    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"
       
    28 
    27 
    29 // forward declaration
    28 // forward declaration
    30 class CCalenUnifiedEditor;
    29 class CCalenUnifiedEditor;
    31 class CCalenEventTypeField;
    30 class CCalenEventTypeField;
    32 class CCalenReminderField;
    31 class CCalenReminderField;
    34 class CCalenAllDayField;
    33 class CCalenAllDayField;
    35 class CCalenPriorityField;
    34 class CCalenPriorityField;
    36 class CCalenDbField;
    35 class CCalenDbField;
    37 class CCalenDescription;
    36 class CCalenDescription;
    38 class MCalenServices;
    37 class MCalenServices;
    39 class CKoreanLunarDateEditor;
       
    40 class CKoreanLunarTypeField;
       
    41 
    38 
    42 /**
    39 /**
    43  * CCalenUnifiedEditorControl class declaration
    40  * CCalenUnifiedEditorControl class declaration
    44  */
    41  */
    45 NONSHARABLE_CLASS( CCalenUnifiedEditorControl ) : public CBase
    42 NONSHARABLE_CLASS( CCalenUnifiedEditorControl ) : public CBase
   148         
   145         
   149         /**
   146         /**
   150          * @brief To set AllDay field value
   147          * @brief To set AllDay field value
   151          * @param aActive
   148          * @param aActive
   152          */
   149          */
   153         void SetAllDayEventL( TBool aActive );
   150         void SetAllDayEvent( TBool aActive );
   154         
   151         
   155         /**
   152         /**
   156          * @brief Handles a state change in the control with id aControlId. 
   153          * @brief Handles a state change in the control with id aControlId. 
   157          *        Empty by default.
   154          *        Empty by default.
   158          * @param aControlId holds the control id for which the state is changed
   155          * @param aControlId holds the control id for which the state is changed
   170         /**
   167         /**
   171          * @brief Handles event type changed 
   168          * @brief Handles event type changed 
   172          * @param aNewEventType Holds the new event type selected in editor
   169          * @param aNewEventType Holds the new event type selected in editor
   173          */
   170          */
   174         void OnEventTypeChangedL( CCalEntry::TType aNewEventType );
   171         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 );
       
   181     
   172     
   182         /**
   173         /**
   183          * @brief Reads editor data mainly for collapsed editor
   174          * @brief Reads editor data mainly for collapsed editor
   184          * @aContinueOnError used for handling forced exit of the editor
   175          * @aContinueOnError used for handling forced exit of the editor
   185          */
   176          */
   232         void UpdateLinesOnLocaleChangeL();
   223         void UpdateLinesOnLocaleChangeL();
   233         
   224         
   234         /**
   225         /**
   235          * Reads the RRule and Rdates for the current CCalEntry.
   226          * Reads the RRule and Rdates for the current CCalEntry.
   236          */
   227          */
   237         void ReadRruleL(TTime& startTime, TTime& endTime);
   228         void ReadRrule(TTime& startTime, TTime& endTime);
   238         
   229         
   239         /**
   230         /**
   240          * @brief Get start date time from editor
   231          * @brief Get start date time from editor
   241          * @return TTime holds the start time
   232          * @return TTime holds the start time
   242          */
   233          */
   345         /**
   336         /**
   346          * @brief To to update meeting duration in iMeetingInterval Which is used
   337          * @brief To to update meeting duration in iMeetingInterval Which is used
   347          *        in updating the EndTime of editor on StartTime change.
   338          *        in updating the EndTime of editor on StartTime change.
   348          */
   339          */
   349         void UpdateMeetingDurationL();
   340         void UpdateMeetingDurationL();
   350 
   341         
   351         /**
       
   352          * @brief Setups Lunar Fields
       
   353          */
       
   354         void SetupLunarFields();
       
   355 
       
   356         /**
       
   357          * @brief Updates Lunar Date Fields
       
   358          */
       
   359         void UpdateLunarDateFields();
       
   360 
       
   361     private:
   342     private:
   362  
   343  
   363         /**
   344         /**
   364          * @var iUnifiedEditor
   345          * @var iUnifiedEditor
   365          * @brief referance to CCalenUnifiedEditor
   346          * @brief referance to CCalenUnifiedEditor
   412          * @var iMeetingInterval
   393          * @var iMeetingInterval
   413          * @brief To update end time as per Start time change
   394          * @brief To update end time as per Start time change
   414          */
   395          */
   415         TTimeIntervalMinutes  iMeetingInterval;
   396         TTimeIntervalMinutes  iMeetingInterval;
   416         
   397         
   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         
       
   440     };
   398     };
   441 
   399 
   442 #endif // _CALENUNIFIEDEDITORCONTROL_H
   400 #endif // _CALENUNIFIEDEDITORCONTROL_H