]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/playlist_model.hpp
configuration: add config_AddIntf() config_RemoveIntf() and config_ExistIntf() to...
[vlc] / modules / gui / qt4 / playlist_model.hpp
index d98da4794deea781dc2ab390c7cbc7c83388d056..ede272e042b8b31881c41cff9293517617af3f70 100644 (file)
 #include <QObject>
 #include <QEvent>
 #include <QMimeData>
+#include <QSignalMapper>
 
 class PLModel;
+class QSignalMapper;
 
 class PLItem
 {
@@ -63,6 +65,9 @@ protected:
     int type;
     int i_id;
     int i_input_id;
+    int i_showflags;
+
+    void updateview( void );
     friend class PLModel;
 private:
     void init( int, int, PLItem *, PLModel * );
@@ -116,6 +121,7 @@ public:
 
     bool b_need_update;
     int i_items_to_append;
+
     void rebuild(); void rebuild( playlist_item_t *);
     bool hasRandom(); bool hasLoop(); bool hasRepeat();
 
@@ -135,6 +141,8 @@ public:
 
     void sendArt( QString url );
     void removeArt( );
+
+    int shownFlags() {  return rootItem->i_showflags;  }
 private:
     void addCallbacks();
     void delCallbacks();
@@ -165,6 +173,7 @@ private:
     /* Popup */
     int i_popup_item, i_popup_parent;
     QModelIndexList current_selection;
+    QSignalMapper *ContextUpdateMapper;
 
     /* Lookups */
     PLItem *FindById( PLItem *, int );
@@ -189,6 +198,10 @@ private slots:
     void popupInfo();
     void popupStream();
     void popupSave();
+#ifdef WIN32
+    void popupExplore();
+#endif
+    void viewchanged( int );
 friend class PLItem;
 };