21#ifndef LIBRARYMANAGER_H
22#define LIBRARYMANAGER_H
24#include "Utils/typedefs.h"
40 [[nodiscard]]
virtual QList<Info> allLibraries()
const = 0;
41 [[nodiscard]]
virtual Info libraryInfo(LibraryId
id)
const = 0;
42 [[nodiscard]]
virtual Info libraryInfoByPath(
const QString& path)
const = 0;
43 [[nodiscard]]
virtual int count()
const = 0;
44 [[nodiscard]]
virtual LocalLibrary* libraryInstance(LibraryId
id) = 0;
54 void sigPathChanged(LibraryId
id);
55 void sigAdded(LibraryId
id);
56 void sigRenamed(LibraryId
id);
57 void sigMoved(LibraryId
id,
int from,
int to);
58 void sigRemoved(LibraryId
id);
63 virtual LibraryId addLibrary(
const QString& name,
const QString& path) = 0;
64 virtual bool renameLibrary(LibraryId
id,
const QString& newName) = 0;
65 virtual bool removeLibrary(LibraryId
id) = 0;
66 virtual bool moveLibrary(
int oldRow,
int newRow) = 0;
67 virtual bool changeLibraryPath(LibraryId
id,
const QString& newPath) = 0;
69 static QString requestLibraryName(
const QString& path);
Definition LibraryPlaylistInteractor.h:32
Definition LibraryManager.h:36
The Info class.
Definition LibraryInfo.h:38
Definition LibraryManager.h:50
Definition LocalLibrary.h:38
Definition EngineUtils.h:33