equal
deleted
inserted
replaced
33 #include <starterclient.h> |
33 #include <starterclient.h> |
34 #include <calentry.h> |
34 #include <calentry.h> |
35 #include <caltime.h> |
35 #include <caltime.h> |
36 #include <calprogresscallback.h> |
36 #include <calprogresscallback.h> |
37 |
37 |
|
38 #include "alarmcommon.h" |
|
39 |
38 // FORWARD DECLARATIONS |
40 // FORWARD DECLARATIONS |
39 |
41 |
40 class CCalSession; |
42 class CCalSession; |
41 class CCalEntryView; |
43 class CCalEntryView; |
42 class CAlmAlarmControl; |
44 class CAlmAlarmControl; |
47 class CAlarmContextFwSupport; |
49 class CAlarmContextFwSupport; |
48 #endif // RD_ALMALERT__SENSOR_SUPPORT |
50 #endif // RD_ALMALERT__SENSOR_SUPPORT |
49 class MProfileEngine; |
51 class MProfileEngine; |
50 class CNotifierDialogController; |
52 class CNotifierDialogController; |
51 class CAknAlarmService; |
53 class CAknAlarmService; |
|
54 class AlarmAlert; |
52 |
55 |
53 // CLASS DECLARATION |
56 // CLASS DECLARATION |
54 |
57 |
55 /** |
58 /** |
56 * ?description |
59 * ?description |
66 */ |
69 */ |
67 enum TAlarmType |
70 enum TAlarmType |
68 { |
71 { |
69 EAlarmTypeClock = 0, |
72 EAlarmTypeClock = 0, |
70 EAlarmTypeCalendar, |
73 EAlarmTypeCalendar, |
|
74 EAlarmTypeTodo, |
71 EAlarmTypeOther |
75 EAlarmTypeOther |
72 }; |
76 }; |
73 |
77 |
74 |
78 |
75 struct TAlarmData |
79 struct TAlarmData |
238 /** |
242 /** |
239 * ?description |
243 * ?description |
240 * @since S60 3.2 |
244 * @since S60 3.2 |
241 * @return Pointer to CNotifierDialogController. |
245 * @return Pointer to CNotifierDialogController. |
242 */ |
246 */ |
243 CNotifierDialogController* NotifierDialogController(); |
247 // CNotifierDialogController* NotifierDialogController(); |
|
248 AlarmAlert *NotifierDialogController(); |
244 |
249 |
245 /** |
250 /** |
246 * Stop the active alarm and reset the snooze count. |
251 * Stop the active alarm and reset the snooze count. |
247 * @since S60 3.2 |
252 * @since S60 3.2 |
248 **/ |
253 **/ |
258 /** |
263 /** |
259 * Snooze the active alarm. |
264 * Snooze the active alarm. |
260 * @since S60 3.2 |
265 * @since S60 3.2 |
261 **/ |
266 **/ |
262 void DoSnooze(); |
267 void DoSnooze(); |
263 /** |
268 |
264 * Silence the active alarm. |
|
265 * @since tb9.2 |
|
266 **/ |
|
267 void DoSilence(); |
|
268 /** |
269 /** |
269 * Checks if this alarm can be shown in "alarm" or in "charging" state. |
270 * Checks if this alarm can be shown in "alarm" or in "charging" state. |
270 * @since S60 3.2 |
271 * @since S60 3.2 |
271 * @return ETrue, if alarm can be shown. |
272 * @return ETrue, if alarm can be shown. |
272 */ |
273 */ |
478 /** |
479 /** |
479 * Get the status whether, calendar viewer is open or not |
480 * Get the status whether, calendar viewer is open or not |
480 * @return ETrue if viewer is open. |
481 * @return ETrue if viewer is open. |
481 */ |
482 */ |
482 TBool IsCalendarAlarmViewer(); |
483 TBool IsCalendarAlarmViewer(); |
|
484 |
|
485 /** |
|
486 * @brief Gets the alarm information for the alarm that is |
|
487 * about to expire |
|
488 * @return The alarm information |
|
489 */ |
|
490 SAlarmInfo* GetAlarmInfo(); |
483 |
491 |
484 private: |
492 private: |
485 |
493 |
486 /** |
494 /** |
487 * Read alarm sound filenames from CenRep. |
495 * Read alarm sound filenames from CenRep. |
628 |
636 |
629 /** |
637 /** |
630 * Pointer to global note API. |
638 * Pointer to global note API. |
631 * Not own. |
639 * Not own. |
632 */ |
640 */ |
633 CNotifierDialogController* iNotifierDialogController; |
641 // CNotifierDialogController* iNotifierDialogController; |
|
642 AlarmAlert* iAlarmAlert; |
634 |
643 |
635 /** |
644 /** |
636 * Plays alarm tones according to user settings. |
645 * Plays alarm tones according to user settings. |
637 * Own. |
646 * Own. |
638 */ |
647 */ |