diff options
author | Jeff (Gioffredo Linden) <gioffredo@lindenlab.com> | 2012-10-12 18:14:57 -0400 |
---|---|---|
committer | Jeff (Gioffredo Linden) <gioffredo@lindenlab.com> | 2012-10-12 18:14:57 -0400 |
commit | 48c7e2cee70996048b0974c6cdda67cdea11a32c (patch) | |
tree | dad1c39d591b0a71b48c72ca3912150b48a633ad | |
parent | 1100a84b38494b480b0820bae36c6c8ca2bf12c6 (diff) |
Expose Chat history to VITA by adding getValue method to llchathistory object
-rw-r--r-- | indra/newview/llchathistory.cpp | 8 | ||||
-rw-r--r-- | indra/newview/llchathistory.h | 2 |
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&); /** |