alarmui/inc/AlmAlarmControl.h
changeset 89 b57382753122
parent 18 c198609911f9
equal deleted inserted replaced
83:5aadd1120515 89:b57382753122
    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"
       
    34 
    33 
    35 #include <akndialogcontroller.h>
    34 #include <akndialogcontroller.h>
    36 #include <AlarmObserver.h>
    35 #include <AlarmObserver.h>
    37 
    36 
    38 // #include <missedalarmstore.h>
    37 #include <missedalarmstore.h>
    39 
    38 
    40 // FORWARD DECLARATIONS
    39 // FORWARD DECLARATIONS
    41 class CAknAlarmService;
    40 class CAknAlarmService;
    42 class CAlarmUtils;
    41 class CAlarmUtils;
    43 class AlarmAlertWidget;
       
    44 
    42 
    45 // CLASS DECLARATION
    43 // CLASS DECLARATION
    46 
    44 
    47 /**
    45 /**
    48 *  Alarm UI
    46 *  Alarm UI
    52 *  @since 1.0
    50 *  @since 1.0
    53 */
    51 */
    54 NONSHARABLE_CLASS( CAlmAlarmControl ) : public CCoeControl,
    52 NONSHARABLE_CLASS( CAlmAlarmControl ) : public CCoeControl,
    55                                         public MEikServAlarm,
    53                                         public MEikServAlarm,
    56                                         public MPropertyChangeHandler,
    54                                         public MPropertyChangeHandler,
    57                                         public MNotifierDialogObserver,
    55                                         public MNotifierDialogObserver
    58                                         public AlarmAlertObserver
       
    59 {
    56 {
    60  public: // Constructors and destructor
    57  public: // Constructors and destructor
    61     /**
    58     /**
    62      * C++ default constructor.
    59      * C++ default constructor.
    63      */
    60      */
   106 	/**
   103 	/**
   107     * Return if alarm can be snoozed.
   104     * Return if alarm can be snoozed.
   108     * @since 5.0
   105     * @since 5.0
   109     **/
   106     **/
   110     TBool CanSnooze();
   107     TBool CanSnooze();
       
   108     /**
       
   109     * Returns handle to alarmutils
       
   110     * @since TB9.2
       
   111     **/
       
   112     CAlarmUtils* AlarmUtils() const;
   111  private:  // New functions
   113  private:  // New functions
   112     /**
   114     /**
   113      * Alarm UI Panic.
   115      * Alarm UI Panic.
   114      * Only called after an irreversible error.
   116      * Only called after an irreversible error.
   115      * @param aReason One of the panic reasons defined in TAlarmUIPanicReason (combined with TAlarmUIFunctionInfo).
   117      * @param aReason One of the panic reasons defined in TAlarmUIPanicReason (combined with TAlarmUIFunctionInfo).
   154      * Stores the missed alarm data in the repository 
   156      * Stores the missed alarm data in the repository 
   155      * 
   157      * 
   156      */
   158      */
   157     void StoreMissedAlarmDataL();
   159     void StoreMissedAlarmDataL();
   158 
   160 
       
   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 
   159 public:  // from MEikServAlarm
   169 public:  // from MEikServAlarm
   160     /**
   170     /**
   161      * From MEikServAlarm.
   171      * From MEikServAlarm.
   162      * @since 1.0
   172      * @since 1.0
   163      */
   173      */
   240      * Gets if StopAndExit to be sent to CFW/calendar
   250      * Gets if StopAndExit to be sent to CFW/calendar
   241      * @since S60 5.0
   251      * @since S60 5.0
   242      * @param None
   252      * @param None
   243      */
   253      */
   244     TBool IsStopFromContext();
   254     TBool IsStopFromContext();
   245     
       
   246 public: // From AlarmAlertObserver
       
   247     
       
   248     void alertCompleted(AlarmCommand command);
       
   249     void alertDisplayed(AlarmCommand command);
       
   250     void alertCancelled(AlarmCommand command);
       
   251 
   255 
   252  private:  // From MPropertyChangeHandler
   256  private:  // From MPropertyChangeHandler
   253     /**
   257     /**
   254      * This is a callback function which is called when a property is changed.
   258      * This is a callback function which is called when a property is changed.
   255      *
   259      *