clock2/clockui/uimodel/inc/clkuialarmlistener.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  The header file for CClkUiMdlAlarmListener class.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CLKUI_ALARM_LISTENER_H__
       
    19 #define __CLKUI_ALARM_LISTENER_H__
       
    20 
       
    21 // System includes
       
    22 #include <asclisession.h>
       
    23 
       
    24 // User includes
       
    25 #include "clkuilistenerbase.h"
       
    26 
       
    27 // Forward declarations
       
    28 class CClkUiAlarmModel;
       
    29 
       
    30 // Class declaration
       
    31 /**
       
    32 * @class CClkUiMdlAlarmListener
       
    33 * @brief The listener class for alarm server interface.
       
    34 * @dll clkuimodel.dll
       
    35 */
       
    36 class CClkUiMdlAlarmListener : public CClkUiMdlListenerBase
       
    37     {
       
    38     public:         // Constructor.
       
    39         
       
    40         /**
       
    41         * @brief C++ default constructor.
       
    42         * @param aAlarmSrvSes The alarm server session.
       
    43         * @param aAlarmModel Pointer to the alarm model.
       
    44         * @param aListenerPriority The active object priority.
       
    45         */
       
    46         CClkUiMdlAlarmListener( RASCliSession& aAlarmSrvSes, CClkUiAlarmModel& aAlarmModel, TInt aListenerPriority );
       
    47         
       
    48         /**
       
    49         * @brief Destructor.
       
    50         */
       
    51         ~CClkUiMdlAlarmListener();
       
    52         
       
    53     public:         // Functions from base classes.
       
    54         
       
    55         /**
       
    56         * @brief from CClkUiMdlListenerBase. Starts the listener activity.
       
    57         */
       
    58         void DoStart();
       
    59         
       
    60         /**
       
    61         * @brief from CClkUiMdlListenerBase. Cancels and stops the listener activity.
       
    62         */
       
    63         void DoCancel();
       
    64         
       
    65     private:        // Data
       
    66         
       
    67         /**
       
    68         * @var iAlarmSrvSes
       
    69         * @brief Reference to the alarm server session.
       
    70         */
       
    71         RASCliSession               iAlarmSrvSes;
       
    72         
       
    73         /**
       
    74         * @var iAlarmId
       
    75         * @brief Dummy alarm id.
       
    76         */
       
    77         TInt                        iAlarmId;
       
    78     };
       
    79 
       
    80 #endif          // __CLKUI_ALARM_LISTENER_H__
       
    81 
       
    82 // End of file