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

medialibrary: Match API changes

parent a60e6c20
......@@ -417,7 +417,7 @@ AndroidMediaLibrary::requestThumbnail( int64_t media_id )
}
void
AndroidMediaLibrary::onMediaAdded( std::vector<medialibrary::MediaPtr> mediaList )
AndroidMediaLibrary::onMediaAdded( const std::vector<medialibrary::MediaPtr>& mediaList )
{
if (m_mediaAddedType & FLAG_MEDIA_ADDED_AUDIO || m_mediaAddedType & FLAG_MEDIA_ADDED_VIDEO
|| m_mediaAddedType & FLAG_MEDIA_ADDED_AUDIO_EMPTY) {
......@@ -461,7 +461,7 @@ AndroidMediaLibrary::onMediaAdded( std::vector<medialibrary::MediaPtr> mediaList
}
}
void AndroidMediaLibrary::onMediaModified( std::vector<medialibrary::MediaPtr> mediaList )
void AndroidMediaLibrary::onMediaModified( const std::vector<medialibrary::MediaPtr>& mediaList )
{
if (m_mediaUpdatedType & FLAG_MEDIA_UPDATED_AUDIO || m_mediaUpdatedType & FLAG_MEDIA_UPDATED_VIDEO
|| m_mediaUpdatedType & FLAG_MEDIA_UPDATED_AUDIO_EMPTY) {
......@@ -504,12 +504,12 @@ void AndroidMediaLibrary::onMediaModified( std::vector<medialibrary::MediaPtr> m
}
}
void AndroidMediaLibrary::onMediaDeleted( std::vector<int64_t> ids )
void AndroidMediaLibrary::onMediaDeleted( const std::vector<int64_t>& ids )
{
}
void AndroidMediaLibrary::onArtistsAdded( std::vector<medialibrary::ArtistPtr> artists )
void AndroidMediaLibrary::onArtistsAdded( const std::vector<medialibrary::ArtistPtr>& artists )
{
if (m_mediaAddedType & (FLAG_MEDIA_ADDED_AUDIO_EMPTY|FLAG_MEDIA_ADDED_AUDIO))
{
......@@ -519,7 +519,7 @@ void AndroidMediaLibrary::onArtistsAdded( std::vector<medialibrary::ArtistPtr> a
}
}
void AndroidMediaLibrary::onArtistsModified( std::vector<medialibrary::ArtistPtr> artist )
void AndroidMediaLibrary::onArtistsModified( const std::vector<medialibrary::ArtistPtr>& artist )
{
if (m_mediaUpdatedType & FLAG_MEDIA_UPDATED_AUDIO_EMPTY)
{
......@@ -532,12 +532,12 @@ void AndroidMediaLibrary::onArtistsModified( std::vector<medialibrary::ArtistPtr
}
}
void AndroidMediaLibrary::onArtistsDeleted( std::vector<int64_t> ids )
void AndroidMediaLibrary::onArtistsDeleted( const std::vector<int64_t>& ids )
{
}
void AndroidMediaLibrary::onAlbumsAdded( std::vector<medialibrary::AlbumPtr> albums )
void AndroidMediaLibrary::onAlbumsAdded( const std::vector<medialibrary::AlbumPtr>& albums )
{
if (m_mediaAddedType & FLAG_MEDIA_ADDED_AUDIO)
{
......@@ -550,7 +550,7 @@ void AndroidMediaLibrary::onAlbumsAdded( std::vector<medialibrary::AlbumPtr> alb
}
}
void AndroidMediaLibrary::onAlbumsModified( std::vector<medialibrary::AlbumPtr> albums )
void AndroidMediaLibrary::onAlbumsModified( const std::vector<medialibrary::AlbumPtr>& albums )
{
if (m_mediaUpdatedType & FLAG_MEDIA_UPDATED_AUDIO)
{
......@@ -563,34 +563,34 @@ void AndroidMediaLibrary::onAlbumsModified( std::vector<medialibrary::AlbumPtr>
}
}
void AndroidMediaLibrary::onPlaylistsAdded( std::vector<medialibrary::PlaylistPtr> playlists )
void AndroidMediaLibrary::onPlaylistsAdded( const std::vector<medialibrary::PlaylistPtr>& playlists )
{
}
void AndroidMediaLibrary::onPlaylistsModified( std::vector<medialibrary::PlaylistPtr> playlist )
void AndroidMediaLibrary::onPlaylistsModified( const std::vector<medialibrary::PlaylistPtr>& playlist )
{
}
void AndroidMediaLibrary::onPlaylistsDeleted( std::vector<int64_t> ids )
void AndroidMediaLibrary::onPlaylistsDeleted( const std::vector<int64_t>& ids )
{
}
void AndroidMediaLibrary::onGenresAdded( std::vector<medialibrary::GenrePtr> )
void AndroidMediaLibrary::onGenresAdded( const std::vector<medialibrary::GenrePtr>& )
{
}
void AndroidMediaLibrary::onGenresModified( std::vector<medialibrary::GenrePtr> )
void AndroidMediaLibrary::onGenresModified( const std::vector<medialibrary::GenrePtr>& )
{
}
void AndroidMediaLibrary::onGenresDeleted( std::vector<int64_t> )
void AndroidMediaLibrary::onGenresDeleted( const std::vector<int64_t>& )
{
}
void AndroidMediaLibrary::onAlbumsDeleted( std::vector<int64_t> ids )
void AndroidMediaLibrary::onAlbumsDeleted( const std::vector<int64_t>& ids )
{
}
......
......@@ -90,25 +90,25 @@ public:
void requestThumbnail( int64_t media_id );
void onMediaAdded( std::vector<medialibrary::MediaPtr> media );
void onMediaModified( std::vector<medialibrary::MediaPtr> media ) ;
void onMediaDeleted( std::vector<int64_t> ids ) ;
void onMediaAdded( const std::vector<medialibrary::MediaPtr>& media );
void onMediaModified( const std::vector<medialibrary::MediaPtr>& media ) ;
void onMediaDeleted( const std::vector<int64_t>& ids ) ;
void onArtistsAdded( std::vector<medialibrary::ArtistPtr> artists ) ;
void onArtistsModified( std::vector<medialibrary::ArtistPtr> artist );
void onArtistsDeleted( std::vector<int64_t> ids );
void onArtistsAdded( const std::vector<medialibrary::ArtistPtr>& artists ) ;
void onArtistsModified( const std::vector<medialibrary::ArtistPtr>& artist );
void onArtistsDeleted( const std::vector<int64_t>& ids );
void onAlbumsAdded( std::vector<medialibrary::AlbumPtr> albums );
void onAlbumsModified( std::vector<medialibrary::AlbumPtr> albums );
void onAlbumsDeleted( std::vector<int64_t> ids );
void onAlbumsAdded( const std::vector<medialibrary::AlbumPtr>& albums );
void onAlbumsModified( const std::vector<medialibrary::AlbumPtr>& albums );
void onAlbumsDeleted( const std::vector<int64_t>& ids );
void onPlaylistsAdded( std::vector<medialibrary::PlaylistPtr> playlists );
void onPlaylistsModified( std::vector<medialibrary::PlaylistPtr> playlist );
void onPlaylistsDeleted( std::vector<int64_t> ids );
void onPlaylistsAdded( const std::vector<medialibrary::PlaylistPtr>& playlists );
void onPlaylistsModified( const std::vector<medialibrary::PlaylistPtr>& playlist );
void onPlaylistsDeleted( const std::vector<int64_t>& ids );
void onGenresAdded( std::vector<medialibrary::GenrePtr> );
void onGenresModified( std::vector<medialibrary::GenrePtr> );
void onGenresDeleted( std::vector<int64_t> );
void onGenresAdded( const std::vector<medialibrary::GenrePtr>& );
void onGenresModified( const std::vector<medialibrary::GenrePtr>& );
void onGenresDeleted( const std::vector<int64_t>& );
void onDiscoveryStarted( const std::string& entryPoint );
void onDiscoveryProgress( const std::string& entryPoint );
......
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