a
    ©ˆc	  ã                   @   s4   d Z ddlmZmZ ddlmZ G dd„ deƒZdS )ú The plugin manager interface. é    )ÚEventÚ	Interfaceé   )ÚPluginEventc                   @   sd   e Zd ZdZeeƒZeeƒZdd„ Zdd„ Z	dd„ Z
dd	„ Zd
d„ Zddd„Zdd„ Zddd„ZdS )ÚIPluginManagerr   c                 C   s   dS )z9 Return an iterator over the manager's plugins.

        N© ©Úselfr   r   ú\/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/envisage/i_plugin_manager.pyÚ__iter__   s    zIPluginManager.__iter__c                 C   s   dS )z' Add a plugin to the manager.

        Nr   ©r
   Úpluginr   r   r   Ú
add_plugin$   s    zIPluginManager.add_pluginc                 C   s   dS )zb Return the plugin with the specified Id.

        Return None if no such plugin exists.

        Nr   )r
   Ú	plugin_idr   r   r   Ú
get_plugin)   s    zIPluginManager.get_pluginc                 C   s   dS )z, Remove a plugin from the manager.

        Nr   r   r   r   r   Úremove_plugin0   s    zIPluginManager.remove_pluginc                 C   s   dS )zW Start the plugin manager.

        This starts all of the manager's plugins.

        Nr   r	   r   r   r   Ústart5   s    zIPluginManager.startNc                 C   s   dS )a
   Start the specified plugin.

        If a plugin is specified then start it.

        If no plugin is specified then the Id is used to look up the plugin
        and then start it. If no such plugin exists then a 'SystemError'
        exception is raised.

        Nr   ©r
   r   r   r   r   r   Ústart_plugin<   s    zIPluginManager.start_pluginc                 C   s   dS )z“ Stop the plugin manager.

        This stop's all of the plugin manager's plugins (in the reverse order
        that they were started).

        Nr   r	   r   r   r   ÚstopG   s    zIPluginManager.stopc                 C   s   dS )a   Stop the specified plugin.

        If a plugin is specified then stop it (the Id is ignored).

        If no plugin is specified then the Id is used to look up the plugin and
        then stop it. If no such plugin exists then a 'SystemError' exception
        is raised.

        Nr   r   r   r   r   Ústop_pluginO   s    zIPluginManager.stop_plugin)NN)NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Zplugin_addedZplugin_removedr   r   r   r   r   r   r   r   r   r   r   r   r      s   
r   N)r   Z
traits.apir   r   Zplugin_eventr   r   r   r   r   r   Ú<module>
   s   