11 #include "utils/Job.h" 33 virtual bool Cancel() {
return false; }
37 const char *
GetType()
const override {
return "MusicLibraryJob"; }
38 bool operator==(
const CJob* job)
const override {
return false; }
Base class for jobs that are executed asynchronously.
Definition: Job.h:109
Class to store and read tag information.
Definition: MusicDatabase.h:98
Basic implementation/interface of a CJob which interacts with the music database. ...
Definition: MusicLibraryJob.h:19
virtual bool Cancel()
Tries to cancel the running job.
Definition: MusicLibraryJob.h:33
bool DoWork() override
Main workhorse function of CJob instances.
Definition: MusicLibraryJob.cpp:17
const char * GetType() const override
Function that returns the type of job.
Definition: MusicLibraryJob.h:37
virtual bool Work(CMusicDatabase &db)=0
Worker method to be implemented by an actual implementation.
virtual bool CanBeCancelled() const
Whether the job can be cancelled or not.
Definition: MusicLibraryJob.h:27