Files
RRJClient/Core/screenchecker.h
2025-01-20 10:58:43 +03:00

37 lines
707 B
C++

#ifndef SCREENCHECKER_H
#define SCREENCHECKER_H
#include "dataparser.h"
#include <QObject>
#include <QScreen>
#include <QGuiApplication>
#include <QDebug>
#include <QPushButton>
#include <QHBoxLayout>
class ScreenChecker : public QObject
{
Q_OBJECT
public:
explicit ScreenChecker(DataParser *dataParser, QHBoxLayout *layout,QObject *parent = nullptr);
~ScreenChecker();
void Check();
void UpdateDisplayData();
void hide();
void show();
QString getScreenCount() const;
private:
DataParser *dataParser;
QWidget *widget;
QHBoxLayout *layout;
qint64 screenCount;
QList<QScreen *> screens;
QList<QPushButton *> buttons;
};
#endif // SCREENCHECKER_H