diff options
Diffstat (limited to 'src/lib/analytics.h')
| -rw-r--r-- | src/lib/analytics.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/analytics.h b/src/lib/analytics.h index 36519ea80..dbeebf6b5 100644 --- a/src/lib/analytics.h +++ b/src/lib/analytics.h @@ -49,11 +49,11 @@ class Analytics : public State, public Signaller { public: Analytics (); + ~Analytics (); - void job_state_changed (boost::shared_ptr<Job> job); + void start (); - void write () const; - void read (); + void job_state_changed (boost::shared_ptr<Job> job); boost::signals2::signal<void (std::string, std::string)> Message; @@ -61,11 +61,16 @@ public: private: int successful_dcp_encodes () const; + void xmlpp_document (xmlpp::Document &) const; + void write () const; + void read (); + void thread (); /** Mutex to protect _id and _events */ mutable boost::mutex _mutex; std::string _id; std::list<Event> _events; + boost::thread* _thread; static Analytics* _instance; static int const _current_version; }; |
