Helpviewer/WebPlugins/WebPluginInterface.py

Mon, 25 Mar 2013 10:24:44 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 25 Mar 2013 10:24:44 +0100
branch
Py2 comp.
changeset 2538
b2642e7a4c18
parent 2525
8b507a9a2d40
child 3057
10516539f238
permissions
-rw-r--r--

Fixed a few PEP-8 related issues.

# -*- coding: utf-8 -*-

# Copyright (c) 2012 - 2013 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module implementing the web plug-in interface.
"""


from __future__ import unicode_literals    # __IGNORE_WARNING__


class WebPluginInterface(object):
    """
    Class implementing the web plug-in interface.
    """
    def metaPlugin(self):
        """
        Public method to create a meta plug-in object containing plug-in info.
        
        @return meta plug-in object (QWebPluginFactory.Plugin)
        """
        raise NotImplementedError
    
    def create(self, mimeType, url, argumentNames, argumentValues):
        """
        Public method to create a plug-in instance for the given data.
        
        @param mimeType MIME type for the plug-in (string)
        @param url URL for the plug-in (QUrl)
        @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)
        """
        raise NotImplementedError
    
    def configure(self):
        """
        Public method to configure the plug-in.
        """
        raise NotImplementedError
    
    def isAnonymous(self):
        """
        Public method to indicate an anonymous plug-in.
        """
        return False

eric ide

mercurial