c1d7548a9f7162a67477e4c043b201ac3da2233b
[oweals/cde.git] / cde / programs / dtinfo / dtinfo / src / Managers / ServiceMgrX.hh
1 /*
2  * $XConsortium: ServiceMgrX.hh /main/3 1996/06/11 16:28:05 cde-hal $
3  *
4  * Copyright (c) 1992 HaL Computer Systems, Inc.  All rights reserved.
5  * UNPUBLISHED -- rights reserved under the Copyright Laws of the United
6  * States.  Use of a copyright notice is precautionary only and does not
7  * imply publication or disclosure.
8  * 
9  * This software contains confidential information and trade secrets of HaL
10  * Computer Systems, Inc.  Use, disclosure, or reproduction is prohibited
11  * without the prior express written permission of HaL Computer Systems, Inc.
12  * 
13  *                         RESTRICTED RIGHTS LEGEND
14  * Use, duplication, or disclosure by the Government is subject to
15  * restrictions as set forth in subparagraph (c)(l)(ii) of the Rights in
16  * Technical Data and Computer Software clause at DFARS 252.227-7013.
17  *                        HaL Computer Systems, Inc.
18  *                  1315 Dell Avenue, Campbell, CA  95008
19  * 
20  */
21
22 #include <X11/Intrinsic.h>
23
24 extern "C" {
25 #include "external-api/olias.h"
26 }
27
28 class ServiceMgr : public ClientEventHandler
29 {
30 public: // functions
31   ServiceMgr();
32   ~ServiceMgr();
33
34   void establish_server();
35
36 protected: // functions
37
38   void create_atoms();
39
40   void reply_to_client (Window, OliasStatus);
41
42 //  static void handle_olias_event (Widget, XtPointer, XEvent *, Boolean *);
43
44   void handle_event(Widget, XEvent*, Boolean *);
45
46   void get_olias_event (XEvent *);
47
48   static void receive_olias_event (Widget, XtPointer, Atom *, Atom *,
49                                    XtPointer, unsigned long *, int *);
50   void process_olias_event (Window client,
51                             unsigned char *stream, unsigned long length);
52
53 private:
54   LONG_LIVED_HH(ServiceMgr,service_manager);
55 };
56
57 LONG_LIVED_HH2(ServiceMgr,service_manager);
58
59