Debian Codegraph @

src/eventmanager.h

raw symbols SCIP
1 /***************************************************************************
2 eventmanager.h - description
3 -------------------
4 begin : Fri Sep 15 2000
5 copyright : (C) 2000 by Waldemar Baraldi
6 email : [email protected]
7 ***************************************************************************/
8
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18 #ifndef EVENT_MANAGER_H
19 #define EVENT_MANAGER_H
20
21 #include "object.h"
22 #include "SDL.h"
23 #include "list.h"
24 #include "eventstream.h"
25
26 class EventManager: public Object{
27
28 public:
29
30 EventManager();
31 ~EventManager();
32
33 void addStream(EventStream * s);
34
35 /** Los streams no son liberados ni al hacer
36 remove ni en el destructor.*/
37 void removeStream(EventStream * s);
38
39 /** Pasa todos los eventos de los dispositivos
40 a los streams. Si no hubo eventos en los dispositivos:
41 si wait=true espera hasta que pueda pasar uno,
42 si wait=false retorna.*/
43
44 void pumpEvents(bool wait=false);
45
46 protected:
47
48 List * lista_streams;
49 };
50 #endif
51