iutil/eventq.h
Go to the documentation of this file.00001 /* 00002 Copyright (C) 2001 by Eric Sunshine <sunshine@sunshineco.com> 00003 Copyright (C) 2000 by Andrew Zabolotny <bit@eltech.ru> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public 00016 License along with this library; if not, write to the Free 00017 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 #ifndef __CS_IUTIL_EVENTQ_H__ 00021 #define __CS_IUTIL_EVENTQ_H__ 00022 00029 #include "csutil/scf.h" 00030 struct iEvent; 00031 struct iEventCord; 00032 struct iEventOutlet; 00033 struct iEventPlug; 00034 struct iEventHandler; 00035 00036 SCF_VERSION(iEventQueue, 0, 0, 1); 00037 00046 struct iEventQueue : public iBase 00047 { 00055 virtual void Process () = 0; 00056 00063 virtual void Dispatch (iEvent&) = 0; 00064 00083 virtual void RegisterListener (iEventHandler*, unsigned int trigger) = 0; 00084 00089 virtual void RemoveListener (iEventHandler*) = 0; 00090 00095 virtual void ChangeListenerTrigger (iEventHandler*, unsigned int trigger) = 0; 00096 00106 virtual csPtr<iEventOutlet> CreateEventOutlet (iEventPlug*) = 0; 00107 00119 virtual iEventOutlet* GetEventOutlet () = 0; 00120 00129 virtual iEventCord* GetEventCord (int Category, int Subcategory) = 0; 00130 00135 virtual csPtr<iEvent> CreateEvent(uint8 type) = 0; 00136 00146 virtual void Post (iEvent*) = 0; 00147 00154 virtual csPtr<iEvent> Get () = 0; 00155 00157 virtual void Clear () = 0; 00158 00160 virtual bool IsEmpty () = 0; 00161 00172 virtual void RemoveAllListeners () = 0; 00173 00174 }; 00175 00178 #endif // __CS_IUTIL_EVENTQ_H__
Generated for Crystal Space by doxygen 1.2.18