]> git.lyx.org Git - lyx.git/blob - src/support/syscontr.h
some new (not extensive) changes, some fixes, will probably reverto to .la libs later...
[lyx.git] / src / support / syscontr.h
1 // -*- C++ -*-
2
3 #ifdef __GNUG__
4 #pragma interface
5 #endif
6
7 #include <LString.h>
8
9
10 class Systemcalls;
11
12 class SystemcallsSingletoncontroller {
13 public:
14         class Startcontroller {
15         public:
16                 Startcontroller();
17                 ~Startcontroller();
18                 static SystemcallsSingletoncontroller * getController();
19                 void reduceRefcount() { refcount--; }
20         private:
21                 static SystemcallsSingletoncontroller * contr;
22                 static int refcount;
23         };
24         ~SystemcallsSingletoncontroller();
25         void addCall(Systemcalls const & newcall);
26         void timer();
27         // private: // DEC cxx does not like that (JMarc)
28         SystemcallsSingletoncontroller();
29 private:
30         struct ControlledCalls {
31                 Systemcalls *call;
32                 ControlledCalls *next; 
33         };
34         ControlledCalls * sysCalls;
35 };