Add D-Bus API (#916)

This adds functionality for viewing joined rooms and activating rooms.
This commit is contained in:
Loren Burkholder 2022-04-14 11:02:55 -04:00 committed by GitHub
parent 3329b7aab2
commit 686ebfdbec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 508 additions and 54 deletions

View file

@ -54,6 +54,10 @@ public:
//! Show the chat page and start communicating with the given access token.
void showChatPage();
#ifdef NHEKO_DBUS_SYS
bool dbusAvailable() const { return dbusAvailable_; }
#endif
protected:
void closeEvent(QCloseEvent *event);
bool event(QEvent *event) override;
@ -96,4 +100,8 @@ private:
TrayIcon *trayIcon_;
MxcImageProvider *imgProvider = nullptr;
#ifdef NHEKO_DBUS_SYS
bool dbusAvailable_{false};
#endif
};