00001 /* 00002 * This file is part of openMask © INRIA, CNRS, Universite de Rennes 1 1993-2002, thereinafter the Software 00003 * 00004 * The Software has been developped within the Siames Project. 00005 * INRIA, the University of Rennes 1 and CNRS jointly hold intellectual property rights 00006 * 00007 * The Software has been registered with the Agence pour la Protection des 00008 * Programmes (APP) under registration number IDDN.FR.001.510008.00.S.P.2001.000.41200 00009 * 00010 * This file may be distributed under the terms of the Q Public License 00011 * version 1.0 as defined by Trolltech AS of Norway and appearing in the file 00012 * LICENSE.QPL included in the packaging of this file. 00013 * 00014 * Licensees holding valid specific licenses issued by INRIA, CNRS or Université de Rennes 1 00015 * for the software may use this file in accordance with that specific license 00016 * 00017 */ 00018 #ifndef PsnSignalDispatcherHEADER 00019 #define PsnSignalDispatcherHEADER 00020 00021 #include "PsPair.h" 00022 #include "PsList.h" 00023 #include "PsMap.h" 00024 #include "PsName.h" 00025 #include "PsEventIdentifier.h" 00026 #include "PsnMutexLock.h" 00027 00028 class PsEvent ; 00029 00030 class PsController ; 00031 00037 class PsnSignalDispatcher { 00038 public: 00041 PsnSignalDispatcher(PsController & controller) ; 00042 00044 virtual ~PsnSignalDispatcher() ; 00045 00050 virtual void sendEventsForSignal( PsEvent & event , const PsEventIdentifier & sigId ) ; 00051 00057 virtual bool registerForSignal ( const PsEventIdentifier & sigId, 00058 const PsName & registrant, 00059 const PsEventIdentifier & eventId) ; 00060 00065 virtual bool cancelRegistrationForSignal ( const PsEventIdentifier & sigId, 00066 const PsName & registrant ) ; 00067 protected: 00069 PsController & _controler ; 00070 00072 typedef PsList <PsPair<PsName,PsEventIdentifier> > _ListType ; 00073 00075 typedef map <PsEventIdentifier, _ListType * > _TableType ; 00076 00078 _TableType _tableOfRegistredObjects; 00079 00081 PsnMutexLock _mutexForRegistredObjectsTable ; 00082 00083 }; 00084 00085 #endif
| Documentation generated on Mon Nov 25 15:25:01 2002 |
Generated with doxygen 1.2.12 by Dimitri van Heesch , 1997-2001 |