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

IMediaLibrary: Expose reload method

parent fd87d560
......@@ -114,6 +114,8 @@ class IMediaLibrary
virtual void discover( const std::string& entryPoint ) = 0;
virtual const std::string& snapshotPath() const = 0;
virtual void setLogger( ILogger* logger ) = 0;
virtual void reload() = 0;
};
class MediaLibraryFactory
......
......@@ -75,6 +75,8 @@ class MediaLibrary : public IMediaLibrary
virtual const std::string& snapshotPath() const override;
virtual void setLogger( ILogger* logger ) override;
//Temporarily public, move back to private as soon as we start monitoring the FS
virtual void reload() override;
private:
static const std::vector<std::string> supportedVideoExtensions;
......@@ -82,7 +84,6 @@ class MediaLibrary : public IMediaLibrary
private:
void addMetadataService( std::unique_ptr<IMetadataService> service );
void reload();
private:
std::unique_ptr<SqliteConnection> m_dbConnection;
......
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