Continues migration with DDS, Common

This commit is contained in:
torsten committed 2026-07-17 12:41:42 +02:00
1 parent 9b15cee841
commit fa48db111e
668 files changed
+111841 -2

No files matched your search

+69
View File
@@ -0,0 +1,69 @@
#pragma once
#include <QObject>
#include <QProcess>
#include <QRect>
#include <QString>
#include <QVector>
#include "logger.h"
class QScreen;
namespace LtsProjectionWorkstation
{
class SingleShotProcess
{
public:
explicit SingleShotProcess(const QString &cmd, bool startImmediatly = false);
bool execute();
private:
QProcess m_process;
QString m_cmd;
};
struct VncScreen
{
QString name;
QProcess *proc = nullptr;
QRect geometry;
quint16 port = 0;
};
class VncServerManager : public QObject
{
Q_OBJECT
public:
explicit VncServerManager(LOGGER_T &logger, QObject *parent = nullptr);
~VncServerManager();
bool init(const QList<QScreen *> &screens);
const QVector<VncScreen> &screens() const { return m_vncScreens; }
void startScreens();
void stopScreens();
void killScreens();
void createPwdFile();
private slots:
void slotReadStandardOutput();
void slotErrorOccured();
private:
QVector<VncScreen> m_vncScreens;
LOGGER_T &m_logger;
};
}