source: golgotha/src/maxtool/sdk_inc/evrouter.h @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
  • Property svn:keywords set to Id
File size: 899 bytes
Line 
1/*********************************************************************
2 *<
3        FILE: evrouter.h
4
5        DESCRIPTION: Event router functionality
6
7        CREATED BY:     Tom Hudson
8
9        HISTORY: Created 16 June 1995
10
11 *>     Copyright (c) 1995, All Rights Reserved.
12 **********************************************************************/
13
14#ifndef __EVROUTER__
15#define __EVROUTER__
16
17#include "evuser.h"
18
19typedef EventUser* PEventUser;
20typedef Tab<PEventUser> PEventUserTab;
21
22class EventRouter {
23        private:
24                PEventUserTab userTab;
25        public:
26                CoreExport void Register(EventUser *user);
27                CoreExport void UnRegister(EventUser *user);
28                // Process the event.  Returns TRUE if the event was handed off to a user.
29                CoreExport BOOL Process();
30        };
31
32extern CoreExport EventRouter deleteRouter;
33extern CoreExport EventRouter backspaceRouter;
34
35#endif // __EVROUTER__
Note: See TracBrowser for help on using the repository browser.