21 #ifndef LIBRARYLISTMODEL_H
22 #define LIBRARYLISTMODEL_H
24 #include <QAbstractListModel>
25 #include "Utils/Pimpl.h"
27 using LibName=QString;
28 using LibPath=QString;
36 public QAbstractListModel
46 int rowCount(
const QModelIndex& parent=QModelIndex())
const override;
47 QVariant data(
const QModelIndex& index,
int role)
const override;
49 void appendRow(
const LibName& name,
const LibPath& path);
50 void renameRow(
int row,
const LibName& newName);
51 void changePath(
int row,
const LibPath& path);
52 void moveRow(
int from,
int to);
53 void removeRow(
int row);
55 QStringList allNames()
const;
56 QStringList allPaths()
const;
57 QString name(
int idx)
const;
58 QString path(
int idx)
const;
Definition: LibraryListModel.h:37
Definition: LibraryManager.h:40
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:31