/* Lookups */
QStringList selectedURIs();
- bool hasRandom(); bool hasLoop(); bool hasRepeat();
QModelIndex index( PLItem *, int c ) const;
QModelIndex currentIndex( ) { return index( currentItem, 0 ); };
bool isCurrent( const QModelIndex &index ) const;
int itemId( const QModelIndex &index ) const;
/* Actions */
- void popup( QModelIndex & index, QPoint &point, QModelIndexList list );
+ void popup( const QModelIndex & index, const QPoint &point, const QModelIndexList &list );
void doDelete( QModelIndexList selected );
void search( const QString& search_text );
void sort( int column, Qt::SortOrder order );
void removeItem( int );
void rebuild(); void rebuild( playlist_item_t *, bool b_first = false );
+ static inline PLItem *getItem( QModelIndex index );
+
private:
/* General */
PLItem *findById( PLItem *, int );
PLItem *findByInput( PLItem *, int );
PLItem *findInner( PLItem *, int , bool );
- static inline PLItem *getItem( QModelIndex index );
+
int columnFromMeta( int meta_column ) const;
int columnToMeta( int column ) const;
bool canEdit() const;
public slots:
void activateItem( const QModelIndex &index );
void activateItem( playlist_item_t *p_item );
- void setRandom( bool );
- void setLoop( bool );
- void setRepeat( bool );
private slots:
void popupPlay();