diff -r 96907930389d -r 12af337248b1 alarmui/inc/alarmutils.h --- a/alarmui/inc/alarmutils.h Thu Aug 19 09:53:43 2010 +0300 +++ b/alarmui/inc/alarmutils.h Tue Aug 31 15:13:43 2010 +0300 @@ -35,6 +35,8 @@ #include #include +#include "alarmcommon.h" + // FORWARD DECLARATIONS class CCalSession; @@ -49,6 +51,7 @@ class MProfileEngine; class CNotifierDialogController; class CAknAlarmService; +class AlarmAlert; // CLASS DECLARATION @@ -68,6 +71,7 @@ { EAlarmTypeClock = 0, EAlarmTypeCalendar, + EAlarmTypeTodo, EAlarmTypeOther }; @@ -240,7 +244,8 @@ * @since S60 3.2 * @return Pointer to CNotifierDialogController. */ - CNotifierDialogController* NotifierDialogController(); + // CNotifierDialogController* NotifierDialogController(); + AlarmAlert *NotifierDialogController(); /** * Stop the active alarm and reset the snooze count. @@ -260,11 +265,7 @@ * @since S60 3.2 **/ void DoSnooze(); - /** - * Silence the active alarm. - * @since tb9.2 - **/ - void DoSilence(); + /** * Checks if this alarm can be shown in "alarm" or in "charging" state. * @since S60 3.2 @@ -480,6 +481,13 @@ * @return ETrue if viewer is open. */ TBool IsCalendarAlarmViewer(); + + /** + * @brief Gets the alarm information for the alarm that is + * about to expire + * @return The alarm information + */ + SAlarmInfo* GetAlarmInfo(); private: @@ -630,7 +638,8 @@ * Pointer to global note API. * Not own. */ - CNotifierDialogController* iNotifierDialogController; + // CNotifierDialogController* iNotifierDialogController; + AlarmAlert* iAlarmAlert; /** * Plays alarm tones according to user settings.