diff options
Diffstat (limited to 'src/UserSettingsPage.h')
-rw-r--r-- | src/UserSettingsPage.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/UserSettingsPage.h b/src/UserSettingsPage.h index c34bf1fc..bcc45cdc 100644 --- a/src/UserSettingsPage.h +++ b/src/UserSettingsPage.h @@ -115,6 +115,8 @@ class UserSettings : public QObject recentReactionsChanged) Q_PROPERTY(QStringList hiddenWidgets READ hiddenWidgets WRITE setHiddenWidgets NOTIFY hiddenWidgetsChanged) + Q_PROPERTY( + bool exposeDBusApi READ exposeDBusApi WRITE setExposeDBusApi NOTIFY exposeDBusApiChanged) UserSettings(); @@ -191,6 +193,7 @@ public: void setOpenImageExternal(bool state); void setOpenVideoExternal(bool state); void setCollapsedSpaces(QList<QStringList> spaces); + void setExposeDBusApi(bool state); QString theme() const { return !theme_.isEmpty() ? theme_ : defaultTheme_; } bool messageHoverHighlight() const { return messageHoverHighlight_; } @@ -255,6 +258,7 @@ public: bool openImageExternal() const { return openImageExternal_; } bool openVideoExternal() const { return openVideoExternal_; } QList<QStringList> collapsedSpaces() const { return collapsedSpaces_; } + bool exposeDBusApi() const { return exposeDBusApi_; } signals: void groupViewStateChanged(bool state); @@ -310,6 +314,7 @@ signals: void hiddenPinsChanged(); void hiddenWidgetsChanged(); void recentReactionsChanged(); + void exposeDBusApiChanged(bool state); private: // Default to system theme if QT_QPA_PLATFORMTHEME var is set. @@ -373,6 +378,7 @@ private: bool useIdenticon_; bool openImageExternal_; bool openVideoExternal_; + bool exposeDBusApi_; QSettings settings; @@ -398,6 +404,9 @@ class UserSettingsModel : public QAbstractListModel UseIdenticon, PrivacyScreen, PrivacyScreenTimeout, +#ifdef NHEKO_DBUS_SYS + ExposeDBusApi, +#endif TimelineSection, TimelineMaxWidth, @@ -458,6 +467,9 @@ class UserSettingsModel : public QAbstractListModel #ifdef Q_OS_MAC ScaleFactor, #endif +#ifndef NHEKO_DBUS_SYS + ExposeDBusApi, +#endif }; public: |