commonappservices/alarmserver/Server/Include/ASSrvAlarmObserver.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __ASSRV_H__
       
    17 #define __ASSRV_H__
       
    18 
       
    19 #include <e32std.h>
       
    20 
       
    21 class TASSrvAlarm;
       
    22 
       
    23 /**
       
    24  * An abstract class representing an object which wishes to be informed
       
    25  * when the state or status of an alarm changes.
       
    26  */
       
    27 class MASSrvAlarmObserver
       
    28 	{
       
    29 public:
       
    30 	/**
       
    31 	 * What type of event took place
       
    32 	 */
       
    33 	enum TObserverEvent
       
    34 		{
       
    35 		/**
       
    36 		 * The alarm changed state
       
    37 		 */
       
    38 		EAlarmObserverStateChanged = 0,
       
    39 
       
    40 		/**
       
    41 		 * The alarm changed status
       
    42 		 */
       
    43 		EAlarmObserverStatusChanged
       
    44 		};
       
    45 
       
    46 public:
       
    47 	/**
       
    48 	 * Called when the state or status of an alarm changes.
       
    49 	 */
       
    50 	virtual void MASSrvAlarmObsHandleEvent(TObserverEvent aEvent, const TASSrvAlarm& aAlarm, TInt aEventSpecificData) = 0;
       
    51 	};
       
    52 
       
    53 #endif