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