QGIS/python/core/qgsvirtuallayertask.sip.in

72 lines
1.9 KiB
Plaintext
Raw Normal View History

2018-01-23 07:53:42 +00:00
/************************************************************************
* 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
2018-01-23 10:08:19 +00:00
Initializes a virtual layer with postpone mode activated and reloads the
data in a separated thread.
2018-01-23 07:53:42 +00:00
2018-01-23 10:08:19 +00:00
.. versionadded:: 3.2
2018-01-23 07:53:42 +00:00
%End
%TypeHeaderCode
#include "qgsvirtuallayertask.h"
%End
public:
QgsVirtualLayerTask( const QgsVirtualLayerDefinition &definition );
2018-01-23 10:08:19 +00:00
%Docstring
Constructor.
:param definition: The definition to use for initializing the virtual layer
%End
2018-01-23 07:53:42 +00:00
QgsVectorLayer *layer();
2018-01-23 10:08:19 +00:00
%Docstring
Returns the underlying virtual layer.
2018-02-28 11:35:27 +01:00
%End
QgsVectorLayer *takeLayer();
%Docstring
Returns the underlying virtual layer and ownership.
2018-01-23 10:08:19 +00:00
%End
2018-01-23 07:53:42 +00:00
QgsVirtualLayerDefinition definition() const;
2018-01-23 10:08:19 +00:00
%Docstring
Returns the virtual layer definition.
%End
2018-01-23 07:53:42 +00:00
virtual bool run();
2018-01-23 10:08:19 +00:00
%Docstring
Reloads the data.
:return: True if the virtual layer is valid, false otherwise.
%End
2018-01-23 07:53:42 +00:00
virtual void cancel();
2018-01-23 10:08:19 +00:00
%Docstring
Cancels the pending query and the parent task.
%End
2018-01-23 07:53:42 +00:00
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsvirtuallayertask.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/