5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.WebBrowser.Network.ProtocolHandlerManager</h1> |
9 <h1>eric7.WebBrowser.Network.ProtocolHandlerManager</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing the protocol handler manager. |
11 Module implementing the protocol handler manager. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
15 <table> |
16 <table> |
16 <tr><td>None</td></tr> |
17 <tr><td>None</td></tr> |
17 </table> |
18 </table> |
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
20 <table> |
21 <table> |
|
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#ProtocolHandlerManager">ProtocolHandlerManager</a></td> |
22 <td><a href="#ProtocolHandlerManager">ProtocolHandlerManager</a></td> |
25 <td>Class implementing the protocol handler manager.</td> |
23 <td>Class implementing the protocol handler manager.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
28 <table> |
30 <table> |
29 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
30 </table> |
32 </table> |
31 |
33 <hr /> |
32 <hr /> |
34 <hr /> |
33 <hr /> |
35 <a NAME="ProtocolHandlerManager" ID="ProtocolHandlerManager"></a> |
34 <a NAME="ProtocolHandlerManager" ID="ProtocolHandlerManager"></a> |
36 <h2>ProtocolHandlerManager</h2> |
35 <h2>ProtocolHandlerManager</h2> |
37 |
|
38 <p> |
36 <p> |
39 Class implementing the protocol handler manager. |
37 Class implementing the protocol handler manager. |
40 </p> |
38 </p> |
|
39 |
41 <h3>Derived from</h3> |
40 <h3>Derived from</h3> |
42 QObject |
41 QObject |
43 <h3>Class Attributes</h3> |
42 <h3>Class Attributes</h3> |
44 |
43 <table> |
45 <table> |
44 <tr><td>None</td></tr> |
46 <tr><td>None</td></tr> |
45 </table> |
47 </table> |
46 |
48 <h3>Class Methods</h3> |
47 <h3>Class Methods</h3> |
49 |
48 <table> |
50 <table> |
49 <tr><td>None</td></tr> |
51 <tr><td>None</td></tr> |
50 </table> |
52 </table> |
51 |
53 <h3>Methods</h3> |
52 <h3>Methods</h3> |
54 |
53 <table> |
55 <table> |
|
56 |
|
57 <tr> |
54 <tr> |
58 <td><a href="#ProtocolHandlerManager.__init__">ProtocolHandlerManager</a></td> |
55 <td><a href="#ProtocolHandlerManager.__init__">ProtocolHandlerManager</a></td> |
59 <td>Constructor</td> |
56 <td>Constructor</td> |
60 </tr> |
57 </tr> |
61 <tr> |
58 <tr> |
97 <tr> |
94 <tr> |
98 <td><a href="#ProtocolHandlerManager.showProtocolHandlerManagerDialog">showProtocolHandlerManagerDialog</a></td> |
95 <td><a href="#ProtocolHandlerManager.showProtocolHandlerManagerDialog">showProtocolHandlerManagerDialog</a></td> |
99 <td>Public method to show the protocol handler manager dialog.</td> |
96 <td>Public method to show the protocol handler manager dialog.</td> |
100 </tr> |
97 </tr> |
101 </table> |
98 </table> |
|
99 |
102 <h3>Static Methods</h3> |
100 <h3>Static Methods</h3> |
103 |
101 <table> |
104 <table> |
102 <tr><td>None</td></tr> |
105 <tr><td>None</td></tr> |
103 </table> |
106 </table> |
104 |
107 |
105 |
108 <a NAME="ProtocolHandlerManager.__init__" ID="ProtocolHandlerManager.__init__"></a> |
106 <a NAME="ProtocolHandlerManager.__init__" ID="ProtocolHandlerManager.__init__"></a> |
109 <h4>ProtocolHandlerManager (Constructor)</h4> |
107 <h4>ProtocolHandlerManager (Constructor)</h4> |
110 <b>ProtocolHandlerManager</b>(<i>parent=None</i>) |
108 <b>ProtocolHandlerManager</b>(<i>parent=None</i>) |
111 |
|
112 <p> |
109 <p> |
113 Constructor |
110 Constructor |
114 </p> |
111 </p> |
|
112 |
115 <dl> |
113 <dl> |
116 |
114 |
117 <dt><i>parent</i> (QObject)</dt> |
115 <dt><i>parent</i> (QObject)</dt> |
118 <dd> |
116 <dd> |
119 reference to the parent object |
117 reference to the parent object |
120 </dd> |
118 </dd> |
121 </dl> |
119 </dl> |
122 <a NAME="ProtocolHandlerManager.__load" ID="ProtocolHandlerManager.__load"></a> |
120 <a NAME="ProtocolHandlerManager.__load" ID="ProtocolHandlerManager.__load"></a> |
123 <h4>ProtocolHandlerManager.__load</h4> |
121 <h4>ProtocolHandlerManager.__load</h4> |
124 <b>__load</b>(<i></i>) |
122 <b>__load</b>(<i></i>) |
125 |
|
126 <p> |
123 <p> |
127 Private method to load the registered protocol handlers. |
124 Private method to load the registered protocol handlers. |
128 </p> |
125 </p> |
|
126 |
129 <a NAME="ProtocolHandlerManager.__protocolHandlersFileName" ID="ProtocolHandlerManager.__protocolHandlersFileName"></a> |
127 <a NAME="ProtocolHandlerManager.__protocolHandlersFileName" ID="ProtocolHandlerManager.__protocolHandlersFileName"></a> |
130 <h4>ProtocolHandlerManager.__protocolHandlersFileName</h4> |
128 <h4>ProtocolHandlerManager.__protocolHandlersFileName</h4> |
131 <b>__protocolHandlersFileName</b>(<i></i>) |
129 <b>__protocolHandlersFileName</b>(<i></i>) |
132 |
|
133 <p> |
130 <p> |
134 Private method to determine the protocol handlers file name. |
131 Private method to determine the protocol handlers file name. |
135 </p> |
132 </p> |
|
133 |
136 <dl> |
134 <dl> |
137 <dt>Return:</dt> |
135 <dt>Return:</dt> |
138 <dd> |
136 <dd> |
139 name of the protocol handlers file |
137 name of the protocol handlers file |
140 </dd> |
138 </dd> |
146 </dd> |
144 </dd> |
147 </dl> |
145 </dl> |
148 <a NAME="ProtocolHandlerManager.__registerHandler" ID="ProtocolHandlerManager.__registerHandler"></a> |
146 <a NAME="ProtocolHandlerManager.__registerHandler" ID="ProtocolHandlerManager.__registerHandler"></a> |
149 <h4>ProtocolHandlerManager.__registerHandler</h4> |
147 <h4>ProtocolHandlerManager.__registerHandler</h4> |
150 <b>__registerHandler</b>(<i>scheme, url</i>) |
148 <b>__registerHandler</b>(<i>scheme, url</i>) |
151 |
|
152 <p> |
149 <p> |
153 Private method to register a protocol handler for a scheme. |
150 Private method to register a protocol handler for a scheme. |
154 </p> |
151 </p> |
|
152 |
155 <dl> |
153 <dl> |
156 |
154 |
157 <dt><i>scheme</i> (str)</dt> |
155 <dt><i>scheme</i> (str)</dt> |
158 <dd> |
156 <dd> |
159 scheme of the protocol handler |
157 scheme of the protocol handler |
164 </dd> |
162 </dd> |
165 </dl> |
163 </dl> |
166 <a NAME="ProtocolHandlerManager.__save" ID="ProtocolHandlerManager.__save"></a> |
164 <a NAME="ProtocolHandlerManager.__save" ID="ProtocolHandlerManager.__save"></a> |
167 <h4>ProtocolHandlerManager.__save</h4> |
165 <h4>ProtocolHandlerManager.__save</h4> |
168 <b>__save</b>(<i></i>) |
166 <b>__save</b>(<i></i>) |
169 |
|
170 <p> |
167 <p> |
171 Private method to save the protocol handlers. |
168 Private method to save the protocol handlers. |
172 </p> |
169 </p> |
|
170 |
173 <a NAME="ProtocolHandlerManager.__unregisterHandler" ID="ProtocolHandlerManager.__unregisterHandler"></a> |
171 <a NAME="ProtocolHandlerManager.__unregisterHandler" ID="ProtocolHandlerManager.__unregisterHandler"></a> |
174 <h4>ProtocolHandlerManager.__unregisterHandler</h4> |
172 <h4>ProtocolHandlerManager.__unregisterHandler</h4> |
175 <b>__unregisterHandler</b>(<i>scheme, url</i>) |
173 <b>__unregisterHandler</b>(<i>scheme, url</i>) |
176 |
|
177 <p> |
174 <p> |
178 Private method to unregister a protocol handler for a scheme. |
175 Private method to unregister a protocol handler for a scheme. |
179 </p> |
176 </p> |
|
177 |
180 <dl> |
178 <dl> |
181 |
179 |
182 <dt><i>scheme</i> (str)</dt> |
180 <dt><i>scheme</i> (str)</dt> |
183 <dd> |
181 <dd> |
184 scheme of the protocol handler |
182 scheme of the protocol handler |
189 </dd> |
187 </dd> |
190 </dl> |
188 </dl> |
191 <a NAME="ProtocolHandlerManager.addProtocolHandler" ID="ProtocolHandlerManager.addProtocolHandler"></a> |
189 <a NAME="ProtocolHandlerManager.addProtocolHandler" ID="ProtocolHandlerManager.addProtocolHandler"></a> |
192 <h4>ProtocolHandlerManager.addProtocolHandler</h4> |
190 <h4>ProtocolHandlerManager.addProtocolHandler</h4> |
193 <b>addProtocolHandler</b>(<i>scheme, url</i>) |
191 <b>addProtocolHandler</b>(<i>scheme, url</i>) |
194 |
|
195 <p> |
192 <p> |
196 Public method to add a protocol handler for a scheme. |
193 Public method to add a protocol handler for a scheme. |
197 </p> |
194 </p> |
|
195 |
198 <dl> |
196 <dl> |
199 |
197 |
200 <dt><i>scheme</i> (str)</dt> |
198 <dt><i>scheme</i> (str)</dt> |
201 <dd> |
199 <dd> |
202 scheme of the protocol handler |
200 scheme of the protocol handler |
207 </dd> |
205 </dd> |
208 </dl> |
206 </dl> |
209 <a NAME="ProtocolHandlerManager.protocolHandler" ID="ProtocolHandlerManager.protocolHandler"></a> |
207 <a NAME="ProtocolHandlerManager.protocolHandler" ID="ProtocolHandlerManager.protocolHandler"></a> |
210 <h4>ProtocolHandlerManager.protocolHandler</h4> |
208 <h4>ProtocolHandlerManager.protocolHandler</h4> |
211 <b>protocolHandler</b>(<i>scheme</i>) |
209 <b>protocolHandler</b>(<i>scheme</i>) |
212 |
|
213 <p> |
210 <p> |
214 Public method to get the protocol handler URL for a given scheme. |
211 Public method to get the protocol handler URL for a given scheme. |
215 </p> |
212 </p> |
|
213 |
216 <dl> |
214 <dl> |
217 |
215 |
218 <dt><i>scheme</i> (str)</dt> |
216 <dt><i>scheme</i> (str)</dt> |
219 <dd> |
217 <dd> |
220 scheme to look for |
218 scheme to look for |
233 </dd> |
231 </dd> |
234 </dl> |
232 </dl> |
235 <a NAME="ProtocolHandlerManager.protocolHandlers" ID="ProtocolHandlerManager.protocolHandlers"></a> |
233 <a NAME="ProtocolHandlerManager.protocolHandlers" ID="ProtocolHandlerManager.protocolHandlers"></a> |
236 <h4>ProtocolHandlerManager.protocolHandlers</h4> |
234 <h4>ProtocolHandlerManager.protocolHandlers</h4> |
237 <b>protocolHandlers</b>(<i></i>) |
235 <b>protocolHandlers</b>(<i></i>) |
238 |
|
239 <p> |
236 <p> |
240 Public method to get the registered protocol handlers. |
237 Public method to get the registered protocol handlers. |
241 </p> |
238 </p> |
|
239 |
242 <dl> |
240 <dl> |
243 <dt>Return:</dt> |
241 <dt>Return:</dt> |
244 <dd> |
242 <dd> |
245 dictionary containing the registered protocol handlers |
243 dictionary containing the registered protocol handlers |
246 </dd> |
244 </dd> |
252 </dd> |
250 </dd> |
253 </dl> |
251 </dl> |
254 <a NAME="ProtocolHandlerManager.removeProtocolHandler" ID="ProtocolHandlerManager.removeProtocolHandler"></a> |
252 <a NAME="ProtocolHandlerManager.removeProtocolHandler" ID="ProtocolHandlerManager.removeProtocolHandler"></a> |
255 <h4>ProtocolHandlerManager.removeProtocolHandler</h4> |
253 <h4>ProtocolHandlerManager.removeProtocolHandler</h4> |
256 <b>removeProtocolHandler</b>(<i>scheme</i>) |
254 <b>removeProtocolHandler</b>(<i>scheme</i>) |
257 |
|
258 <p> |
255 <p> |
259 Public method to remove the protocol handler for a given scheme. |
256 Public method to remove the protocol handler for a given scheme. |
260 </p> |
257 </p> |
|
258 |
261 <dl> |
259 <dl> |
262 |
260 |
263 <dt><i>scheme</i> (str)</dt> |
261 <dt><i>scheme</i> (str)</dt> |
264 <dd> |
262 <dd> |
265 scheme to remove |
263 scheme to remove |
266 </dd> |
264 </dd> |
267 </dl> |
265 </dl> |
268 <a NAME="ProtocolHandlerManager.showProtocolHandlerManagerDialog" ID="ProtocolHandlerManager.showProtocolHandlerManagerDialog"></a> |
266 <a NAME="ProtocolHandlerManager.showProtocolHandlerManagerDialog" ID="ProtocolHandlerManager.showProtocolHandlerManagerDialog"></a> |
269 <h4>ProtocolHandlerManager.showProtocolHandlerManagerDialog</h4> |
267 <h4>ProtocolHandlerManager.showProtocolHandlerManagerDialog</h4> |
270 <b>showProtocolHandlerManagerDialog</b>(<i></i>) |
268 <b>showProtocolHandlerManagerDialog</b>(<i></i>) |
271 |
|
272 <p> |
269 <p> |
273 Public method to show the protocol handler manager dialog. |
270 Public method to show the protocol handler manager dialog. |
274 </p> |
271 </p> |
|
272 |
275 <div align="right"><a href="#top">Up</a></div> |
273 <div align="right"><a href="#top">Up</a></div> |
276 <hr /> |
274 <hr /> |
277 </body></html> |
275 </body></html> |