Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtinfo / dtinfo / src / Support / InputNotifier.C
1 // $XConsortium: InputNotifier.cc /main/3 1996/06/11 16:34:50 cde-hal $
2 # define L_Support
3 # define C_InputNotifier
4
5 # include <Prelude.h>
6 # include <stream.h>
7
8 #define CLASS InputNotifier
9
10 STATIC_SENDER_CC (WantInputReady);
11
12 STATIC_SENDER_CC (WantInputReadyCancel);
13
14 InputNotifier::InputNotifier (UAS_Receiver<InputReady> *receiver, int channel) {
15     fReceiver = receiver;
16     fChannel = channel;
17     WantInputReady msg;
18     msg.fReceiver = fReceiver;
19     msg.fChannel = fChannel;
20     send_message (msg);
21 }
22
23 InputNotifier::~InputNotifier () {
24     WantInputReadyCancel msg;
25     msg.fReceiver = fReceiver;
26     msg.fChannel = fChannel;
27     send_message (msg);
28 }