mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
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.
61 lines
2.1 KiB
Plaintext
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 *
|
|
************************************************************************/
|