/* 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;
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();