Helpviewer/WebPlugins/WebPluginInterface.py

changeset 2954
bf0215fe12d1
parent 2302
f29e9405c851
child 2962
d6c9d1ca2da4
--- a/Helpviewer/WebPlugins/WebPluginInterface.py	Sat Sep 28 19:06:25 2013 +0200
+++ b/Helpviewer/WebPlugins/WebPluginInterface.py	Sat Sep 28 20:07:36 2013 +0200
@@ -7,6 +7,9 @@
 Module implementing the web plug-in interface.
 """
 
+from PyQt4.QtGui import QWidget
+from PyQt4.QtWebKit import QWebPluginFactory
+
 
 class WebPluginInterface(object):
     """
@@ -17,8 +20,11 @@
         Public method to create a meta plug-in object containing plug-in info.
         
         @return meta plug-in object (QWebPluginFactory.Plugin)
+        @exception NotImplementedError raised to indicate that this method
+            must be implemented by subclasses
         """
         raise NotImplementedError
+        return QWebPluginFactory.Plugin()
     
     def create(self, mimeType, url, argumentNames, argumentValues):
         """
@@ -29,17 +35,25 @@
         @param argumentNames list of argument names (list of strings)
         @param argumentValues list of argument values (list of strings)
         @return reference to the created object (QWidget)
+        @exception NotImplementedError raised to indicate that this method
+            must be implemented by subclasses
         """
         raise NotImplementedError
+        return QWidget()
     
     def configure(self):
         """
         Public method to configure the plug-in.
+        
+        @exception NotImplementedError raised to indicate that this method
+            must be implemented by subclasses
         """
         raise NotImplementedError
     
     def isAnonymous(self):
         """
         Public method to indicate an anonymous plug-in.
+        
+        @return flag indicating anonymous state (boolean)
         """
         return False

eric ide

mercurial