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

Public Member Functions

 LibraryListModel (Library::Manager *libraryManager, QObject *parent=nullptr)
 
int rowCount (const QModelIndex &index=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)
 
QString name (int idx) const
 
QString path (int idx) const
 
void reset ()
 
bool commit ()