vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Wed Jun 26 
18:09:32 2019 +0200| [ed1615a63d9b53ccde96440ce7ec13364b187264] | committer: 
Hugo Beauzée-Luyssen

qt: medialib: Expose reload started & completed events

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ed1615a63d9b53ccde96440ce7ec13364b187264
---

 modules/gui/qt/components/mediacenter/mcmedialib.cpp | 6 ++++++
 modules/gui/qt/components/mediacenter/mcmedialib.hpp | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/modules/gui/qt/components/mediacenter/mcmedialib.cpp 
b/modules/gui/qt/components/mediacenter/mcmedialib.cpp
index 09358a7c2d..e40ad16479 100644
--- a/modules/gui/qt/components/mediacenter/mcmedialib.cpp
+++ b/modules/gui/qt/components/mediacenter/mcmedialib.cpp
@@ -231,6 +231,12 @@ void MCMediaLib::onMediaLibraryEvent( void* data, const 
vlc_ml_event_t* event )
         case VLC_ML_EVENT_DISCOVERY_COMPLETED:
             self->emit discoveryCompleted();
             break;
+        case VLC_ML_EVENT_RELOAD_STARTED:
+            self->emit reloadStarted();
+            break;
+        case VLC_ML_EVENT_RELOAD_COMPLETED:
+            self->emit reloadCompleted();
+            break;
         default:
             break;
     }
diff --git a/modules/gui/qt/components/mediacenter/mcmedialib.hpp 
b/modules/gui/qt/components/mediacenter/mcmedialib.hpp
index 0eeb714c9a..43df1183b1 100644
--- a/modules/gui/qt/components/mediacenter/mcmedialib.hpp
+++ b/modules/gui/qt/components/mediacenter/mcmedialib.hpp
@@ -59,8 +59,10 @@ public:
 signals:
     void gridViewChanged();
     void discoveryStarted();
+    void reloadStarted();
     void discoveryProgress( QString entryPoint );
     void discoveryCompleted();
+    void reloadCompleted();
     void progressUpdated( quint32 percent );
 
 private:

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to