]> Dogcows Code - chaz/openbox/blobdiff - src/openbox.hh
new timer infrastructure. takes a function pointer for the timeout, with a void*...
[chaz/openbox] / src / openbox.hh
index 56e31d06b655854d8f6edf2d29d0eb479ea9b473..76a7d973786d8d9095859eb5d29385dfaa27e39c 100644 (file)
@@ -10,6 +10,7 @@ extern "C" {
 #include <vector>
 
 #include "otk/screeninfo.hh"
+#include "otk/timer.hh"
 
 namespace ob {
 
@@ -28,11 +29,15 @@ public:
   };
   
 private:
+  // stuff that can be passed on the command line
   std::string _rcfilepath;   // path to the config file to use/in use
   std::string _menufilepath; // path to the menu file to use/in use
   char *_displayreq;         // display requested by the user
   char *_argv0;              // argv[0], how the program was called
 
+  otk::OBTimerQueueManager _timermanager; // manages timers, so that they fire
+                                          // when their time elapses
+
   RunState _state;           // the state of the window manager
 
   ScreenInfoList _screenInfoList; // info for all screens on the display
@@ -57,6 +62,8 @@ public:
   //! Returns the state of the window manager (starting, exiting, etc).
   inline RunState state() const { return _state; }
 
+  inline otk::OBTimerQueueManager *timerManager() { return &_timermanager; }
+
   void eventLoop();
 
   // XXX: TEMPORARY!#!@%*!^#*!#!#!
This page took 0.023662 seconds and 4 git commands to generate.