1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgscopyfiletask.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsCopyFileTask : QgsTask
{
%Docstring(signature="appended")
Task to copy a file on disk
.. versionadded:: 3.22
%End
%TypeHeaderCode
#include "qgscopyfiletask.h"
%End
public:
QgsCopyFileTask( const QString &source, const QString &destination );
%Docstring
Creates a task that copy ``source`` file to ``destination``
%End
virtual bool run();
const QString &errorString() const;
%Docstring
Returns errorString if an error occurred, else returns null QString
%End
const QString &destination() const;
%Docstring
It could be different from the original one. If original destination was
a directory the returned destination is now the absolute file path of
the copied file
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgscopyfiletask.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|