mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
72 lines
1.9 KiB
Plaintext
72 lines
1.9 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsvirtuallayertask.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
class QgsVirtualLayerTask : QgsTask
|
|
{
|
|
%Docstring
|
|
|
|
Initializes a virtual layer with postpone mode activated and reloads the
|
|
data in a separated thread.
|
|
|
|
.. versionadded:: 3.2
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsvirtuallayertask.h"
|
|
%End
|
|
public:
|
|
|
|
QgsVirtualLayerTask( const QgsVirtualLayerDefinition &definition );
|
|
%Docstring
|
|
Constructor.
|
|
|
|
:param definition: The definition to use for initializing the virtual layer
|
|
%End
|
|
|
|
QgsVectorLayer *layer();
|
|
%Docstring
|
|
Returns the underlying virtual layer.
|
|
%End
|
|
|
|
QgsVectorLayer *takeLayer();
|
|
%Docstring
|
|
Returns the underlying virtual layer and ownership.
|
|
%End
|
|
|
|
QgsVirtualLayerDefinition definition() const;
|
|
%Docstring
|
|
Returns the virtual layer definition.
|
|
%End
|
|
|
|
virtual bool run();
|
|
|
|
%Docstring
|
|
Reloads the data.
|
|
|
|
:return: True if the virtual layer is valid, false otherwise.
|
|
%End
|
|
|
|
virtual void cancel();
|
|
|
|
%Docstring
|
|
Cancels the pending query and the parent task.
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsvirtuallayertask.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|