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

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 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: 1.3 KB
Line 
1/*********************************************************************
2 *<
3        FILE: evuser.h
4
5        DESCRIPTION: Event user 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/**********************************************************************
15How to use:
16
17This is a set of classes which form a generic notification system.  To
18use:
19
20* Create an EventUser object.
21
22* Register the EventUser object with the appropriate router.
23
24* The EventRouter will call your EventUser's Notify() method when
25the event occurs.
26
27* When you're done with the EventUser object, call the EventRouter's
28UnRegister() method.  This will delete the EventUser from the router's
29notification system.
30
31* If your code is part of a window proc, call the router's Register
32and UnRegister methods when the window receives WM_ACTIVATE messages.
33This will properly uncouple the notification system when the window is
34deactivated.
35
36**********************************************************************/
37
38#ifndef __EVUSER__
39#define __EVUSER__
40
41class EventUser {
42        public:
43                virtual void Notify()=0;
44        };
45
46#endif // __EVUSER__
Note: See TracBrowser for help on using the repository browser.