Update dragonrelaybackend.h
This commit is contained in:
parent
0cbea1dd7c
commit
8d79aa76fb
1 changed files with 5 additions and 3 deletions
|
|
@ -8,14 +8,15 @@
|
|||
//
|
||||
// Registration in main.cpp (or wherever the QML engine is created):
|
||||
//
|
||||
// DragonRelayBackend *backend = new DragonRelayBackend(engine);
|
||||
// engine->rootContext()->setContextProperty("dragonRelay", backend);
|
||||
// DragonRelayBackend relayBackend;
|
||||
// engine.rootContext()->setContextProperty("dragonRelay", &relayBackend);
|
||||
//
|
||||
// QML usage:
|
||||
//
|
||||
// dragonRelay.connectRelay(url, user, pass)
|
||||
// dragonRelay.disconnectRelay()
|
||||
// dragonRelay.streamHost(ip, app)
|
||||
// dragonRelay.streamHost(ip, app, displayIndex)
|
||||
// dragonRelay.status // int — DragonRelayBackend::Status enum
|
||||
// dragonRelay.statusText // QString
|
||||
// dragonRelay.hosts // QVariantList of {name, ip, port, online, source}
|
||||
|
|
@ -80,7 +81,8 @@ public slots:
|
|||
Q_INVOKABLE void disconnectRelay();
|
||||
|
||||
// Ask Moonlight to stream to a host discovered via the relay.
|
||||
Q_INVOKABLE void streamHost(const QString &ip, const QString &app = QStringLiteral("Desktop"));
|
||||
// displayIndex specifies which display to stream (0 = primary, 1+ = secondary displays).
|
||||
Q_INVOKABLE void streamHost(const QString &ip, const QString &app = QStringLiteral("Desktop"), int displayIndex = 0);
|
||||
|
||||
// Get displays for a host by its IP.
|
||||
Q_INVOKABLE QVariantList displaysForHost(const QString &hostIP) const;
|
||||
|
|
|
|||
Loading…
Reference in a new issue