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

MediaLibrary: Expose a media deleted callback

parent e17cf90f
......@@ -68,6 +68,8 @@ public:
*/
virtual void onMediaUpdated( MediaPtr media ) = 0;
virtual void onMediaDeleted( std::vector<int64_t> ids ) = 0;
virtual void onArtistAdded( ArtistPtr artist ) = 0;
virtual void onAlbumAdded( AlbumPtr album ) = 0;
/**
......
......@@ -41,6 +41,10 @@ public:
{
}
virtual void onMediaDeleted( std::vector<int64_t> ) override
{
}
virtual void onArtistAdded( ArtistPtr ) override
{
}
......
......@@ -24,6 +24,7 @@ public:
private:
virtual void onMediaAdded(MediaPtr) override {}
virtual void onMediaUpdated(MediaPtr) override {}
virtual void onMediaDeleted( std::vector<int64_t> ) override {}
virtual void onDiscoveryStarted(const std::string&) override {}
virtual void onDiscoveryCompleted(const std::string&) override;
virtual void onReloadStarted( const std::string& ) 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