|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2012 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module implementing the web plug-in interface. |
|
8 """ |
|
9 |
|
10 class WebPluginInterface(object): |
|
11 """ |
|
12 Class implementing the web plug-in interface. |
|
13 """ |
|
14 def metaPlugin(self): |
|
15 """ |
|
16 Public method to create a meta plug-in object containing plug-in info. |
|
17 |
|
18 @return meta plug-in object (QWebPluginFactory.Plugin) |
|
19 """ |
|
20 raise NotImplementedError |
|
21 |
|
22 def create(self, mimeType, url, argumentNames, argumentValues): |
|
23 """ |
|
24 Public method to create a plug-in instance for the given data. |
|
25 |
|
26 @param mimeType MIME type for the plug-in (string) |
|
27 @param url URL for the plug-in (QUrl) |
|
28 @param argumentNames list of argument names (list of strings) |
|
29 @param argumentValues list of argument values (list of strings) |
|
30 @return reference to the created object (QWidget) |
|
31 """ |
|
32 raise NotImplementedError |
|
33 |
|
34 def configure(self): |
|
35 """ |
|
36 Public method to configure the plug-in. |
|
37 """ |
|
38 raise NotImplementedError |
|
39 |
|
40 def isAnonymous(self): |
|
41 """ |
|
42 Public method to indicate an anonymous plug-in. |
|
43 """ |
|
44 return False |