11 #include "music/infoscanner/MusicInfoScanner.h" 12 #include "music/jobs/MusicLibraryJob.h" 38 const char *
GetType()
const override {
return "MusicLibraryScanningJob"; }
39 bool operator==(
const CJob* job)
const override;
47 std::string m_directory;
Music library job implementation for scanning items. Uses CMusicInfoScanner for scanning and can be r...
Definition: MusicLibraryScanningJob.h:21
bool CanBeCancelled() const override
Whether the job can be cancelled or not.
Definition: MusicLibraryScanningJob.h:34
Base class for jobs that are executed asynchronously.
Definition: Job.h:109
Class to store and read tag information.
Definition: MusicDatabase.h:98
CMusicLibraryScanningJob(const std::string &directory, int flags, bool showProgress=true)
Creates a new music library tag scanning and data scraping job.
Definition: MusicLibraryScanningJob.cpp:13
Basic implementation/interface of a CJob which interacts with the music database. ...
Definition: MusicLibraryJob.h:19
const char * GetType() const override
Function that returns the type of job.
Definition: MusicLibraryScanningJob.h:38
bool Cancel() override
Tries to cancel the running job.
Definition: MusicLibraryScanningJob.cpp:22
Definition: MusicInfoScanner.h:26
bool Work(CMusicDatabase &db) override
Worker method to be implemented by an actual implementation.
Definition: MusicLibraryScanningJob.cpp:44