Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2020-08-26 19:24:54 +0300
committerRobert Adam <dev@robert-adam.de>2020-08-31 17:07:41 +0300
commitccd5421bd460540a2708ab7672bd284515fbd4d5 (patch)
tree79d8198523b3ee7008f159789759df82e354ba51 /src/ChannelListener.h
parent7d8a8b40d966fb54d3b05e7ea40ef0efc20a6d66 (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.h7
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_