QGIS/python/PyQt6/core/auto_generated/qgsvirtuallayertask.sip.in
Julien Cabieces bb3c36a69b Initialize sip bindings for PyQt6
use exactly the ones from PyQt5 so we can study the difference when
generating for PyQt6
2023-12-08 03:38:42 +10:00

86 lines
2.2 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(signature="appended")
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
QString exceptionText() const;
%Docstring
Returns the exception text or an empty string if no exceptions were raised
.. versionadded:: 3.4
%End
void setExceptionText( const QString &exceptionText );
%Docstring
Sets the ``exceptionText``
.. versionadded:: 3.4
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsvirtuallayertask.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/