WIP: adding service files, still not working

This commit is contained in:
emeric
2014-04-03 09:19:35 +02:00
parent 10d1464ca2
commit 886b3221f5
24 changed files with 476 additions and 102 deletions
+37
View File
@@ -0,0 +1,37 @@
#include "DatabaseRefreshService.hpp"
DatabaseRefreshService::DatabaseRefreshService(const boost::filesystem::path& p)
: _metadataParser(),
_database( p, _metadataParser)
{
// TODO read from the database itself!
// Move this code in the database class
_database.watchDirectory( WatchedDirectory("/storage/common/Media/Son/Metal", WatchedDirectory::Audio) );
_database.watchDirectory( WatchedDirectory("/storage/common/Media/Video", WatchedDirectory::Video) );
// TODO launch thread
// boost::thread refreshThread(boost::bind(&Database::refresh, &database));
}
void
DatabaseRefreshService::start(void)
{
std::cout << "DatabaseRefreshService::start, not implemented" << std::endl;
}
void
DatabaseRefreshService::stop(void)
{
std::cout << "DatabaseRefreshService::stop, not implemented" << std::endl;
}
void
DatabaseRefreshService::restart(void)
{
std::cout << "DatabaseRefreshService::restart, not implemented" << std::endl;
}