summaryrefslogtreecommitdiff
path: root/indra/newview/llnearbychatbar.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llnearbychatbar.h')
-rw-r--r--indra/newview/llnearbychatbar.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llnearbychatbar.h b/indra/newview/llnearbychatbar.h
index b640aedf7a..4b0c42c3c0 100644
--- a/indra/newview/llnearbychatbar.h
+++ b/indra/newview/llnearbychatbar.h
@@ -38,6 +38,7 @@
#include "llgesturemgr.h"
#include "llchat.h"
#include "llchiclet.h"
+#include "llvoiceclient.h"
class LLGestureComboBox
: public LLComboBox
@@ -65,6 +66,7 @@ protected:
class LLNearbyChatBar
: public LLPanel
+, public LLVoiceClientStatusObserver
{
public:
// constructor for inline chat-bars (e.g. hosted in chat history window)
@@ -75,6 +77,8 @@ public:
static LLNearbyChatBar* getInstance();
+ static bool instanceExists();
+
LLLineEditor* getChatBox() { return mChatBox; }
std::string getCurrentChat();
@@ -87,6 +91,11 @@ public:
static void sendChatFromViewer(const std::string &utf8text, EChatType type, BOOL animate);
static void sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL animate);
+ /**
+ * Implements LLVoiceClientStatusObserver::onChange()
+ */
+ /*virtual*/ void onChange(EStatusType status, const std::string &channelURI, bool proximal);
+
protected:
static BOOL matchChatTypeTrigger(const std::string& in_str, std::string* out_str);
static void onChatBoxKeystroke(LLLineEditor* caller, void* userdata);