[vlc-devel] [PATCH 1/2] qt: medialib: Expose reload started & completed events

Hugo Beauzée-Luyssen hugo at beauzee.fr
Wed Jun 26 18:27:29 CEST 2019


---
 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:
-- 
2.20.1



More information about the vlc-devel mailing list