UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
UrcProtocol.hpp
1 /* UrcProtocol.hpp */
2 /* $Id: UrcProtocol.hpp,v 1.1 2003/02/24 17:52:50 vlad Exp $ */
3 #ifndef __UrcProtocol_hpp
4 #define __UrcProtocol_hpp
5 
6 #include <X11/Xlib.h>
7 #include <X11/Xatom.h>
8 
9 #include <mix/RecItem.hpp>
10 #include <mix/LongAr.H>
11 
13 typedef ULongAr AtomAr;
14 
15 
22 class UrcProtocol : public RecItem
23 {
24 public:
25 
28  UrcProtocol (Display* xdisplay, const RecDef& protodef,
29  const short version[2] = NULL);
30 
32  UrcProtocol (const UrcProtocol& proto);
33 
36  virtual void flush_changes (Window wid, Logic bForce = FALSE);
37 
41  virtual Logic update_atom (Window wid, Atom atom);
42 
44  virtual AnyValue read_atom (Window wid, int atom_i);
45 
48  virtual Logic implements_protocol (Window wid) const;
49 
51  virtual void version (short version[2]) const;
52 
57  virtual Logic version (Window wid, short version[2]) const;
58 
59 protected:
60 
62  Display *dpy;
63 
66 
68  Atom proto_atom;
69 
71  short proto_version[2];
72 
73 };
74 
75 
76 #endif /* UrcProtocol.hpp */
virtual void flush_changes(Window wid, Logic bForce=FALSE)
Definition: AnyValue.hpp:23
virtual Logic update_atom(Window wid, Atom atom)
Definition: RecItem.hpp:20
UrcProtocol(Display *xdisplay, const RecDef &protodef, const short version[2]=NULL)
Definition: LongAr.H:80
Atom proto_atom
Definition: UrcProtocol.hpp:68
Definition: UrcProtocol.hpp:22
virtual void version(short version[2]) const
short proto_version[2]
Definition: UrcProtocol.hpp:71
Display * dpy
Definition: UrcProtocol.hpp:62
Definition: RecDef.hpp:19
AtomAr atoms
Definition: UrcProtocol.hpp:65
virtual AnyValue read_atom(Window wid, int atom_i)
virtual Logic implements_protocol(Window wid) const