diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-04-14 21:07:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-04-14 21:07:32 +0100 |
| commit | 183b5597f73b85c0d6d29db8f6ed519386d07aa9 (patch) | |
| tree | 65e865ac842b9241377af62a263a7fa5eb0d1e55 /src/lib/analytics.h | |
| parent | 985e727e001e1a92ae035364a9cbf1ff99522ff1 (diff) | |
Add donation nag after 20 successful DCP encodes.
Diffstat (limited to 'src/lib/analytics.h')
| -rw-r--r-- | src/lib/analytics.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/analytics.h b/src/lib/analytics.h index b439fca8c..be41e3a1b 100644 --- a/src/lib/analytics.h +++ b/src/lib/analytics.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2018 Carl Hetherington <cth@carlh.net> + Copyright (C) 2018-2019 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -19,8 +19,10 @@ */ #include "state.h" +#include "signaller.h" +#include <boost/signals2.hpp> -class Analytics : public State +class Analytics : public State, public Signaller { public: Analytics (); @@ -30,6 +32,8 @@ public: void write () const; void read (); + boost::signals2::signal<void (std::string, std::string)> Message; + static Analytics* instance (); private: |
