summaryrefslogtreecommitdiff
path: root/indra/llcommon/lleventapi.h
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2009-11-13 19:44:01 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2009-11-13 19:44:01 +0000
commit224cfffa1c46e144f290402f33b96d23cb27d98c (patch)
tree052fd0e5c761542d89d3b2553a02acaf68d4d408 /indra/llcommon/lleventapi.h
parent7722105e4ea4b5268f2eb1862eae2d55b3bfc933 (diff)
parent7e2d2406584ffe3a0c2f87734ada194a92b82df6 (diff)
merge.
Diffstat (limited to 'indra/llcommon/lleventapi.h')
-rw-r--r--indra/llcommon/lleventapi.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llcommon/lleventapi.h b/indra/llcommon/lleventapi.h
index 2cd3b5bf89..96d1b03be8 100644
--- a/indra/llcommon/lleventapi.h
+++ b/indra/llcommon/lleventapi.h
@@ -46,6 +46,19 @@ public:
/// Get the documentation string
std::string getDesc() const { return mDesc; }
+ /**
+ * Publish only selected add() methods from LLEventDispatcher.
+ * Every LLEventAPI add() @em must have a description string.
+ */
+ template <typename CALLABLE>
+ void add(const std::string& name,
+ const std::string& desc,
+ CALLABLE callable,
+ const LLSD& required=LLSD())
+ {
+ LLEventDispatcher::add(name, desc, callable, required);
+ }
+
private:
std::string mDesc;
};