QGIS/python/core/auto_generated/qgsrunprocess.sip.in
Nyall Dawson d1761bdb15 Port QProcess::splitCommand from qt 5.15
This is a useful method, and desirable in Qt < 5.15. It's also not
exposed currently to Python, so this doubles as a way for plugins
to use this method.
2021-01-07 06:01:39 +10:00

61 lines
2.1 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsrunprocess.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsRunProcess: QObject /NoDefaultCtors/
{
%Docstring
A class that executes an external program/script.
It can optionally capture the standard output and error from the
process and displays them in a dialog box.
On some platforms (e.g. iOS) , the process execution is skipped
https://lists.qt-project.org/pipermail/development/2015-July/022205.html
%End
%TypeHeaderCode
#include "qgsrunprocess.h"
%End
public:
static QgsRunProcess *create( const QString &action, bool capture ) /Factory/;
static QStringList splitCommand( const QString &command );
%Docstring
Splits the string ``command`` into a list of tokens, and returns
the list.
Tokens with spaces can be surrounded by double quotes; three
consecutive double quotes represent the quote character itself.
.. versionadded:: 3.18
%End
private:
QgsRunProcess( const QString &action, bool capture );
~QgsRunProcess();
public slots:
void stdoutAvailable();
void stderrAvailable();
void processError( QProcess::ProcessError );
void processExit( int, QProcess::ExitStatus );
void dialogGone();
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsrunprocess.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/