# Path: pyxmpp/interface.py



from pyxmpp.interface import Interface, Attribute

__docformat__ = "restructuredtext en"


class IPyXMPPHelper(Interface):
    """Base for all interfaces used as PyXMPP helpers."""

class IPresenceHandlersProvider(IPyXMPPHelper):
    def get_presence_handlers():
        """Returns iterable over (presence_type, handler[, namespace[, priority]]) tuples.

        The tuples will be used as arguments for `Stream.set_presence_handler`."""

class IMessageHandlersProvider(IPyXMPPHelper):
     def get_message_handlers():
        """Returns iterable over (message_type, handler[, namespace[, priority]]) tuples.

        The tuples will be used as arguments for `Stream.set_message_handler`."""
 
class IIqHandlersProvider(IPyXMPPHelper):
     def get_iq_get_handlers():
        """Returns iterable over (element_name, namespace) tuples.

        The tuples will be used as arguments for `Stream.set_iq_get_handler`."""
     def get_iq_set_handlers():
        """Returns iterable over (element_name, namespace) tuples.

        The tuples will be used as arguments for `Stream.set_iq_set_handler`."""

class IStanzaHandlersProvider(IPresenceHandlersProvider, IMessageHandlersProvider, IIqHandlersProvider):

# Path: pyxmpp/interface.py



# Path: pyxmpp/interfaces.py
from pyxmpp.interface import Interface, Attribute


__docformat__ = "restructuredtext en"


class IPyXMPPHelper(Interface):
    """Base for all interfaces used as PyXMPP helpers."""

class IPresenceHandlersProvider(IPyXMPPHelper):
    def get_presence_handlers():
        """Returns iterable over (presence_type, handler[, namespace[, priority]]) tuples.

        The tuples will be used as arguments for `Stream.set_presence_handler`."""

class IMessageHandlersProvider(IPyXMPPHelper):
     def get_message_handlers():
        """Returns iterable over (message_type, handler[, namespace[, priority]]) tuples.

        The tuples will be used as arguments for `Stream.set_message_handler`."""
 
class IIqHandlersProvider(IPyXMPPHelper):
     def get_iq_get_handlers():
        """Returns iterable over (element_name, namespace) tuples.

        The tuples will be used as arguments for `Stream.set_iq_get_handler`."""
     def get_iq_set_handlers():
        """Returns iterable over (element_name, namespace) tuples.

        The tuples will be used as arguments for `Stream.set_iq_set_handler`."""

class IStanzaHandlersProvider(IPresenceHandlersProvider, IMessageHandlersProvider, IIqHandlersProvider):

    pass