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.qdoc14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/scripting-api/packagemanagercore.qdoc b/doc/scripting-api/packagemanagercore.qdoc
index 50666d3be..ac6cad2ce 100644
--- a/doc/scripting-api/packagemanagercore.qdoc
+++ b/doc/scripting-api/packagemanagercore.qdoc
@@ -358,6 +358,20 @@
*/
/*!
+ \qmlmethod string installer::readConsoleLine(string title, int maxlen)
+
+ Prints \a title to a console and reads console input. Function halts the
+ installer and waits for user input. Function returns a line which user has
+ typed into the console. The maximum allowed line length is set to
+ \a maxlen. If the stream contains lines longer than this, then the line is
+ split after \a maxlen characters. If \a maxlen is 0, the line can be of
+ any length.
+
+ \note This function can only be called when installing from a command line
+ instance without GUI.
+*/
+
+/*!
\qmlmethod boolean installer::fileExists(string filePath)
Returns \c true if the \a filePath exists; otherwise returns \c false.