#ifndef DB_REFRESH_SERVICE_HPP #define DB_REFRESH_SERVICE_HPP #include #include #include "metadata/AvFormat.hpp" #include "database/Database.hpp" #include "Service.hpp" class DatabaseRefreshService : public Service { public: DatabaseRefreshService(boost::asio::io_service& ioService, const boost::filesystem::path& p); void start(void); void stop(void); void restart(void); private: boost::thread _thread; MetaData::AvFormat _metadataParser; Database _database; }; #endif