digiKam
Loading...
Searching...
No Matches
Digikam::ActionJob Class Reference

#include <actionthreadbase.h>

+ Inheritance diagram for Digikam::ActionJob:

Public Slots

void cancel ()
 

Signals

void signalDone ()
 
void signalProgress (int)
 
void signalStarted ()
 

Public Member Functions

 ActionJob (QObject *const parent=nullptr)
 
 ~ActionJob () override
 

Public Attributes

QElapsedTimer m_timer
 

Protected Attributes

bool m_cancel = false
 

Constructor & Destructor Documentation

◆ ActionJob()

Digikam::ActionJob::ActionJob ( QObject *const  parent = nullptr)
explicit

Constructor which delegate deletion of QRunnable instance to ActionThreadBase, not QThreadPool.

◆ ~ActionJob()

Digikam::ActionJob::~ActionJob ( )
override

Re-implement destructor in you implementation. Don't forget to cancel job.

References cancel().

Member Function Documentation

◆ cancel

◆ signalDone

◆ signalProgress

void Digikam::ActionJob::signalProgress ( int  )
signal

Use this signal in your implementation to inform ActionThreadBase manager the job progress

Referenced by Digikam::VidSlideTask::run().

◆ signalStarted

void Digikam::ActionJob::signalStarted ( )
signal

Use this signal in your implementation to inform ActionThreadBase manager that job is started

Referenced by Digikam::DatabaseTask::run().

Member Data Documentation

◆ m_cancel

◆ m_timer

QElapsedTimer Digikam::ActionJob::m_timer

Timer to determine the running time of the job.

Referenced by Digikam::ActionThreadBase::run(), and Digikam::ActionThreadBase::slotJobFinished().


The documentation for this class was generated from the following files: