Sayonara Player
Public Member Functions | List of all members
LibraryListModel Class Reference
Inheritance diagram for LibraryListModel:

Public Member Functions

 LibraryListModel (QObject *parent=nullptr)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
void appendRow (const LibName &name, const LibPath &path)
 
void renameRow (int row, const LibName &newName)
 
void changePath (int row, const LibPath &path)
 
void moveRow (int from, int to)
 
void removeRow (int row)
 
QStringList allNames () const
 
QStringList allPaths () const
 
QString name (int idx) const
 
QString path (int idx) const
 
void reset ()
 
bool commit ()