summaryrefslogtreecommitdiff
path: root/indra/newview/lloutputmonitorctrl.h
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2009-09-11 23:50:59 +0000
committerSteven Bennetts <steve@lindenlab.com>2009-09-11 23:50:59 +0000
commit7df79382a075646a51f21bed0d7f8de883fc3608 (patch)
treee7a71ed0dc7e05e4091066e3a0455343dfcfce4f /indra/newview/lloutputmonitorctrl.h
parent56449313529145a3d3c0e231967d9502b549056c (diff)
merge https://svn.aws.productengine.com/secondlife/export-from-ll/viewer-2-0@1634 https://svn.aws.productengine.com/secondlife/pe/stable-2@1648 -> viewer-2.0.0-3
* Bugs: EXT-888 EXT-866 EXT-861 EXT-858 EXT-864 EXT-875 EXT-884 EXT-718 EXT-786 EXT-885 EXT-910 EXT-845 EXT-312 EXT-823 EXT-868 * New Development: EXT-748 EXT-863 EXT-835 QA: Please test Recent List to verify it has no troubles.
Diffstat (limited to 'indra/newview/lloutputmonitorctrl.h')
-rw-r--r--indra/newview/lloutputmonitorctrl.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/indra/newview/lloutputmonitorctrl.h b/indra/newview/lloutputmonitorctrl.h
index 98b2fe9dc6..7a7b8bc3a1 100644
--- a/indra/newview/lloutputmonitorctrl.h
+++ b/indra/newview/lloutputmonitorctrl.h
@@ -35,6 +35,7 @@
#include "v4color.h"
#include "llview.h"
+#include "llmutelist.h"
class LLTextBox;
class LLUICtrlFactory;
@@ -44,7 +45,7 @@ class LLUICtrlFactory;
//
class LLOutputMonitorCtrl
-: public LLView
+: public LLView, LLMuteListObserver
{
public:
struct Params : public LLInitParam::Block<Params, LLView::Params>
@@ -56,6 +57,8 @@ public:
image_level_1,
image_level_2,
image_level_3;
+ Optional<bool> auto_update;
+ Optional<LLUUID> speaker_id;
Params();
};
@@ -80,6 +83,11 @@ public:
// correct button image.
void setIsTalking(bool val) { mIsTalking = val; }
+ void setSpeakerId(const LLUUID& speaker_id);
+
+ //called by mute list
+ virtual void onChange();
+
private:
//static LLColor4 sColorMuted;
//static LLColor4 sColorNormal;
@@ -89,6 +97,8 @@ private:
//static F32 sRectWidthRatio;
//static F32 sRectHeightRatio;
+
+
F32 mPower;
bool mIsMuted;
bool mIsTalking;
@@ -98,6 +108,12 @@ private:
LLPointer<LLUIImage> mImageLevel1;
LLPointer<LLUIImage> mImageLevel2;
LLPointer<LLUIImage> mImageLevel3;
+
+ /** whether to deal with gVoiceClient directly */
+ bool mAutoUpdate;
+
+ /** uuid of a speaker being monitored */
+ LLUUID mSpeakerId;
};
#endif