mirror of https://github.com/cutefishos/settings
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
558 B
C++
30 lines
558 B
C++
#ifndef CSCREENMANAGER_H
|
|
#define CSCREENMANAGER_H
|
|
|
|
#include <QObject>
|
|
#include <QScreen>
|
|
#include <QMap>
|
|
|
|
#include "cscreenoutput.h"
|
|
|
|
class CScreenManager : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CScreenManager(QObject *parent = nullptr);
|
|
|
|
QMap<int, CScreenOutput *> outputMap() const;
|
|
int outputId(const QScreen *qscreen);
|
|
|
|
private slots:
|
|
void screenAdded(const QScreen *qscreen);
|
|
void screenRemoved(QScreen *qscreen);
|
|
|
|
private:
|
|
QMap<int, CScreenOutput *> m_outputMap;
|
|
int m_lastOutputId;
|
|
};
|
|
|
|
#endif // CSCREENMANAGER_H
|