#include <QModelIndex>
#include <QObject>
#include <QEvent>
+#include <QMimeData>
+
#include <vlc/vlc.h>
#include <vlc/input.h>
#include <vlc_playlist.h>
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;
class PLEvent : public QEvent
{
/* Actions made by the views */
void popup( QModelIndex & index, QPoint &point, QModelIndexList list );
void doDelete( QModelIndexList selected );
+ void search( QString search );
+ void sort( int column, Qt::SortOrder order );
+ void removeItem( int );
+
+ /* DnD handling */
+ Qt::DropActions supportedDropActions() const;
+ QMimeData* mimeData(const QModelIndexList &indexes) const;
+ bool dropMimeData(const QMimeData *data, Qt::DropAction action,
+ int row, int column, const QModelIndex &target);
+ QStringList mimeTypes() const;
+
+ void sendArt( QString url );
private:
void addCallbacks();
void delCallbacks();
PLItem *p_cached_item_bi;
int i_cached_id;
int i_cached_input_id;
+signals:
+ void artSet( QString );
+ void shouldRemove( int );
public slots:
void activateItem( const QModelIndex &index );
void activateItem( playlist_item_t *p_item );
private slots:
void popupPlay();
void popupDel();
+ void popupInfo();
+ void popupStream();
+ void popupSave();
friend class PLItem;
};