Upload dragonrelaybackend.h

This commit is contained in:
Zac Gaetano 2026-05-06 20:16:45 -04:00
parent b2bcd96702
commit 2612ce2936

View file

@ -30,6 +30,7 @@
#include <QTimer>
#include <QVariant>
#include <QVariantList>
#include <QMap>
#include "relayclient.h"
#include "tunnelmanager.h"
@ -81,6 +82,12 @@ public slots:
// Ask Moonlight to stream to a host discovered via the relay.
Q_INVOKABLE void streamHost(const QString &ip, const QString &app = QStringLiteral("Desktop"));
// Get displays for a host by its IP.
Q_INVOKABLE QVariantList displaysForHost(const QString &hostIP) const;
// Stream a specific display from a host.
Q_INVOKABLE void streamHostDisplay(const QString &hostIP, int displayIndex);
// Refresh the host list immediately (called by QML pull-to-refresh).
Q_INVOKABLE void refreshHosts();
@ -123,6 +130,8 @@ private:
QString m_savedUser;
QString m_savedPass;
QMap<QString, QVariantList> m_hostDisplays;
QSettings m_settings; // persists last-used URL + username
};