11 #include "video/VideoInfoScanner.h" 12 #include "video/jobs/VideoLibraryJob.h" 40 const char *
GetType()
const override {
return "VideoLibraryScanningJob"; }
41 bool operator==(
const CJob* job)
const override;
49 std::string m_directory;
bool Work(CVideoDatabase &db) override
Worker method to be implemented by an actual implementation.
Definition: VideoLibraryScanningJob.cpp:44
Base class for jobs that are executed asynchronously.
Definition: Job.h:109
Definition: VideoInfoScanner.h:47
Basic implementation/interface of a CJob which interacts with the video database. ...
Definition: VideoLibraryJob.h:19
Definition: VideoDatabase.h:393
bool Cancel() override
Tries to cancel the running job.
Definition: VideoLibraryScanningJob.cpp:22
CVideoLibraryScanningJob(const std::string &directory, bool scanAll=false, bool showProgress=true)
Creates a new video library scanning job.
Definition: VideoLibraryScanningJob.cpp:13
bool CanBeCancelled() const override
Whether the job can be cancelled or not.
Definition: VideoLibraryScanningJob.h:36
const char * GetType() const override
Function that returns the type of job.
Definition: VideoLibraryScanningJob.h:40
Video library job implementation for scanning items.
Definition: VideoLibraryScanningJob.h:22