diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2009-08-14 14:40:43 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2009-08-14 14:40:43 -0400 |
commit | 2da8eb43d57ae6876f9955386f604f2c56849211 (patch) | |
tree | 5a6aee8ecbb481d953a7831519ef17ba8eb8c36e /indra/llui/llfloaterreglistener.h | |
parent | 9695162dc20085c807363e562281271cec21cc1d (diff) |
Wrap a subset of the LLFloaterReg API with an event API
Diffstat (limited to 'indra/llui/llfloaterreglistener.h')
-rw-r--r-- | indra/llui/llfloaterreglistener.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/indra/llui/llfloaterreglistener.h b/indra/llui/llfloaterreglistener.h new file mode 100644 index 0000000000..049389c094 --- /dev/null +++ b/indra/llui/llfloaterreglistener.h @@ -0,0 +1,34 @@ +/** + * @file llfloaterreglistener.h + * @author Nat Goodspeed + * @date 2009-08-12 + * @brief Wrap (subset of) LLFloaterReg API with an event API + * + * $LicenseInfo:firstyear=2009&license=viewergpl$ + * Copyright (c) 2009, Linden Research, Inc. + * $/LicenseInfo$ + */ + +#if ! defined(LL_LLFLOATERREGLISTENER_H) +#define LL_LLFLOATERREGLISTENER_H + +#include "lleventdispatcher.h" +#include <string> + +class LLSD; + +/// Event API wrapper for LLFloaterReg +class LLFloaterRegListener: public LLDispatchListener +{ +public: + /// As all public LLFloaterReg methods are static, there's no point in + /// binding an LLFloaterReg instance. + LLFloaterRegListener(const std::string& pumpName); + +private: + void getBuildMap(const LLSD& event) const; + void showInstance(const LLSD& event) const; + void hideInstance(const LLSD& event) const; +}; + +#endif /* ! defined(LL_LLFLOATERREGLISTENER_H) */ |