|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Helpviewer.WebPlugins.WebPluginFactory</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Helpviewer.WebPlugins.WebPluginFactory</h1> |
|
23 <p> |
|
24 Module implementing the web plug-in factory. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#WebPluginFactory">WebPluginFactory</a></td> |
|
34 <td>Class implementing the web plug-in factory.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="WebPluginFactory" ID="WebPluginFactory"></a> |
|
43 <h2>WebPluginFactory</h2> |
|
44 <p> |
|
45 Class implementing the web plug-in factory. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QWebPluginFactory |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#WebPluginFactory.__init__">WebPluginFactory</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#WebPluginFactory.__initialize">__initialize</a></td> |
|
64 <td>Private method to initialize the factory.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#WebPluginFactory.create">create</a></td> |
|
67 <td>Public method to create a plug-in instance for the given MIME type with the given data.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#WebPluginFactory.plugin">plugin</a></td> |
|
70 <td>Public method to get a reference to the named plug-in.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#WebPluginFactory.plugins">plugins</a></td> |
|
73 <td>Public method to get a list of plug-ins.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#WebPluginFactory.refreshPlugins">refreshPlugins</a></td> |
|
76 <td>Public method to refresh the list of supported plug-ins.</td> |
|
77 </tr> |
|
78 </table> |
|
79 <h3>Static Methods</h3> |
|
80 <table> |
|
81 <tr><td>None</td></tr> |
|
82 </table> |
|
83 <a NAME="WebPluginFactory.__init__" ID="WebPluginFactory.__init__"></a> |
|
84 <h4>WebPluginFactory (Constructor)</h4> |
|
85 <b>WebPluginFactory</b>(<i>parent=None</i>) |
|
86 <p> |
|
87 Constructor |
|
88 </p><dl> |
|
89 <dt><i>parent</i></dt> |
|
90 <dd> |
|
91 reference to the parent object (QObject) |
|
92 </dd> |
|
93 </dl><a NAME="WebPluginFactory.__initialize" ID="WebPluginFactory.__initialize"></a> |
|
94 <h4>WebPluginFactory.__initialize</h4> |
|
95 <b>__initialize</b>(<i></i>) |
|
96 <p> |
|
97 Private method to initialize the factory. |
|
98 </p><a NAME="WebPluginFactory.create" ID="WebPluginFactory.create"></a> |
|
99 <h4>WebPluginFactory.create</h4> |
|
100 <b>create</b>(<i>mimeType, url, argumentNames, argumentValues</i>) |
|
101 <p> |
|
102 Public method to create a plug-in instance for the given MIME type with |
|
103 the given data. |
|
104 </p><dl> |
|
105 <dt><i>mimeType</i></dt> |
|
106 <dd> |
|
107 MIME type for the plug-in (string) |
|
108 </dd><dt><i>url</i></dt> |
|
109 <dd> |
|
110 URL for the plug-in (QUrl) |
|
111 </dd><dt><i>argumentNames</i></dt> |
|
112 <dd> |
|
113 list of argument names (list of strings) |
|
114 </dd><dt><i>argumentValues</i></dt> |
|
115 <dd> |
|
116 list of argument values (list of strings) |
|
117 </dd> |
|
118 </dl><dl> |
|
119 <dt>Returns:</dt> |
|
120 <dd> |
|
121 reference to the created object (QObject) |
|
122 </dd> |
|
123 </dl><a NAME="WebPluginFactory.plugin" ID="WebPluginFactory.plugin"></a> |
|
124 <h4>WebPluginFactory.plugin</h4> |
|
125 <b>plugin</b>(<i>name</i>) |
|
126 <p> |
|
127 Public method to get a reference to the named plug-in. |
|
128 </p><dl> |
|
129 <dt><i>name</i></dt> |
|
130 <dd> |
|
131 name of the plug-in (string) |
|
132 </dd> |
|
133 </dl><dl> |
|
134 <dt>Returns:</dt> |
|
135 <dd> |
|
136 reference to the named plug-in |
|
137 </dd> |
|
138 </dl><a NAME="WebPluginFactory.plugins" ID="WebPluginFactory.plugins"></a> |
|
139 <h4>WebPluginFactory.plugins</h4> |
|
140 <b>plugins</b>(<i></i>) |
|
141 <p> |
|
142 Public method to get a list of plug-ins. |
|
143 </p><dl> |
|
144 <dt>Returns:</dt> |
|
145 <dd> |
|
146 list of plug-ins (list of QWebPluginFactory.Plugin) |
|
147 </dd> |
|
148 </dl><a NAME="WebPluginFactory.refreshPlugins" ID="WebPluginFactory.refreshPlugins"></a> |
|
149 <h4>WebPluginFactory.refreshPlugins</h4> |
|
150 <b>refreshPlugins</b>(<i></i>) |
|
151 <p> |
|
152 Public method to refresh the list of supported plug-ins. |
|
153 </p> |
|
154 <div align="right"><a href="#top">Up</a></div> |
|
155 <hr /> |
|
156 </body></html> |