summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-14 15:57:58 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-14 15:57:58 +0200
commit4521837765b6eb27f86773594995f8f483690d92 (patch)
treedbb155116b70e21233b9de27e8e2d546afee3720 /include
parentAdd a checkmark to messages that have been received by the server (#93) (diff)
downloadnheko-4521837765b6eb27f86773594995f8f483690d92.tar.xz
Add option to disable typing notifications
fixes #131
Diffstat (limited to 'include')
-rw-r--r--include/UserSettingsPage.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/UserSettingsPage.h b/include/UserSettingsPage.h

index 6c825a83..73f4b5e1 100644 --- a/include/UserSettingsPage.h +++ b/include/UserSettingsPage.h
@@ -61,10 +61,17 @@ public: save(); }; + void setTypingNotifications(bool state) + { + isTypingNotificationsEnabled_ = state; + save(); + }; + QString theme() const { return !theme_.isEmpty() ? theme_ : "light"; } bool isTrayEnabled() const { return isTrayEnabled_; } bool isOrderingEnabled() const { return isOrderingEnabled_; } bool isGroupViewEnabled() const { return isGroupViewEnabled_; } + bool isTypingNotificationsEnabled() const { return isTypingNotificationsEnabled_; } signals: void groupViewStateChanged(bool state); @@ -74,6 +81,7 @@ private: bool isTrayEnabled_; bool isOrderingEnabled_; bool isGroupViewEnabled_; + bool isTypingNotificationsEnabled_; }; class HorizontalLine : public QFrame @@ -114,6 +122,7 @@ private: Toggle *trayToggle_; Toggle *roomOrderToggle_; Toggle *groupViewToggle_; + Toggle *typingNotifications_; QComboBox *themeCombo_;