commonappservices/alarmserver/Server/Include/ASSrvAnyEventManager.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 __ASSRVANYEVENTMANAGER_H__
       
    17 #define __ASSRVANYEVENTMANAGER_H__
       
    18 
       
    19 // System includes
       
    20 #include <e32std.h>
       
    21 
       
    22 // User includes
       
    23 #include <asshddefs.h>
       
    24 
       
    25 // Type definitions
       
    26 
       
    27 // Constants
       
    28 
       
    29 // Enumerations
       
    30 
       
    31 // Classes referenced
       
    32 class MASSrvAnyEventObserver;
       
    33 
       
    34 
       
    35 //
       
    36 // ----> MASSrvAnyEventManager (header)
       
    37 //
       
    38 /**
       
    39  * This class has two purposes:-
       
    40  *
       
    41  * 1) Defines the interface which allows other objects within the Alarm Server
       
    42  *    to receive arbitrary events ("any events")
       
    43  * 
       
    44  * 2) Defines the interface which allows other objects within the Alarm Server
       
    45  *    to notify a central controller (the real instance-object which implements
       
    46  *    this mixin) about arbitrary events.
       
    47  *
       
    48  */
       
    49 class MASSrvAnyEventManager
       
    50 	{
       
    51 //
       
    52 public:										// FROM MASSrvAnyEventManager
       
    53 //
       
    54 
       
    55 	/**
       
    56 	 * Request events
       
    57 	 */
       
    58 	virtual void							MASAnyEventManagerObserverAddL(MASSrvAnyEventObserver& aObserver) = 0;
       
    59 
       
    60 	/**
       
    61 	 * Cancel event request
       
    62 	 */
       
    63 	virtual void							MASAnyEventManagerObserverRemove(const MASSrvAnyEventObserver& aObserver) = 0;
       
    64 
       
    65 	/**
       
    66 	 * Submit an event
       
    67 	 */
       
    68 	virtual void							MASAnyEventManagerObserverNotifyChanges(TAlarmChangeEvent aEvent, TAlarmId aAlarmId) = 0;
       
    69 	};
       
    70 
       
    71 #endif