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 append_row (const LibName &name, const LibPath &path)
 
void rename_row (int row, const LibName &new_name)
 
void change_path (int row, const LibPath &path)
 
void move_row (int from, int to)
 
void remove_row (int row)
 
QStringList all_names () const
 
QStringList all_paths () const
 
QString name (int idx) const
 
QString path (int idx) const
 
void reset ()
 
bool commit ()