WIP. Using WIOService to handle Services

This commit is contained in:
emeric
2014-08-05 13:11:31 +02:00
parent f26e6cad7c
commit 9fdc9f41dd
12 changed files with 148 additions and 65 deletions
+1 -6
View File
@@ -15,20 +15,15 @@ class DatabaseUpdateService : public Service
typedef std::shared_ptr<DatabaseUpdateService> pointer;
DatabaseUpdateService(boost::asio::io_service& ioService, const boost::filesystem::path& p);
DatabaseUpdateService(const boost::filesystem::path& p);
// Service interface
void start(void);
void stop(void);
void restart(void);
// Specific interface
bool isScanning(void) const; //return if the service is currently scanning the db
private:
boost::thread _thread;
MetaData::AvFormat _metadataParser;
DatabaseUpdater::Updater _databaseUpdater; // Todo use handler
};