Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

eventq.h

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 __IUTIL_EVENTQ_H__
00021 #define __IUTIL_EVENTQ_H__
00022 
00023 #include "csutil/scf.h"
00024 struct iEvent;
00025 struct iEventCord;
00026 struct iEventOutlet;
00027 struct iEventPlug;
00028 struct iEventHandler;
00029 
00030 SCF_VERSION(iEventQueue, 0, 0, 1);
00031 
00040 struct iEventQueue : public iBase
00041 {
00049   virtual void Process() = 0;
00050 
00057   virtual void Dispatch(iEvent&) = 0;
00058 
00072   virtual void RegisterListener(iEventHandler*, unsigned int trigger) = 0;
00073 
00077   virtual void RemoveListener(iEventHandler*) = 0;
00078 
00083   virtual void ChangeListenerTrigger(iEventHandler*, unsigned int trigger) = 0;
00084 
00094   virtual iEventOutlet* CreateEventOutlet(iEventPlug*) = 0;
00095 
00110   virtual iEventOutlet* GetEventOutlet() = 0;
00111 
00119   virtual iEventCord* GetEventCord(int Category, int Subcategory) = 0;
00120 
00127   virtual void Post(iEvent*) = 0;
00128 
00137   virtual iEvent* Get() = 0;
00138 
00140   virtual void Clear() = 0;
00141 
00143   virtual bool IsEmpty() = 0;
00144 };
00145 
00146 #endif // __IUTIL_EVENTQ_H__

Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000