summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorJeff (Gioffredo Linden) <gioffredo@lindenlab.com>2012-10-12 18:14:57 -0400
committerJeff (Gioffredo Linden) <gioffredo@lindenlab.com>2012-10-12 18:14:57 -0400
commit48c7e2cee70996048b0974c6cdda67cdea11a32c (patch)
treedad1c39d591b0a71b48c72ca3912150b48a633ad /indra
parent1100a84b38494b480b0820bae36c6c8ca2bf12c6 (diff)
Expose Chat history to VITA by adding getValue method to llchathistory object
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llchathistory.cpp8
-rw-r--r--indra/newview/llchathistory.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp
index 3636f9e9d2..deb658c489 100644
--- a/indra/newview/llchathistory.cpp
+++ b/indra/newview/llchathistory.cpp
@@ -596,6 +596,14 @@ LLChatHistory::LLChatHistory(const LLChatHistory::Params& p)
mEditor = LLUICtrlFactory::create<LLTextEditor>(editor_params, this);
}
+LLSD LLChatHistory::getValue()
+{
+ LLSD* text=new LLSD();
+ text->assign(mEditor->getText());
+ return *text;
+
+}
+
LLChatHistory::~LLChatHistory()
{
this->clear();
diff --git a/indra/newview/llchathistory.h b/indra/newview/llchathistory.h
index 990c52f31b..fa88483fcd 100644
--- a/indra/newview/llchathistory.h
+++ b/indra/newview/llchathistory.h
@@ -103,7 +103,7 @@ class LLChatHistory : public LLUICtrl
public:
~LLChatHistory();
-
+ LLSD getVlue();
void initFromParams(const Params&);
/**