clock2/clockui/uimodel/inc/clkuiintermediateobserver.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 CClkUiMdlIntermediateObserver class.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CLKUI_INTERMEDIATE_OBSERVER_H__
       
    19 #define __CLKUI_INTERMEDIATE_OBSERVER_H__
       
    20 
       
    21 // System includes
       
    22 #include <e32base.h>
       
    23 
       
    24 // User includes
       
    25 #include "clkmdlobserver.h"
       
    26 // Forward declarations
       
    27 
       
    28 // Class declaration
       
    29 /**
       
    30 * @class CClkUiMdlIntermediateObserver
       
    31 * @brief The intermediate observer class.
       
    32 * @dll clkuimodel
       
    33 */
       
    34 class CClkUiMdlIntermediateObserver : public CBase, public MClkModelObserver
       
    35     {
       
    36     public:         // Constructor and destructor.
       
    37         
       
    38         /**
       
    39         * @brief C++ default constructor.
       
    40         */
       
    41         CClkUiMdlIntermediateObserver();
       
    42         
       
    43         /**
       
    44         * @brief Destructor.
       
    45         */
       
    46         ~CClkUiMdlIntermediateObserver();
       
    47         
       
    48     public:         // From base classes.
       
    49         
       
    50         /**
       
    51         * @brief From MClkUiMdlObserver. Calls the NotifyL, to notify the observer.
       
    52         * @param aReason The reason for notification.
       
    53         */
       
    54         IMPORT_C void HandleUpdateL( TInt aReason );
       
    55         
       
    56     public:         // New functions.
       
    57         
       
    58         /**
       
    59         * @brief This stores the observer.
       
    60         * @param aObserver The observer object.
       
    61         */
       
    62         IMPORT_C void SetModelObserver( MClkModelObserver* aObserver );
       
    63         
       
    64     protected:      // New functions.
       
    65         
       
    66         /**
       
    67         * @brief Notifies the observer.
       
    68         * @param aReason The reason for notification.
       
    69         */
       
    70         IMPORT_C void NotifyL( TInt aReason );
       
    71         
       
    72     private:        // Data
       
    73         
       
    74         /**
       
    75         * @var iObserver
       
    76         * @brief The model observer.
       
    77         */
       
    78         MClkModelObserver*          iObserver;
       
    79     };
       
    80 
       
    81 
       
    82 #endif          // __CLKUI_INTERMEDIATE_OBSERVER_H__
       
    83 
       
    84 // End of file