WIP. Reorganizing things to get settings work. First attempt on Database settings

This commit is contained in:
emeric
2014-07-22 12:57:29 +02:00
parent f1cea2404e
commit 938e96cc40
32 changed files with 752 additions and 96 deletions
+6 -13
View File
@@ -13,6 +13,12 @@ namespace DatabaseUpdater {
class Updater
{
public:
Updater(boost::filesystem::path db, MetaData::Parser& parser);
// Update database
void process();
private:
struct Stats
{
@@ -30,19 +36,6 @@ class Updater
Stats videoStats;
};
Updater(boost::filesystem::path db, MetaData::Parser& parser);
// Update database
// TODO add a callback to get notifed once finished
void process();
const Result& getResult(void) const { return _result; }
private:
// void refresh(const WatchedDirectory& directory);
// Video
void refreshVideoDirectory( const boost::filesystem::path& directory );
void processVideoFile( const boost::filesystem::path& file);