[vlmc-devel] Update to recent medialibrary API changes

Hugo Beauzée-Luyssen git at videolan.org
Fri Jul 8 22:56:51 CEST 2016


vlmc | branch: medialibrary | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Jul  8 21:32:52 2016 +0200| [e965e72e62b32d5c3ab4e77134826a21f95c5367] | committer: Hugo Beauzée-Luyssen

Update to recent medialibrary API changes

> https://code.videolan.org/videolan/vlmc/commit/e965e72e62b32d5c3ab4e77134826a21f95c5367
---

 src/Gui/MainWindow.cpp       |  4 ----
 src/Library/MediaLibrary.cpp | 10 ----------
 src/Library/MediaLibrary.h   |  5 -----
 3 files changed, 19 deletions(-)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 8723763..5eb6999 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -120,10 +120,6 @@ MainWindow::MainWindow( Backend::IBackend* backend, QWidget *parent )
          [](const QString& folder) {
             NotificationZone::instance()->notify( "Discovering " + folder + "..." );
     });
-    connect( Core::instance()->mediaLibrary(), &MediaLibrary::reloadStarted,
-        [](const QString& folder) {
-            NotificationZone::instance()->notify( "Reloading medialibrary (" + folder + ")..." );
-    });
 
     //Connecting Library stuff:
     const ClipRenderer* clipRenderer = qobject_cast<const ClipRenderer*>( m_clipPreview->getAbstractRenderer() );
diff --git a/src/Library/MediaLibrary.cpp b/src/Library/MediaLibrary.cpp
index 2512baa..dda5f71 100644
--- a/src/Library/MediaLibrary.cpp
+++ b/src/Library/MediaLibrary.cpp
@@ -172,16 +172,6 @@ void MediaLibrary::onDiscoveryCompleted( const std::string& entryPoint )
     emit discoveryCompleted( QString::fromStdString( entryPoint ) );
 }
 
-void MediaLibrary::onReloadStarted( const std::string& entryPoint )
-{
-    emit reloadStarted( QString::fromStdString( entryPoint ) );
-}
-
-void MediaLibrary::onReloadCompleted( const std::string& entryPoint )
-{
-    emit reloadCompleted( QString::fromStdString( entryPoint ) );
-}
-
 void MediaLibrary::onParsingStatsUpdated( uint32_t percent )
 {
     emit progressUpdated( static_cast<int>( percent ) );
diff --git a/src/Library/MediaLibrary.h b/src/Library/MediaLibrary.h
index ddec833..2996615 100644
--- a/src/Library/MediaLibrary.h
+++ b/src/Library/MediaLibrary.h
@@ -51,9 +51,6 @@ signals:
     void    progressUpdated( int percent );
     void    discoveryStarted( QString );
     void    discoveryCompleted( QString );
-    void    reloadStarted( QString );
-    void    reloadCompleted( QString );
-
 
 private:
     void mlDirsChanged( const QVariant& value );
@@ -73,8 +70,6 @@ private:
     virtual void onTracksDeleted( std::vector<int64_t> trackIds ) override;
     virtual void onDiscoveryStarted( const std::string& entryPoint ) override;
     virtual void onDiscoveryCompleted( const std::string& entryPoint ) override;
-    virtual void onReloadStarted( const std::string& entryPoint ) override;
-    virtual void onReloadCompleted( const std::string& entryPoint ) override;
     virtual void onParsingStatsUpdated( uint32_t percent ) override;
 
 private:



More information about the Vlmc-devel mailing list