]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/playlist/playlist_model.hpp
Qt: Implement Stream/Save in playlist popup menu
[vlc] / modules / gui / qt4 / components / playlist / playlist_model.hpp
index f6e4da874d86de424ddb5c5b59d04342b89d6d80..a097fa63ccde04b3970be195344bce27c994e0c1 100644 (file)
@@ -50,10 +50,10 @@ class PLItem;
 #define DEPTH_PL -1
 #define DEPTH_SEL 1
 
-static int ItemUpdate_Type = QEvent::User + PLEventType + 2;
-static int ItemDelete_Type = QEvent::User + PLEventType + 3;
-static int ItemAppend_Type = QEvent::User + PLEventType + 4;
-static int PLUpdate_Type   = QEvent::User + PLEventType + 5;
+static const int ItemUpdate_Type = QEvent::User + PLEventType + 2;
+static const int ItemDelete_Type = QEvent::User + PLEventType + 3;
+static const int ItemAppend_Type = QEvent::User + PLEventType + 4;
+static const int PLUpdate_Type   = QEvent::User + PLEventType + 5;
 
 class PLEvent : public QEvent
 {
@@ -96,6 +96,9 @@ public:
     int rowCount( const QModelIndex &parent = QModelIndex() ) const;
     int columnCount( const QModelIndex &parent = QModelIndex() ) const;
 
+    /* Get current selection */
+    QStringList selectedURIs();
+
     void rebuild(); void rebuild( playlist_item_t * );
     bool hasRandom(); bool hasLoop(); bool hasRepeat();
 
@@ -171,10 +174,7 @@ private slots:
     void popupInfo();
     void popupStream();
     void popupSave();
-#ifdef WIN32
     void popupExplore();
-#endif
-
     void viewchanged( int );
 };