mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-14 18:57:07 -07:00
Implement Wakeup
This commit is contained in:
parent
52cacecaa0
commit
4fadc02947
9 changed files with 132 additions and 8 deletions
|
@ -59,6 +59,8 @@ class DiscoveryManager : public QObject
|
|||
|
||||
void SetActive(bool active);
|
||||
|
||||
void SendWakeup(const QString &host, const QByteArray ®ist_key);
|
||||
|
||||
const QList<DiscoveryHost> GetHosts() const { return hosts; }
|
||||
|
||||
signals:
|
||||
|
|
|
@ -56,6 +56,7 @@ class MainWindow : public QMainWindow
|
|||
QList<DisplayServer> display_servers;
|
||||
|
||||
DisplayServer *DisplayServerFromSender();
|
||||
void SendWakeup(const DisplayServer *server);
|
||||
|
||||
private slots:
|
||||
void ServerItemWidgetSelected();
|
||||
|
|
|
@ -37,6 +37,7 @@ class ServerItemWidget : public QFrame
|
|||
ServerIconWidget *icon_widget;
|
||||
|
||||
QAction *delete_action;
|
||||
QAction *wake_action;
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue