MailCommon::ScheduledJob Class

class MailCommon::ScheduledJob
Header: #include <MailCommon/JobScheduler>
CMake: find_package(KPim6MailCommon REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::MailCommon)
Inherits: MailCommon::FolderJob

Public Functions

ScheduledJob(const Akonadi::Collection &folder, bool immediate)
virtual ~ScheduledJob() override

Protected Variables

bool mImmediate

Detailed Description

Base class for scheduled jobs.

Member Function Documentation

ScheduledJob::ScheduledJob(const Akonadi::Collection &folder, bool immediate)

Constructs a scheduled job.

folder The Akonadi collection to perform the job on immediate Whether the job should be run immediately

[override virtual noexcept] ScheduledJob::~ScheduledJob()

Destroys the scheduled job.

Member Variable Documentation

bool ScheduledJob::mImmediate

Whether this job should be run immediately.