summaryrefslogtreecommitdiff
path: root/src/lib/help.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-06-10 00:50:37 +0200
committerCarl Hetherington <cth@carlh.net>2020-06-20 20:09:15 +0200
commit9946c7aabecbb578dcbcb37f27973a98616956ce (patch)
tree2a3029fee1bdb43cd31bf9169bc8dd440d6f6c4c /src/lib/help.cc
parent2d9ad1b7bb17ae209aab7f85eb9d850bfead265f (diff)
First hacks on OOBE help.
Diffstat (limited to 'src/lib/help.cc')
-rw-r--r--src/lib/help.cc25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/lib/help.cc b/src/lib/help.cc
new file mode 100644
index 000000000..a7185686d
--- /dev/null
+++ b/src/lib/help.cc
@@ -0,0 +1,25 @@
+#include "help.h"
+#include <boost/bind.hpp>
+#include <boost/ref.hpp>
+
+
+Help* Help::_instance = 0;
+
+
+Help*
+Help::instance ()
+{
+ if (!_instance) {
+ _instance = new Help ();
+ }
+
+ return _instance;
+}
+
+
+void
+Help::event (EventType e)
+{
+ emit (boost::bind(boost::ref(Event), e));
+}
+