diff options
Diffstat (limited to 'src/displaymanager.h')
-rw-r--r-- | src/displaymanager.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/displaymanager.h b/src/displaymanager.h new file mode 100644 index 0000000..775b87b --- /dev/null +++ b/src/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 |