aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llcommandhandler.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:19 -0500
committerJacek Antonelli2008-08-15 23:45:19 -0500
commitb235c59d60472f818a9142c0886b95a0ff4191d7 (patch)
treed323c55587584b19cc43a03f58a178823f12d3cd /linden/indra/newview/llcommandhandler.h
parentSecond Life viewer sources 1.18.5.3 (diff)
downloadmeta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.zip
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.gz
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.bz2
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.xz
Second Life viewer sources 1.18.6.0-RC
Diffstat (limited to 'linden/indra/newview/llcommandhandler.h')
-rw-r--r--linden/indra/newview/llcommandhandler.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/linden/indra/newview/llcommandhandler.h b/linden/indra/newview/llcommandhandler.h
index 50928e2..0cb9d12 100644
--- a/linden/indra/newview/llcommandhandler.h
+++ b/linden/indra/newview/llcommandhandler.h
@@ -44,7 +44,7 @@ public:
44 LLFooHandler() : LLCommandHandler("foo") { } 44 LLFooHandler() : LLCommandHandler("foo") { }
45 45
46 // Your code here 46 // Your code here
47 bool handle(const std::vector<std::string>& tokens) 47 bool handle(const LLSD& tokens, const LLSD& queryMap)
48 { 48 {
49 if (tokens.size() < 1) return false; 49 if (tokens.size() < 1) return false;
50 LLUUID id( tokens[0] ); 50 LLUUID id( tokens[0] );
@@ -65,7 +65,8 @@ public:
65 65
66 virtual ~LLCommandHandler(); 66 virtual ~LLCommandHandler();
67 67
68 virtual bool handle(const std::vector<std::string>& params) = 0; 68 virtual bool handle(const LLSD& params,
69 const LLSD& queryMap) = 0;
69 // Execute the command with a provided (possibly empty) 70 // Execute the command with a provided (possibly empty)
70 // list of parameters. 71 // list of parameters.
71 // Return true if you did something, false if the parameters 72 // Return true if you did something, false if the parameters
@@ -76,7 +77,9 @@ public:
76class LLCommandDispatcher 77class LLCommandDispatcher
77{ 78{
78public: 79public:
79 static bool dispatch(const std::string& cmd, const std::vector<std::string>& params); 80 static bool dispatch(const std::string& cmd,
81 const LLSD& params,
82 const LLSD& queryMap);
80 // Execute a command registered via the above mechanism, 83 // Execute a command registered via the above mechanism,
81 // passing string parameters. 84 // passing string parameters.
82 // Returns true if command was found and executed correctly. 85 // Returns true if command was found and executed correctly.