|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.MicroPython.BluetoothDialogs.BluetoothController</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.MicroPython.BluetoothDialogs.BluetoothController</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing the Bluetooth related functionality. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#BluetoothController">BluetoothController</a></td> |
|
25 <td>Class implementing the Bluetooth related functionality.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="BluetoothController" ID="BluetoothController"></a> |
|
36 <h2>BluetoothController</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing the Bluetooth related functionality. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QObject |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#BluetoothController.__init__">BluetoothController</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#BluetoothController.__activateInterface">__activateInterface</a></td> |
|
63 <td>Private slot to activate the Bluetooth interface.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#BluetoothController.__deactivateInterface">__deactivateInterface</a></td> |
|
67 <td>Private slot to deactivate the Bluetooth interface.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#BluetoothController.__scan">__scan</a></td> |
|
71 <td>Private slot to scan for Bluetooth devices.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#BluetoothController.__showBtStatus">__showBtStatus</a></td> |
|
75 <td>Private slot to show the status and some parameters of the Bluetooth interface.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#BluetoothController.createMenu">createMenu</a></td> |
|
79 <td>Public method to create the Bluetooth submenu.</td> |
|
80 </tr> |
|
81 </table> |
|
82 <h3>Static Methods</h3> |
|
83 |
|
84 <table> |
|
85 <tr><td>None</td></tr> |
|
86 </table> |
|
87 |
|
88 <a NAME="BluetoothController.__init__" ID="BluetoothController.__init__"></a> |
|
89 <h4>BluetoothController (Constructor)</h4> |
|
90 <b>BluetoothController</b>(<i>microPython, parent=None</i>) |
|
91 |
|
92 <p> |
|
93 Constructor |
|
94 </p> |
|
95 <dl> |
|
96 |
|
97 <dt><i>microPython</i> (MicroPythonWidgep)</dt> |
|
98 <dd> |
|
99 reference to the MicroPython widget |
|
100 </dd> |
|
101 <dt><i>parent</i> (QObject (optional))</dt> |
|
102 <dd> |
|
103 reference to the parent object (defaults to None) |
|
104 </dd> |
|
105 </dl> |
|
106 <a NAME="BluetoothController.__activateInterface" ID="BluetoothController.__activateInterface"></a> |
|
107 <h4>BluetoothController.__activateInterface</h4> |
|
108 <b>__activateInterface</b>(<i></i>) |
|
109 |
|
110 <p> |
|
111 Private slot to activate the Bluetooth interface. |
|
112 </p> |
|
113 <a NAME="BluetoothController.__deactivateInterface" ID="BluetoothController.__deactivateInterface"></a> |
|
114 <h4>BluetoothController.__deactivateInterface</h4> |
|
115 <b>__deactivateInterface</b>(<i></i>) |
|
116 |
|
117 <p> |
|
118 Private slot to deactivate the Bluetooth interface. |
|
119 </p> |
|
120 <a NAME="BluetoothController.__scan" ID="BluetoothController.__scan"></a> |
|
121 <h4>BluetoothController.__scan</h4> |
|
122 <b>__scan</b>(<i></i>) |
|
123 |
|
124 <p> |
|
125 Private slot to scan for Bluetooth devices. |
|
126 </p> |
|
127 <a NAME="BluetoothController.__showBtStatus" ID="BluetoothController.__showBtStatus"></a> |
|
128 <h4>BluetoothController.__showBtStatus</h4> |
|
129 <b>__showBtStatus</b>(<i></i>) |
|
130 |
|
131 <p> |
|
132 Private slot to show the status and some parameters of the Bluetooth interface. |
|
133 </p> |
|
134 <a NAME="BluetoothController.createMenu" ID="BluetoothController.createMenu"></a> |
|
135 <h4>BluetoothController.createMenu</h4> |
|
136 <b>createMenu</b>(<i>menu</i>) |
|
137 |
|
138 <p> |
|
139 Public method to create the Bluetooth submenu. |
|
140 </p> |
|
141 <dl> |
|
142 |
|
143 <dt><i>menu</i> (QMenu)</dt> |
|
144 <dd> |
|
145 reference to the parent menu |
|
146 </dd> |
|
147 </dl> |
|
148 <dl> |
|
149 <dt>Return:</dt> |
|
150 <dd> |
|
151 reference to the created menu |
|
152 </dd> |
|
153 </dl> |
|
154 <dl> |
|
155 <dt>Return Type:</dt> |
|
156 <dd> |
|
157 QMenu |
|
158 </dd> |
|
159 </dl> |
|
160 <div align="right"><a href="#top">Up</a></div> |
|
161 <hr /> |
|
162 </body></html> |