summaryrefslogtreecommitdiffstats
path: root/oldsrc/displaymanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'oldsrc/displaymanager.h')
-rw-r--r--oldsrc/displaymanager.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/oldsrc/displaymanager.h b/oldsrc/displaymanager.h
new file mode 100644
index 0000000..775b87b
--- /dev/null
+++ b/oldsrc/displaymanager.h
@@ -0,0 +1,32 @@
+#ifndef DISPLAYMANAGER_H
+#define DISPLAYMANAGER_H
+
+#include <QDebug>
+#include "output.h"
+
+#include <vector>
+using namespace std;
+
+class DisplayManager
+{
+public:
+
+ inline vector<Output>& getConnectedOutputs(){ return Outputs; }
+
+private:
+
+ Display *dpy;
+ XRRScreenResources *resources;
+ vector<Output> Outputs;
+
+
+/** Singleton pattern **/
+public:
+ static DisplayManager * Inst();
+private:
+ static DisplayManager * Instance;
+ DisplayManager();
+ ~DisplayManager();
+};
+
+#endif // DISPLAYMANAGER_H