diff options
author | Popkornium18 <mail@popkornium18.de> | 2020-06-13 02:27:39 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2020-06-17 19:41:02 +0300 |
commit | 1a4d134a35b656113684b8070a74bfd2474304a1 (patch) | |
tree | 4444199f6c2f1c019dae1826405565e3edba51bf /src/mumble/Database.h | |
parent | d73465e3a26f398f2ccb0736280403583114dbf0 (diff) |
FEAT(tts): Allow disabling Text-To-Speech per user
These changes make it possible to turn of TTS for a specific user while
still receiving their messages.
This setting can be managed from the context menu of a user that is
connected to the server and is only visible when TTS is enabled
globally.
A new DB table called 'ignored_tts' had to be created to persist this
setting.
Diffstat (limited to 'src/mumble/Database.h')
-rw-r--r-- | src/mumble/Database.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mumble/Database.h b/src/mumble/Database.h index abb51a1c2..3e626c044 100644 --- a/src/mumble/Database.h +++ b/src/mumble/Database.h @@ -37,6 +37,9 @@ class Database : public QObject { bool isLocalIgnored(const QString &hash); void setLocalIgnored(const QString &hash, bool ignored); + bool isLocalIgnoredTTS(const QString &hash); + void setLocalIgnoredTTS(const QString &hash, bool ignoredTTS); + bool isLocalMuted(const QString &hash); void setLocalMuted(const QString &hash, bool muted); |