summaryrefslogtreecommitdiff
path: root/indra/newview/llcommandhandler.h
diff options
context:
space:
mode:
authorTess Chu <tess@lindenlab.com>2007-11-20 02:53:43 +0000
committerTess Chu <tess@lindenlab.com>2007-11-20 02:53:43 +0000
commit2f6c7606241acdf800a2c079b359e7a1db360954 (patch)
treeadb6e6e34f9c3df1e2252b2f763ae20970c0e2d4 /indra/newview/llcommandhandler.h
parent813b140d0767146b17acf4ad2fb96fbd5a347c34 (diff)
svn merge -r 73926:74098 svn+ssh://svn/svn/linden/branches/viewer-auth-7
Diffstat (limited to 'indra/newview/llcommandhandler.h')
-rw-r--r--indra/newview/llcommandhandler.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/newview/llcommandhandler.h b/indra/newview/llcommandhandler.h
index 50928e210b..0cb9d123fa 100644
--- a/indra/newview/llcommandhandler.h
+++ b/indra/newview/llcommandhandler.h
@@ -44,7 +44,7 @@ public:
LLFooHandler() : LLCommandHandler("foo") { }
// Your code here
- bool handle(const std::vector<std::string>& tokens)
+ bool handle(const LLSD& tokens, const LLSD& queryMap)
{
if (tokens.size() < 1) return false;
LLUUID id( tokens[0] );
@@ -65,7 +65,8 @@ public:
virtual ~LLCommandHandler();
- virtual bool handle(const std::vector<std::string>& params) = 0;
+ virtual bool handle(const LLSD& params,
+ const LLSD& queryMap) = 0;
// Execute the command with a provided (possibly empty)
// list of parameters.
// Return true if you did something, false if the parameters
@@ -76,7 +77,9 @@ public:
class LLCommandDispatcher
{
public:
- static bool dispatch(const std::string& cmd, const std::vector<std::string>& params);
+ static bool dispatch(const std::string& cmd,
+ const LLSD& params,
+ const LLSD& queryMap);
// Execute a command registered via the above mechanism,
// passing string parameters.
// Returns true if command was found and executed correctly.