18#ifndef QGSPROXYPROGRESSTASK_H
19#define QGSPROXYPROGRESSTASK_H
24#include <QWaitCondition>
59 void finalize(
bool result );
68 void setProxyProgress(
double progress );
83 QWaitCondition mNotFinishedWaitCondition;
84 QMutex mNotFinishedMutex;
85 bool mAlreadyFinished =
false;
A QgsTask shell which proxies progress reports.
QgsProxyProgressTask(const QgsProxyProgressTask &other)=delete
QgsProxyProgressTask cannot be copied.
void canceled()
Emitted when the task is canceled.
QgsProxyProgressTask & operator=(const QgsProxyProgressTask &other)=delete
QgsProxyProgressTask cannot be copied.
Scoped QgsScopedProxyProgressTask, which automatically adds the proxy task to the application task ma...
QgsScopedProxyProgressTask & operator=(const QgsScopedProxyProgressTask &other)=delete
QgsScopedProxyProgressTask cannot be copied.
QgsScopedProxyProgressTask(const QgsScopedProxyProgressTask &other)=delete
QgsScopedProxyProgressTask cannot be copied.
Abstract base class for long running background tasks.
virtual bool run()=0
Performs the task's operation.
virtual void cancel()
Notifies the task that it should terminate.
void setProgress(double progress)
Sets the task's current progress.