Commit 395dfc8c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Revert "MediaLibrary: Rename startDiscoverer to createDiscoverers"

This reverts commit 56079c5c.
parent 9d1ad6a1
...@@ -276,7 +276,7 @@ bool MediaLibrary::initialize( const std::string& dbPath, const std::string& thu ...@@ -276,7 +276,7 @@ bool MediaLibrary::initialize( const std::string& dbPath, const std::string& thu
} }
for ( auto& fsFactory : m_fsFactories ) for ( auto& fsFactory : m_fsFactories )
refreshDevices( *fsFactory ); refreshDevices( *fsFactory );
createDiscoverers(); startDiscoverer();
startParser(); startParser();
m_initialized = true; m_initialized = true;
LOG_INFO( "Successfuly initialized" ); LOG_INFO( "Successfuly initialized" );
...@@ -620,7 +620,7 @@ void MediaLibrary::startParser() ...@@ -620,7 +620,7 @@ void MediaLibrary::startParser()
m_parser->start(); m_parser->start();
} }
void MediaLibrary::createDiscoverers() void MediaLibrary::startDiscoverer()
{ {
m_discovererWorker.reset( new DiscovererWorker( this ) ); m_discovererWorker.reset( new DiscovererWorker( this ) );
for ( const auto& fsFactory : m_fsFactories ) for ( const auto& fsFactory : m_fsFactories )
......
...@@ -147,7 +147,7 @@ class MediaLibrary : public IMediaLibrary, public IDeviceListerCb ...@@ -147,7 +147,7 @@ class MediaLibrary : public IMediaLibrary, public IDeviceListerCb
private: private:
virtual void startParser(); virtual void startParser();
virtual void createDiscoverers(); virtual void startDiscoverer();
virtual void startDeletionNotifier(); virtual void startDeletionNotifier();
bool updateDatabaseModel( unsigned int previousVersion ); bool updateDatabaseModel( unsigned int previousVersion );
bool createAllTables(); bool createAllTables();
......
...@@ -74,12 +74,12 @@ class MediaLibraryWithoutParser : public MediaLibraryTester ...@@ -74,12 +74,12 @@ class MediaLibraryWithoutParser : public MediaLibraryTester
class MediaLibraryWithoutBackground : public MediaLibraryTester class MediaLibraryWithoutBackground : public MediaLibraryTester
{ {
virtual void createDiscoverers() override {} virtual void startDiscoverer() override {}
virtual void startParser() override {} virtual void startParser() override {}
}; };
class MediaLibraryWithNotifier : public MediaLibraryTester class MediaLibraryWithNotifier : public MediaLibraryTester
{ {
virtual void createDiscoverers() override {} virtual void startDiscoverer() override {}
virtual void startParser() override {} virtual void startParser() override {}
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment