summaryrefslogtreecommitdiff
path: root/indra/llcommon/lleventapi.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2009-11-13 12:22:40 -0500
committerNat Goodspeed <nat@lindenlab.com>2009-11-13 12:22:40 -0500
commit8dda668fc43a1e13904f2d28f5d69b06e5985b9f (patch)
tree57a2ebec68315e9d40828841cd19f844ae3299ce /indra/llcommon/lleventapi.h
parent230f28080cfcb6785c248340aaa42cfb29703b23 (diff)
parent2f97829aab549a4d65daead298361a0c25399be2 (diff)
Automated merge with ssh://hg.lindenlab.com/viewer/viewer-2-0/
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;
};