summaryrefslogtreecommitdiff
path: root/indra/newview/llhints.h
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2019-06-20 20:03:47 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2019-06-20 20:03:47 +0300
commit2672093429ffd38e5f6c659e8e0220fde1501914 (patch)
tree208d691649d09020933aa98a06a2a26275b85375 /indra/newview/llhints.h
parenta74ea1811640f2647a1f6dd15663167dfdbe00ab (diff)
DRTVWR-493 LLHint to singleton
Diffstat (limited to 'indra/newview/llhints.h')
-rw-r--r--indra/newview/llhints.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/indra/newview/llhints.h b/indra/newview/llhints.h
index dd6195a9ce..1f730734d0 100644
--- a/indra/newview/llhints.h
+++ b/indra/newview/llhints.h
@@ -32,19 +32,22 @@
#include "llinitdestroyclass.h"
-class LLHints : public LLInitClass<LLHints>
+class LLHints : public LLSingleton<LLHints>
{
+ LLSINGLETON(LLHints);
+ ~LLHints();
public:
- static void show(LLNotificationPtr hint);
- static void hide(LLNotificationPtr hint);
- static void registerHintTarget(const std::string& name, LLHandle<LLView> target);
- static LLHandle<LLView> getHintTarget(const std::string& name);
- static void initClass();
+ void show(LLNotificationPtr hint);
+ void hide(LLNotificationPtr hint);
+ void registerHintTarget(const std::string& name, LLHandle<LLView> target);
+ LLHandle<LLView> getHintTarget(const std::string& name);
private:
- static LLRegistry<std::string, LLHandle<LLView> > sTargetRegistry;
+ LLRegistry<std::string, LLHandle<LLView> > mTargetRegistry;
typedef std::map<LLNotificationPtr, class LLHintPopup*> hint_map_t;
- static hint_map_t sHints;
- static void showHints(const LLSD& show);
+ hint_map_t mHints;
+ void showHints(const LLSD& show);
+
+ boost::signals2::connection mControlConnection;
};