![]() |
Public API Reference |
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 00047 struct iEventQueue : public iBase 00048 { 00056 virtual void Process () = 0; 00057 00064 virtual void Dispatch (iEvent&) = 0; 00065 00079 virtual void RegisterListener (iEventHandler*, unsigned int trigger) = 0; 00080 00085 virtual void RemoveListener (iEventHandler*) = 0; 00086 00091 virtual void ChangeListenerTrigger (iEventHandler*, unsigned int trigger) = 0; 00092 00102 virtual csPtr<iEventOutlet> CreateEventOutlet (iEventPlug*) = 0; 00103 00115 virtual iEventOutlet* GetEventOutlet () = 0; 00116 00125 virtual iEventCord* GetEventCord (int Category, int Subcategory) = 0; 00126 00131 virtual csPtr<iEvent> CreateEvent(uint8 type) = 0; 00132 00139 virtual void Post (iEvent*) = 0; 00140 00147 virtual csPtr<iEvent> Get () = 0; 00148 00150 virtual void Clear () = 0; 00151 00153 virtual bool IsEmpty () = 0; 00154 00165 virtual void RemoveAllListeners () = 0; 00166 00167 }; 00168 00171 #endif // __CS_IUTIL_EVENTQ_H__