-
Notifications
You must be signed in to change notification settings - Fork 2
/
ddcutilController.h
40 lines (30 loc) · 1.04 KB
/
ddcutilController.h
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
33
34
35
36
37
38
39
40
#ifndef DDCUTILCONTROLLER_H
#define DDCUTILCONTROLLER_H
#include <QObject>
#include <QDebug>
#include <QList>
#include <ddcutil_c_api.h>
class DDCutilController: public QObject
{
Q_OBJECT
public:
DDCutilController();
void detect();
// bool isSupported() const;
unsigned int monitorNumber() const;
long brightness(const unsigned int dispIdx) const;
long brightnessMax(const unsigned int dispIdx) const;
QList<QString> whitePointList(const unsigned int dispIdx) const;
public slots:
void setBrightness(const unsigned int dispIdx, long value);
QString nameForDisplay(const unsigned int iDisplay);
void setWhitepoint(const unsigned int dispIdx, const QString &newWhitepoint);
private:
QList<DDCA_Display_Handle> m_displayHandleList;
QList<DDCA_Display_Info> m_displayInfoList;
//Per display properties
//destription mapped to vcp values for easy retrieval
QList<QMap<QString, int>*> m_descrToVcp_perDisp;
QList<QMap<int, QMap<int, QString>*>*> m_vcpTovcpValueWithDescr_perDisp;
};
#endif