Commit 8c823de4 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaLibrary: Rename addDiscoveredFile -> onDiscoveredFile

parent ce8dd859
......@@ -489,7 +489,7 @@ bool MediaLibrary::isExtensionSupported( const char* ext )
});
}
void MediaLibrary::addDiscoveredFile( std::shared_ptr<fs::IFile> fileFs,
void MediaLibrary::onDiscoveredFile( std::shared_ptr<fs::IFile> fileFs,
std::shared_ptr<Folder> parentFolder,
std::shared_ptr<fs::IDirectory> parentFolderFs,
std::pair<std::shared_ptr<Playlist>, unsigned int> parentPlaylist )
......
......@@ -78,7 +78,7 @@ class MediaLibrary : public IMediaLibrary, public IDeviceListerCb
virtual Query<IMedia> audioFiles( const QueryParameters* params ) const override;
virtual Query<IMedia> videoFiles( const QueryParameters* params ) const override;
virtual void addDiscoveredFile( std::shared_ptr<fs::IFile> fileFs,
virtual void onDiscoveredFile( std::shared_ptr<fs::IFile> fileFs,
std::shared_ptr<Folder> parentFolder,
std::shared_ptr<fs::IDirectory> parentFolderFs,
std::pair<std::shared_ptr<Playlist>, unsigned int> parentPlaylist );
......
......@@ -386,7 +386,7 @@ void FsDiscoverer::checkFiles( std::shared_ptr<fs::IDirectory> parentFolderFs,
}
// Insert all files at once to avoid SQL write contention
for ( auto& p : filesToAdd )
m_ml->addDiscoveredFile( p, parentFolder, parentFolderFs, m_probe->getPlaylistParent() );
m_ml->onDiscoveredFile( p, parentFolder, parentFolderFs, m_probe->getPlaylistParent() );
t->commit();
LOG_INFO( "Done checking files in ", parentFolderFs->mrl() );
}, std::move( files ), std::move( filesToAdd ), std::move( filesToRemove ) );
......
......@@ -185,7 +185,7 @@ std::vector<const char*> MediaLibraryTester::getSupportedExtensions() const
return res;
}
void MediaLibraryTester::addDiscoveredFile(std::shared_ptr<fs::IFile> fileFs,
void MediaLibraryTester::onDiscoveredFile(std::shared_ptr<fs::IFile> fileFs,
std::shared_ptr<Folder> parentFolder,
std::shared_ptr<fs::IDirectory> parentFolderFs,
std::pair<std::shared_ptr<Playlist>, unsigned int>)
......
......@@ -69,7 +69,7 @@ public:
virtual void addLocalFsFactory() override;
std::shared_ptr<Device> device( const std::string& uuid );
std::vector<const char*> getSupportedExtensions() const;
virtual void addDiscoveredFile( std::shared_ptr<fs::IFile> fileFs,
virtual void onDiscoveredFile( std::shared_ptr<fs::IFile> fileFs,
std::shared_ptr<Folder> parentFolder,
std::shared_ptr<fs::IDirectory> parentFolderFs,
std::pair<std::shared_ptr<Playlist>, unsigned int> parentPlaylist ) 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