Implement Wakeup

This commit is contained in:
Florian Märkl 2019-08-16 22:32:41 +02:00
commit 4fadc02947
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
9 changed files with 132 additions and 8 deletions

View file

@ -59,6 +59,8 @@ class DiscoveryManager : public QObject
void SetActive(bool active);
void SendWakeup(const QString &host, const QByteArray &regist_key);
const QList<DiscoveryHost> GetHosts() const { return hosts; }
signals:

View file

@ -56,6 +56,7 @@ class MainWindow : public QMainWindow
QList<DisplayServer> display_servers;
DisplayServer *DisplayServerFromSender();
void SendWakeup(const DisplayServer *server);
private slots:
void ServerItemWidgetSelected();

View file

@ -37,6 +37,7 @@ class ServerItemWidget : public QFrame
ServerIconWidget *icon_widget;
QAction *delete_action;
QAction *wake_action;
protected:
void mousePressEvent(QMouseEvent *event) override;