alarmui/inc/AlmAlarmControl.h
branchRCL_3
changeset 29 12af337248b1
parent 18 d68a4b5d5885
child 30 bd7edf625bdd
equal deleted inserted replaced
28:96907930389d 29:12af337248b1
    28 #include <uikon/eiknotifyalert.h>
    28 #include <uikon/eiknotifyalert.h>
    29 #endif
    29 #endif
    30 #include "pim_trace.h"
    30 #include "pim_trace.h"
    31 #include "PropertyObserver.h"
    31 #include "PropertyObserver.h"
    32 #include "AlmAlertVariant.hrh"
    32 #include "AlmAlertVariant.hrh"
       
    33 #include "alarmalertobserver.h"
    33 
    34 
    34 #include <akndialogcontroller.h>
    35 #include <akndialogcontroller.h>
    35 #include <AlarmObserver.h>
    36 #include <AlarmObserver.h>
    36 
    37 
    37 #include <missedalarmstore.h>
    38 // #include <missedalarmstore.h>
    38 
    39 
    39 // FORWARD DECLARATIONS
    40 // FORWARD DECLARATIONS
    40 class CAknAlarmService;
    41 class CAknAlarmService;
    41 class CAlarmUtils;
    42 class CAlarmUtils;
       
    43 class AlarmAlertWidget;
    42 
    44 
    43 // CLASS DECLARATION
    45 // CLASS DECLARATION
    44 
    46 
    45 /**
    47 /**
    46 *  Alarm UI
    48 *  Alarm UI
    50 *  @since 1.0
    52 *  @since 1.0
    51 */
    53 */
    52 NONSHARABLE_CLASS( CAlmAlarmControl ) : public CCoeControl,
    54 NONSHARABLE_CLASS( CAlmAlarmControl ) : public CCoeControl,
    53                                         public MEikServAlarm,
    55                                         public MEikServAlarm,
    54                                         public MPropertyChangeHandler,
    56                                         public MPropertyChangeHandler,
    55                                         public MNotifierDialogObserver
    57                                         public MNotifierDialogObserver,
       
    58                                         public AlarmAlertObserver
    56 {
    59 {
    57  public: // Constructors and destructor
    60  public: // Constructors and destructor
    58     /**
    61     /**
    59      * C++ default constructor.
    62      * C++ default constructor.
    60      */
    63      */
   103 	/**
   106 	/**
   104     * Return if alarm can be snoozed.
   107     * Return if alarm can be snoozed.
   105     * @since 5.0
   108     * @since 5.0
   106     **/
   109     **/
   107     TBool CanSnooze();
   110     TBool CanSnooze();
   108     /**
       
   109     * Returns handle to alarmutils
       
   110     * @since TB9.2
       
   111     **/
       
   112     CAlarmUtils* AlarmUtils() const;
       
   113  private:  // New functions
   111  private:  // New functions
   114     /**
   112     /**
   115      * Alarm UI Panic.
   113      * Alarm UI Panic.
   116      * Only called after an irreversible error.
   114      * Only called after an irreversible error.
   117      * @param aReason One of the panic reasons defined in TAlarmUIPanicReason (combined with TAlarmUIFunctionInfo).
   115      * @param aReason One of the panic reasons defined in TAlarmUIPanicReason (combined with TAlarmUIFunctionInfo).
   156      * Stores the missed alarm data in the repository 
   154      * Stores the missed alarm data in the repository 
   157      * 
   155      * 
   158      */
   156      */
   159     void StoreMissedAlarmDataL();
   157     void StoreMissedAlarmDataL();
   160 
   158 
   161     /**
       
   162      * Checks for calendar type alarm needed to be stored as missed alarm 
       
   163      *  Stops the alarm and enters to missed alarm table. If the calendar type
       
   164      * is clock, then snoozes the alarm.
       
   165      */
       
   166 
       
   167     void StopOrSnoozeAlarm();
       
   168 
       
   169 public:  // from MEikServAlarm
   159 public:  // from MEikServAlarm
   170     /**
   160     /**
   171      * From MEikServAlarm.
   161      * From MEikServAlarm.
   172      * @since 1.0
   162      * @since 1.0
   173      */
   163      */
   250      * Gets if StopAndExit to be sent to CFW/calendar
   240      * Gets if StopAndExit to be sent to CFW/calendar
   251      * @since S60 5.0
   241      * @since S60 5.0
   252      * @param None
   242      * @param None
   253      */
   243      */
   254     TBool IsStopFromContext();
   244     TBool IsStopFromContext();
       
   245     
       
   246 public: // From AlarmAlertObserver
       
   247     
       
   248     void alertCompleted(AlarmCommand command);
       
   249     void alertDisplayed(AlarmCommand command);
       
   250     void alertCancelled(AlarmCommand command);
   255 
   251 
   256  private:  // From MPropertyChangeHandler
   252  private:  // From MPropertyChangeHandler
   257     /**
   253     /**
   258      * This is a callback function which is called when a property is changed.
   254      * This is a callback function which is called when a property is changed.
   259      *
   255      *