blob: 186b62f78faad134cdee884ffb419ee8c30d646a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/*
* DNN - Data News Network
*
* by Stephane Chatty
*
* Copyright 1993-1994
* Centre d'Etudes de la Navigation Aerienne (CENA)
*
* Event triggers.
*
* $Id$
* $CurLog$
*/
#ifndef DnnTrigger_H_
#define DnnTrigger_H_
#ifdef __GNUG__
#pragma interface
#endif
#include "cplus_bugs.h"
#include "ccu/List.h"
class DnnReaction;
class DnnWindow;
class DnnEvent;
class DnnTrigger {
friend class DnnBaseReaction;
private:
DnnTrigger (const DnnTrigger&);
DnnTrigger& operator = (const DnnTrigger&);
protected:
CcuListOf <DnnBaseReaction> Subscribers;
CcuListOf <DnnBaseReaction> Grabs;
void Subscribe (DnnBaseReaction&);
void Unsubscribe (DnnBaseReaction&);
void Grab (DnnBaseReaction&);
void Release (DnnBaseReaction&);
public:
DnnTrigger ();
~DnnTrigger ();
inline const CcuListOf <DnnBaseReaction>& GetSubscribers () const { return Subscribers; }
void Dispatch (DnnEvent&);
};
#endif /* DnnTrigger_H_ */
|