21 #ifndef LocalLibrary_H
22 #define LocalLibrary_H
24 #include "AbstractLibrary.h"
25 #include "Importer/LibraryImporter.h"
26 #include "Utils/Pimpl.h"
44 void sigImportDialogRequested(
const QString& targetDirectory);
45 void sigRenamed(
const QString& newName);
54 bool setLibraryPath(
const QString& path);
57 bool setLibraryName(
const QString& name);
62 bool isReloading()
const override;
70 void importFiles(
const QStringList& files)
override;
71 void importFilesTo(
const QStringList& files,
const QString& targetDirectory);
74 void applyDatabaseFixes();
75 void initReloadThread();
77 void getAllArtists(
ArtistList& artists)
const override;
80 void getAllAlbums(
AlbumList& albums)
const override;
84 int getTrackCount()
const override;
86 void getAllTracks(
const QStringList& paths,
MetaDataList& v_md)
const override;
90 void getAllTracksByPath(
const QStringList& paths,
MetaDataList& v_md)
const override;
92 void getTrackById(TrackID trackId,
MetaData& md)
const override;
93 void getAlbumById(AlbumId albumId,
Album& album)
const override;
94 void getArtistById(ArtistId artistId,
Artist& artist)
const override;
97 void refreshArtists()
override;
98 void refreshAlbums()
override;
99 void refreshTracks()
override;
102 void reloadThreadNewBlock();
103 void reloadThreadFinished();
104 void searchModeChanged();
105 void showAlbumArtistsChanged();
106 void renamed(LibraryId
id);
107 void importStatusChanged(Library::Importer::ImportStatus status);
110 #endif // LocalLibrary_H