Commit 3b130f84 authored by Abhimanyu Singh Gaur's avatar Abhimanyu Singh Gaur Committed by luyikei

Library: Add missing MediaLibrary overrides

The recent changes in MediaLibrary API have introduced some more virtual functions, which were not implemented in Library, hence building VLMC was giving compile time errors. This patch adds empty definitions for those functions.
This also resolves the issue #35.
parent a8585ee9
......@@ -339,3 +339,23 @@ void Library::onPlaylistsModified( std::vector<medialibrary::PlaylistPtr> )
void Library::onPlaylistsDeleted( std::vector<int64_t> )
{
}
void Library::onReloadStarted( const std::string& entryPoint )
{
}
void Library::onReloadCompleted( const std::string& entryPoint )
{
}
void Library::onEntryPointRemoved( const std::string& entryPoint, bool success )
{
}
void Library::onEntryPointBanned( const std::string& entryPoint, bool success )
{
}
void Library::onEntryPointUnbanned( const std::string& entryPoint, bool success )
{
}
......@@ -107,6 +107,11 @@ private:
virtual void onPlaylistsAdded( std::vector<medialibrary::PlaylistPtr> playlists ) override;
virtual void onPlaylistsModified( std::vector<medialibrary::PlaylistPtr> playlists ) override;
virtual void onPlaylistsDeleted( std::vector<int64_t> playlistIds ) override;
virtual void onReloadStarted( const std::string& entryPoint ) override;
virtual void onReloadCompleted( const std::string& entryPoint ) override;
virtual void onEntryPointRemoved( const std::string& entryPoint, bool success ) override;
virtual void onEntryPointBanned( const std::string& entryPoint, bool success ) override;
virtual void onEntryPointUnbanned( const std::string& entryPoint, bool success ) override;
private:
std::unique_ptr<medialibrary::IMediaLibrary> m_ml;
......
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