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

IMediaLibrary: onMediaUpdated -> onMediaModified

To be consistent with other callbacks
parent 51289b36
......@@ -104,7 +104,7 @@ public:
/**
* @brief onFileUpdated Will be called when a file metadata gets updated.
*/
virtual void onMediaUpdated( std::vector<MediaPtr> media ) = 0;
virtual void onMediaModified( std::vector<MediaPtr> media ) = 0;
virtual void onMediaDeleted( std::vector<int64_t> mediaIds ) = 0;
......
......@@ -176,7 +176,7 @@ void ModificationNotifier::run()
m_timeout = nextTimeout;
m_flushedCond.notify_all();
}
notify( std::move( media ), &IMediaLibraryCb::onMediaAdded, &IMediaLibraryCb::onMediaUpdated, &IMediaLibraryCb::onMediaDeleted );
notify( std::move( media ), &IMediaLibraryCb::onMediaAdded, &IMediaLibraryCb::onMediaModified, &IMediaLibraryCb::onMediaDeleted );
notify( std::move( artists ), &IMediaLibraryCb::onArtistsAdded, &IMediaLibraryCb::onArtistsModified, &IMediaLibraryCb::onArtistsDeleted );
notify( std::move( albums ), &IMediaLibraryCb::onAlbumsAdded, &IMediaLibraryCb::onAlbumsModified, &IMediaLibraryCb::onAlbumsDeleted );
notify( std::move( playlists ), &IMediaLibraryCb::onPlaylistsAdded, &IMediaLibraryCb::onPlaylistsModified, &IMediaLibraryCb::onPlaylistsDeleted );
......
......@@ -32,7 +32,7 @@ namespace mock
class NoopCallback : public IMediaLibraryCb
{
virtual void onMediaAdded( std::vector<MediaPtr> ) override {}
virtual void onMediaUpdated( std::vector<MediaPtr> ) override {}
virtual void onMediaModified( std::vector<MediaPtr> ) override {}
virtual void onMediaDeleted( std::vector<int64_t> ) override {}
virtual void onDiscoveryStarted(const std::string&) override {}
virtual void onDiscoveryProgress(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