diff options
author | Robert Adam <dev@robert-adam.de> | 2020-08-26 19:24:54 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2020-08-31 17:07:41 +0300 |
commit | ccd5421bd460540a2708ab7672bd284515fbd4d5 (patch) | |
tree | 79d8198523b3ee7008f159789759df82e354ba51 /src/ChannelListener.h | |
parent | 7d8a8b40d966fb54d3b05e7ea40ef0efc20a6d66 (diff) |
FEAT(talking-ui): Allow ChannelListeners to be shown
With this feature the ChannelListeners of the local user can optionally
been shown in the TalkingUI (and thereby the channels they are in as
well). This is kinda similar to the option that allows you to always see
the local user in the UI.
Diffstat (limited to 'src/ChannelListener.h')
-rw-r--r-- | src/ChannelListener.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ChannelListener.h b/src/ChannelListener.h index c7046ea43..c112befea 100644 --- a/src/ChannelListener.h +++ b/src/ChannelListener.h @@ -112,10 +112,10 @@ class ChannelListener : public QObject { /// Clears all ChannelListeners and volume adjustments void clearImpl(); + public: /// @returns The static ChannelListener instance static ChannelListener& get(); - public: /// Adds a listener to the channel. /// /// @param userSession The session ID of the user @@ -245,6 +245,11 @@ class ChannelListener : public QObject { /// Clears all ChannelListeners and volume adjustments static void clear(); + + signals: +#ifdef MUMBLE + void localVolumeAdjustmentsChanged(int channelID, float newAdjustment, float oldAdjustment); +#endif }; #endif // MUMBLE_CHANNEL_LISTENER_H_ |