# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <vlc_input.h>
#include <vlc_playlist.h>
#include "playlist_item.hpp"
+#include "qt4.hpp"
+
#include <QModelIndex>
#include <QObject>
#include <QEvent>
#define DEPTH_PL -1
#define DEPTH_SEL 1
-static int ItemUpdate_Type = QEvent::User + 2;
-static int ItemDelete_Type = QEvent::User + 3;
-static int ItemAppend_Type = QEvent::User + 4;
-static int PLUpdate_Type = QEvent::User + 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
{
int rowCount( const QModelIndex &parent = QModelIndex() ) const;
int columnCount( const QModelIndex &parent = QModelIndex() ) const;
- bool b_need_update;
- int i_items_to_append;
+ /* Get current selection */
+ QStringList selectedURIs();
void rebuild(); void rebuild( playlist_item_t * );
bool hasRandom(); bool hasLoop(); bool hasRepeat();
int row, int column, const QModelIndex &target );
QStringList mimeTypes() const;
- int shownFlags() { return rootItem->i_showflags; }
+ int shownFlags() { return rootItem->i_showflags; }
private:
void addCallbacks();
void popupInfo();
void popupStream();
void popupSave();
-#ifdef WIN32
void popupExplore();
-#endif
-
void viewchanged( int );
};