calendarui/caleneditor/inc/caleneditorreminderfield.h
changeset 45 b6db4fd4947b
parent 23 fd30d51f876b
child 57 bb2d3e476f29
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
    28 
    28 
    29 // FORWARD DECLARATIONS
    29 // FORWARD DECLARATIONS
    30 class HbDataFormModelItem;
    30 class HbDataFormModelItem;
    31 class HbDataForm;
    31 class HbDataForm;
    32 class HbDataFormModelItem;
    32 class HbDataFormModelItem;
       
    33 class HbDateTimePicker;
    33 class CalenEditorDataHandler;
    34 class CalenEditorDataHandler;
    34 
    35 
    35 class CalenEditorReminderField : public QObject
    36 class CalenEditorReminderField : public QObject
    36 {
    37 {
    37 	Q_OBJECT
    38 	Q_OBJECT
    41 	                         HbDataForm* form, HbDataFormModel* model,
    42 	                         HbDataForm* form, HbDataFormModel* model,
    42 	                         QObject *parent = NULL);
    43 	                         QObject *parent = NULL);
    43 	virtual ~CalenEditorReminderField();
    44 	virtual ~CalenEditorReminderField();
    44 
    45 
    45 public:
    46 public:
       
    47 	void setReminderChoices();
    46 	void addItemToModel();
    48 	void addItemToModel();
    47 	void removeItemFromModel();
    49 	void removeItemFromModel();
    48 	void populateReminderItem(bool newEntry);
    50 	void populateReminderItem(bool newEntry);
    49 	QModelIndex modelIndex();
    51 	QModelIndex modelIndex();
    50 	
    52 	void setReminderOff();
       
    53 	void setDefaultAlarmForAllDay();
       
    54 	void updateReminderChoicesForAllDay(QDate repeatUntilDate);
       
    55 	void insertReminderTimeField();
       
    56 	void setDisplayTime();
       
    57 	void removeReminderTimeField();
       
    58 	bool isReminderFieldEnabled();
       
    59 	int reminderItemsCount();
       
    60 	int currentReminderIndex();
       
    61 	void setCurrentIndex(int index);
       
    62 	void disableReminderTimeField();
       
    63 	bool isReminderTimeForAllDayAdded();
    51 private slots:
    64 private slots:
    52 	void handleReminderIndexChanged(int index);
    65 	void handleReminderIndexChanged(int index);
    53 	
    66 	void launchReminderTimePicker();
       
    67 	void setReminderTimeForAllDay();
    54 private:
    68 private:
    55 	CalenEditorPrivate* mCalenEditor;
    69 	CalenEditorPrivate* mCalenEditor;
    56 	HbDataForm* mEditorForm;
    70 	HbDataForm* mEditorForm;
    57 	HbDataFormModel* mCalenEditorModel;
    71 	HbDataFormModel* mCalenEditorModel;
    58 	HbDataFormModelItem* mReminderItem;
    72 	HbDataFormModelItem* mReminderItem;
       
    73 	HbDataFormModelItem *mCustomReminderTimeItem;
       
    74 	HbDateTimePicker *mTimePicker;
       
    75 	QTime mReminderTimeForAllDay;
    59 	QHash<int, int> mReminderHash;
    76 	QHash<int, int> mReminderHash;
       
    77 	bool mReminderTimeAdded;
    60 };
    78 };
    61 
    79 
    62 #endif // CALENEDITORREMINDERFIELD_H
    80 #endif // CALENEDITORREMINDERFIELD_H
    63 
    81 
    64 // End of file	--Don't remove this.
    82 // End of file	--Don't remove this.