Thu, 30 Dec 2021 11:47:53 +0100
Updated version info to indicate relation to eric7.
<!DOCTYPE html> <html><head> <title>Plugin_Mqtt_Monitor.PluginMqttMonitor</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>Plugin_Mqtt_Monitor.PluginMqttMonitor</h1> <p> Module implementing the MQTT Monitor plug-in. </p> <h3>Global Attributes</h3> <table> <tr><td>author</td></tr><tr><td>autoactivate</td></tr><tr><td>className</td></tr><tr><td>deactivateable</td></tr><tr><td>error</td></tr><tr><td>longDescription</td></tr><tr><td>mqttPluginObject</td></tr><tr><td>name</td></tr><tr><td>needsRestart</td></tr><tr><td>packageName</td></tr><tr><td>pyqtApi</td></tr><tr><td>shortDescription</td></tr><tr><td>version</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#MqttMonitorPlugin">MqttMonitorPlugin</a></td> <td>Class implementing the MQTT Monitor plug-in.</td> </tr> </table> <h3>Functions</h3> <table> <tr> <td><a href="#createMqttPage">createMqttPage</a></td> <td>Module function to create the autocompletion configuration page.</td> </tr> <tr> <td><a href="#exeDisplayData">exeDisplayData</a></td> <td>Module function to support the display of some executable info.</td> </tr> <tr> <td><a href="#getConfigData">getConfigData</a></td> <td>Module function returning data as required by the configuration dialog.</td> </tr> <tr> <td><a href="#installDependencies">installDependencies</a></td> <td>Function to install dependencies of this plug-in.</td> </tr> <tr> <td><a href="#prepareUninstall">prepareUninstall</a></td> <td>Module function to prepare for an uninstallation.</td> </tr> </table> <hr /> <hr /> <a NAME="MqttMonitorPlugin" ID="MqttMonitorPlugin"></a> <h2>MqttMonitorPlugin</h2> <p> Class implementing the MQTT Monitor plug-in. </p> <h3>Derived from</h3> QObject <h3>Class Attributes</h3> <table> <tr><td>PreferencesKey</td></tr> </table> <h3>Class Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#MqttMonitorPlugin.__init__">MqttMonitorPlugin</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#MqttMonitorPlugin.__activateWidget">__activateWidget</a></td> <td>Private slot to handle the activation of the MQTT Monitor.</td> </tr> <tr> <td><a href="#MqttMonitorPlugin.__initialize">__initialize</a></td> <td>Private slot to (re)initialize the plugin.</td> </tr> <tr> <td><a href="#MqttMonitorPlugin.__loadTranslator">__loadTranslator</a></td> <td>Private method to load the translation file.</td> </tr> <tr> <td><a href="#MqttMonitorPlugin.activate">activate</a></td> <td>Public method to activate this plug-in.</td> </tr> <tr> <td><a href="#MqttMonitorPlugin.deactivate">deactivate</a></td> <td>Public method to deactivate this plug-in.</td> </tr> <tr> <td><a href="#MqttMonitorPlugin.getPreferences">getPreferences</a></td> <td>Public method to retrieve the various settings.</td> </tr> <tr> <td><a href="#MqttMonitorPlugin.setPreferences">setPreferences</a></td> <td>Public method to store the various settings.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="MqttMonitorPlugin.__init__" ID="MqttMonitorPlugin.__init__"></a> <h4>MqttMonitorPlugin (Constructor)</h4> <b>MqttMonitorPlugin</b>(<i>ui</i>) <p> Constructor </p> <dl> <dt><i>ui</i> (UI.UserInterface)</dt> <dd> reference to the user interface object </dd> </dl> <a NAME="MqttMonitorPlugin.__activateWidget" ID="MqttMonitorPlugin.__activateWidget"></a> <h4>MqttMonitorPlugin.__activateWidget</h4> <b>__activateWidget</b>(<i></i>) <p> Private slot to handle the activation of the MQTT Monitor. </p> <a NAME="MqttMonitorPlugin.__initialize" ID="MqttMonitorPlugin.__initialize"></a> <h4>MqttMonitorPlugin.__initialize</h4> <b>__initialize</b>(<i></i>) <p> Private slot to (re)initialize the plugin. </p> <a NAME="MqttMonitorPlugin.__loadTranslator" ID="MqttMonitorPlugin.__loadTranslator"></a> <h4>MqttMonitorPlugin.__loadTranslator</h4> <b>__loadTranslator</b>(<i></i>) <p> Private method to load the translation file. </p> <a NAME="MqttMonitorPlugin.activate" ID="MqttMonitorPlugin.activate"></a> <h4>MqttMonitorPlugin.activate</h4> <b>activate</b>(<i></i>) <p> Public method to activate this plug-in. </p> <dl> <dt>Return:</dt> <dd> tuple of None and activation status </dd> </dl> <dl> <dt>Return Type:</dt> <dd> tuple of (None, bool) </dd> </dl> <a NAME="MqttMonitorPlugin.deactivate" ID="MqttMonitorPlugin.deactivate"></a> <h4>MqttMonitorPlugin.deactivate</h4> <b>deactivate</b>(<i></i>) <p> Public method to deactivate this plug-in. </p> <a NAME="MqttMonitorPlugin.getPreferences" ID="MqttMonitorPlugin.getPreferences"></a> <h4>MqttMonitorPlugin.getPreferences</h4> <b>getPreferences</b>(<i>key</i>) <p> Public method to retrieve the various settings. </p> <dl> <dt><i>key</i> (str)</dt> <dd> key of the setting </dd> </dl> <dl> <dt>Return:</dt> <dd> value of the requested setting </dd> </dl> <dl> <dt>Return Type:</dt> <dd> Any </dd> </dl> <a NAME="MqttMonitorPlugin.setPreferences" ID="MqttMonitorPlugin.setPreferences"></a> <h4>MqttMonitorPlugin.setPreferences</h4> <b>setPreferences</b>(<i>key, value</i>) <p> Public method to store the various settings. </p> <dl> <dt><i>key</i> (str)</dt> <dd> key of the setting to be set </dd> <dt><i>value</i> (Any)</dt> <dd> value to be set </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="createMqttPage" ID="createMqttPage"></a> <h2>createMqttPage</h2> <b>createMqttPage</b>(<i>configDlg</i>) <p> Module function to create the autocompletion configuration page. </p> <dl> <dt><i>configDlg</i> (ConfigurationWidget)</dt> <dd> reference to the configuration dialog </dd> </dl> <dl> <dt>Return:</dt> <dd> reference to the configuration page </dd> </dl> <dl> <dt>Return Type:</dt> <dd> AutoCompletionRopePage </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="exeDisplayData" ID="exeDisplayData"></a> <h2>exeDisplayData</h2> <b>exeDisplayData</b>(<i></i>) <p> Module function to support the display of some executable info. </p> <dl> <dt>Return:</dt> <dd> dictionary containing the data to query the presence of the executable </dd> </dl> <dl> <dt>Return Type:</dt> <dd> dict </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="getConfigData" ID="getConfigData"></a> <h2>getConfigData</h2> <b>getConfigData</b>(<i></i>) <p> Module function returning data as required by the configuration dialog. </p> <dl> <dt>Return:</dt> <dd> dictionary containing the relevant data </dd> </dl> <dl> <dt>Return Type:</dt> <dd> dict </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="installDependencies" ID="installDependencies"></a> <h2>installDependencies</h2> <b>installDependencies</b>(<i>pipInstall</i>) <p> Function to install dependencies of this plug-in. </p> <dl> <dt><i>pipInstall</i> (function)</dt> <dd> function to be called with a list of package names. </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="prepareUninstall" ID="prepareUninstall"></a> <h2>prepareUninstall</h2> <b>prepareUninstall</b>(<i></i>) <p> Module function to prepare for an uninstallation. </p> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>