56 CLOCKALARMEDITOR_EXPORT virtual ~ClockAlarmEditor(); |
57 CLOCKALARMEDITOR_EXPORT virtual ~ClockAlarmEditor(); |
57 |
58 |
58 public: |
59 public: |
59 CLOCKALARMEDITOR_EXPORT void showAlarmEditor(); |
60 CLOCKALARMEDITOR_EXPORT void showAlarmEditor(); |
60 |
61 |
61 public slots: |
62 private slots: |
62 void handleDoneAction(); |
63 void handleDoneAction(); |
63 void handleDeleteAction(); |
64 void handleDeleteAction(); |
64 void handleDiscardAction(); |
|
65 void handleTimeChange(const QString &text); |
65 void handleTimeChange(const QString &text); |
66 void handleOccurenceChanged(int index); |
66 void handleOccurenceChanged(int index); |
67 void handleOkAction(); |
67 void handleOkAction(); |
68 void launchTimePicker(); |
68 void launchTimePicker(); |
69 void handleAlarmSoundChanged(int checkedState); |
69 void handleAlarmSoundChanged(int checkedState); |
70 void selectedAction(HbAction *action); |
70 void selectedAction(HbAction *action); |
|
71 void handleDayChanged(int index); |
|
72 void handleDescriptionChanged(const QString &text); |
|
73 void handleKeypadOpen(); |
|
74 void handleKeypadClosed(); |
71 |
75 |
72 signals: |
76 signals: |
73 void alarmSet(); |
77 void alarmSet(); |
74 |
78 |
75 private: |
79 private: |
92 |
96 |
93 private: |
97 private: |
94 int mAlarmId; |
98 int mAlarmId; |
95 int mStartOfWeek; |
99 int mStartOfWeek; |
96 bool mAlarmDayItemInserted; |
100 bool mAlarmDayItemInserted; |
|
101 bool mIsQuickAlarm; |
97 QString mTimeFormat; |
102 QString mTimeFormat; |
|
103 QTime mOldAlarmTime; |
98 |
104 |
99 HbDataForm *mAlarmEditorForm; |
105 HbDataForm *mAlarmEditorForm; |
100 HbDataFormModel *mAlarmEditorModel; |
106 HbDataFormModel *mAlarmEditorModel; |
101 HbDataFormModelItem *mAlarmTimeItem; |
107 HbDataFormModelItem *mAlarmTimeItem; |
102 HbDataFormModelItem *mAlarmOccurenceItem; |
108 HbDataFormModelItem *mAlarmOccurenceItem; |
103 HbDataFormModelItem *mAlarmDayItem; |
109 HbDataFormModelItem *mAlarmDayItem; |
104 HbDataFormModelItem *mAlarmSoundItem; |
110 HbDataFormModelItem *mAlarmSoundItem; |
105 HbDataFormModelItem *mAlarmDescription; |
111 HbDataFormModelItem *mAlarmDescription; |
106 |
112 |
107 HbView *mAlarmEditorView; |
113 QPointer<HbView> mAlarmEditorView; |
108 HbAction *mDiscardAction; |
|
109 HbAction *mDeleteAction; |
114 HbAction *mDeleteAction; |
110 HbAction *mDoneAction; |
115 HbAction *mDoneAction; |
111 HbAction *mOkAction; |
116 HbAction *mOkAction; |
112 HbAction *mCancelAction; |
117 HbAction *mCancelAction; |
113 |
118 |
114 QPointer<HbDialog> mTimePickerDialog; |
119 QPointer<HbDialog> mTimePickerDialog; |
|
120 QPointer<HbAbstractVkbHost> mVirtualKeyboard; |
115 |
121 |
116 XQSettingsManager *mSettingsManager; |
122 XQSettingsManager *mSettingsManager; |
117 XQSettingsKey *mPreviosAlarmTime; |
123 XQSettingsKey *mPreviosAlarmTime; |
118 |
124 |
119 AlarmClient &mAlarmClient; |
125 AlarmClient &mAlarmClient; |