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