summaryrefslogtreecommitdiffstats
path: root/src/displaymanager.h
blob: 775b87b4cce12c2330ce40cd5cbeaf8e64051256 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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