Sayonara Player
Public Types | Public Member Functions | List of all members
FileListModel Class Reference

Public Types

using ExtraTriggerMap = QMap< QChar, QString >
 

Public Member Functions

 FileListModel (QObject *parent=nullptr)
 
void set_parent_directory (LibraryId, const QString &dir)
 
LibraryId library_id () const
 
QString parent_directory () const
 
QStringList files () const
 
QModelIndex getNextRowIndexOf (const QString &substr, int cur_row, const QModelIndex &parent=QModelIndex()) override
 
QModelIndex getPrevRowIndexOf (const QString &substr, int cur_row, const QModelIndex &parent=QModelIndex()) override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
QMimeData * mimeData (const QModelIndexList &indexes) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
virtual bool has_items () const override
 
virtual QModelIndex getFirstRowIndexOf (const QString &substr)
 
virtual ExtraTriggerMap getExtraTriggers ()
 
virtual int getNumberResults (const QString &str)
 
virtual ::Library::SearchModeMask search_mode () const final
 
Inheritance diagram for FileListModel:
SearchableModel< Model > SearchableModelInterface