PipxInterface/Documentation/Source/Plugin_Pipx_Interface.PipxInterface.PipxProcess.html

changeset 78
5efcdee9c170
child 83
d841c572a465
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PipxInterface/Documentation/Source/Plugin_Pipx_Interface.PipxInterface.PipxProcess.html	Sun Sep 15 11:57:39 2024 +0200
@@ -0,0 +1,194 @@
+<!DOCTYPE html>
+<html><head>
+<title>Plugin_Pipx_Interface.PipxInterface.PipxProcess</title>
+<meta charset="UTF-8">
+<link rel="stylesheet" href="styles.css">
+</head>
+<body>
+<a NAME="top" ID="top"></a>
+<h1>Plugin_Pipx_Interface.PipxInterface.PipxProcess</h1>
+<p>
+Module implementing a QProcess derive class with a timeout and convenience signals.
+</p>
+
+<h3>Global Attributes</h3>
+<table>
+<tr><td>None</td></tr>
+</table>
+
+<h3>Classes</h3>
+<table>
+<tr>
+<td><a href="#PipxProcess">PipxProcess</a></td>
+<td>Class implementing a QProcess derive class with a timeout and convenience signals succeeded and failed.</td>
+</tr>
+</table>
+
+<h3>Functions</h3>
+<table>
+<tr><td>None</td></tr>
+</table>
+
+<hr />
+<hr />
+<a NAME="PipxProcess" ID="PipxProcess"></a>
+<h2>PipxProcess</h2>
+<p>
+    Class implementing a QProcess derive class with a timeout and convenience signals
+    succeeded and failed.
+</p>
+
+<h3>Signals</h3>
+<dl>
+
+<dt>failed()</dt>
+<dd>
+emitted to indicate a process failure
+</dd>
+<dt>succeeded()</dt>
+<dd>
+emitted to indicate that the process finished successfully
+</dd>
+<dt>timeout()</dt>
+<dd>
+emitted to indicate the expiry of the configured timeout value
+</dd>
+</dl>
+<h3>Derived from</h3>
+QProcess
+<h3>Class Attributes</h3>
+<table>
+<tr><td>None</td></tr>
+</table>
+
+<h3>Class Methods</h3>
+<table>
+<tr><td>None</td></tr>
+</table>
+
+<h3>Methods</h3>
+<table>
+<tr>
+<td><a href="#PipxProcess.__init__">PipxProcess</a></td>
+<td>Constructor</td>
+</tr>
+<tr>
+<td><a href="#PipxProcess.__finished">__finished</a></td>
+<td>Private slot handling the end of the process.</td>
+</tr>
+<tr>
+<td><a href="#PipxProcess.__started">__started</a></td>
+<td>Private slot handling the process start.</td>
+</tr>
+<tr>
+<td><a href="#PipxProcess.__timeout">__timeout</a></td>
+<td>Private slot to handle the timer interval exoiration.</td>
+</tr>
+<tr>
+<td><a href="#PipxProcess.timedOut">timedOut</a></td>
+<td>Public method to test, if the process timed out.</td>
+</tr>
+<tr>
+<td><a href="#PipxProcess.timeoutInterval">timeoutInterval</a></td>
+<td>Public method to get the process timeout interval.</td>
+</tr>
+</table>
+
+<h3>Static Methods</h3>
+<table>
+<tr><td>None</td></tr>
+</table>
+
+
+<a NAME="PipxProcess.__init__" ID="PipxProcess.__init__"></a>
+<h4>PipxProcess (Constructor)</h4>
+<b>PipxProcess</b>(<i>timeout=30000, parent=None</i>)
+<p>
+        Constructor
+</p>
+
+<dl>
+
+<dt><i>timeout</i> (int (optional))</dt>
+<dd>
+timeout value in milliseconds. If the process does not finish
+            within this interval, it is killed (defaults to 30000)
+</dd>
+<dt><i>parent</i> (QObject (optional))</dt>
+<dd>
+reference to the parent object (defaults to None)
+</dd>
+</dl>
+<a NAME="PipxProcess.__finished" ID="PipxProcess.__finished"></a>
+<h4>PipxProcess.__finished</h4>
+<b>__finished</b>(<i>exitCode, exitStatus</i>)
+<p>
+        Private slot handling the end of the process.
+</p>
+
+<dl>
+
+<dt><i>exitCode</i> (int)</dt>
+<dd>
+exit code of the process (0 = success)
+</dd>
+<dt><i>exitStatus</i> (QProcess.ExitStatus)</dt>
+<dd>
+exit status of the process
+</dd>
+</dl>
+<a NAME="PipxProcess.__started" ID="PipxProcess.__started"></a>
+<h4>PipxProcess.__started</h4>
+<b>__started</b>(<i></i>)
+<p>
+        Private slot handling the process start.
+</p>
+
+<a NAME="PipxProcess.__timeout" ID="PipxProcess.__timeout"></a>
+<h4>PipxProcess.__timeout</h4>
+<b>__timeout</b>(<i></i>)
+<p>
+        Private slot to handle the timer interval exoiration.
+</p>
+
+<a NAME="PipxProcess.timedOut" ID="PipxProcess.timedOut"></a>
+<h4>PipxProcess.timedOut</h4>
+<b>timedOut</b>(<i></i>)
+<p>
+        Public method to test, if the process timed out.
+</p>
+
+<dl>
+<dt>Return:</dt>
+<dd>
+flag indicating a timeout
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+bool
+</dd>
+</dl>
+<a NAME="PipxProcess.timeoutInterval" ID="PipxProcess.timeoutInterval"></a>
+<h4>PipxProcess.timeoutInterval</h4>
+<b>timeoutInterval</b>(<i></i>)
+<p>
+        Public method to get the process timeout interval.
+</p>
+
+<dl>
+<dt>Return:</dt>
+<dd>
+process timeout interval in milliseconds
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+int
+</dd>
+</dl>
+<div align="right"><a href="#top">Up</a></div>
+<hr />
+</body></html>

eric ide

mercurial