Fix build.
[dcpomatic.git] / src / lib / analytics.h
index f4cafe9868c8c5bab5f5b888dbe0a5b5292481ca..fcb349e542a323b6a728b48b1467b31d2f5f0179 100644 (file)
 
 #include "state.h"
 #include "signaller.h"
+#include <libcxml/cxml.h>
+#include <libxml++/libxml++.h>
 #include <boost/signals2.hpp>
+#include <string>
+#include <map>
+
+class Job;
 
 class Event
 {
@@ -30,12 +36,12 @@ public:
 
        void set (std::string k, std::string v);
 
-       void as_xml (cxml::NodePtr parent) const;
+       void as_xml (xmlpp::Element* parent) const;
        std::string dump () const;
 
 private:
        struct timeval _time;
-       std::map<std::string k, std::string v) _data;
+       std::map<std::string, std::string> _data;
 };
 
 class Analytics : public State, public Signaller
@@ -53,8 +59,10 @@ public:
        static Analytics* instance ();
 
 private:
+       int successful_dcp_encodes () const;
+
        /** Mutex to protect _events */
-       boost::mutex _mutex;
+       mutable boost::mutex _mutex;
        std::list<Event> _events;
        static Analytics* _instance;
        static int const _current_version;