summaryrefslogtreecommitdiffstats
path: root/doc/scripting-api/packagemanagercore.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/scripting-api/packagemanagercore.qdoc')
-rw-r--r--doc/scripting-api/packagemanagercore.qdoc9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/scripting-api/packagemanagercore.qdoc b/doc/scripting-api/packagemanagercore.qdoc
index 418dbdf14..66441fce5 100644
--- a/doc/scripting-api/packagemanagercore.qdoc
+++ b/doc/scripting-api/packagemanagercore.qdoc
@@ -505,13 +505,20 @@
/*!
\qmlmethod array installer::execute(string program, stringlist arguments = undefined,
- string stdin = "")
+ string stdin = "", string stdinCodec = "latin1",
+ string stdoutCodec = "latin1")
Starts the program \a program with the arguments \a arguments in a
new process and waits for it to finish.
\a stdin is sent as standard input to the application.
+ \a stdInCodec is the name of the codec to use for converting the input string
+ into bytes to write to the standard input of the application.
+
+ \a stdOutCodec is the name of the codec to use for converting data written by the
+ application to standard output into a string.
+
Returns an empty array if the program could not be executed, otherwise
the output of command as the first item, and the return code as the second.