21#ifndef SAYONARA_PLAYER_LIBRARYLISTMODEL_H
22#define SAYONARA_PLAYER_LIBRARYLISTMODEL_H
24#include <QAbstractListModel>
25#include "Utils/Pimpl.h"
27using LibName = QString;
28using LibPath = QString;
36 public QAbstractListModel
46 [[nodiscard]]
int rowCount(
const QModelIndex& index = QModelIndex())
const override;
47 [[nodiscard]] 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 [[nodiscard]] QString name(
int idx)
const;
56 [[nodiscard]] 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