QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsScopedProxyProgressTask Class Reference

A QgsProxyProgressTask with automatic lifetime. More...

#include <qgsproxyprogresstask.h>

Public Member Functions

 QgsScopedProxyProgressTask (const QgsScopedProxyProgressTask &other)=delete
 QgsScopedProxyProgressTask (const QString &description)
 Constructor for QgsScopedProxyProgressTask, with the specified description.
 ~QgsScopedProxyProgressTask ()
QgsScopedProxyProgressTaskoperator= (const QgsScopedProxyProgressTask &other)=delete
void setProgress (double progress)
 Sets the progress (from 0 to 100) for the proxied operation.

Detailed Description

A QgsProxyProgressTask with automatic lifetime.

QgsScopedProxyProgressTask implements a QgsProxyProgressTask which automatically adds the proxy task to the application task manager on construction and finalizes the task when it goes out of scope.

Since
QGIS 3.4

Definition at line 99 of file qgsproxyprogresstask.h.

Constructor & Destructor Documentation

◆ QgsScopedProxyProgressTask() [1/2]

QgsScopedProxyProgressTask::QgsScopedProxyProgressTask ( const QString & description)

Constructor for QgsScopedProxyProgressTask, with the specified description.

Definition at line 70 of file qgsproxyprogresstask.cpp.

◆ QgsScopedProxyProgressTask() [2/2]

QgsScopedProxyProgressTask::QgsScopedProxyProgressTask ( const QgsScopedProxyProgressTask & other)
delete

◆ ~QgsScopedProxyProgressTask()

QgsScopedProxyProgressTask::~QgsScopedProxyProgressTask ( )

Definition at line 76 of file qgsproxyprogresstask.cpp.

Member Function Documentation

◆ operator=()

QgsScopedProxyProgressTask & QgsScopedProxyProgressTask::operator= ( const QgsScopedProxyProgressTask & other)
delete

◆ setProgress()

void QgsScopedProxyProgressTask::setProgress ( double progress)

Sets the progress (from 0 to 100) for the proxied operation.

Definition at line 81 of file qgsproxyprogresstask.cpp.


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