mutterkey
KDE-first push-to-talk transcription tool for KDE Plasma
Loading...
Searching...
No Matches
traystatuswindow.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <QWidget>
6
7class QLabel;
8class QPlainTextEdit;
9
18class TrayStatusWindow final : public QWidget
19{
20 Q_OBJECT
21
22public:
28 explicit TrayStatusWindow(DaemonControlSession *client = nullptr, QWidget *parent = nullptr);
29public Q_SLOTS:
33 void refresh();
34
35private:
36 void setOfflineState(const QString &message);
37
38 LocalDaemonControlSession m_ownedSession;
39 DaemonControlSession *m_session = nullptr;
40 QLabel *m_connectionValue = nullptr;
41 QLabel *m_configPathValue = nullptr;
42 QLabel *m_shortcutValue = nullptr;
43 QLabel *m_modelPathValue = nullptr;
44 QPlainTextEdit *m_statusJsonView = nullptr;
45};
Interface used by tray-facing code to query daemon state.
Concrete local-socket implementation of the daemon control session API.
Read-only status window for the initial tray-shell slice.
TrayStatusWindow(DaemonControlSession *client=nullptr, QWidget *parent=nullptr)
Creates the status window and performs an initial refresh.
void refresh()
Refreshes the window from the daemon control API.
Synchronous client for the local Mutterkey daemon control socket.