Ignore:
Timestamp:
Aug 22, 2007, 5:00:48 PM (14 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Convert:
svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@5
Message:

Reverse how handlers are associated with the stream manager. Kick version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/iwokkel.py

    r2 r4  
    1919    xmlstream = Attribute("""The managed XML stream""")
    2020
     21    def setHandlerParent(parent):
     22        """
     23        Set the parent of the handler.
     24
     25        @type parent: L{IXMPPHandlerCollection}
     26        """
     27
     28    def disownHandlerParent(parent):
     29        """
     30        Remove the parent of the handler.
     31
     32        @type parent: L{IXMPPHandlerCollection}
     33        """
     34
    2135    def makeConnection(xs):
    2236        """
     
    6074        """
    6175
     76class IXMPPHandlerCollection(Interface):
     77    """
     78    Collection of handlers.
     79
     80    Contain several handlers and manage their connection.
     81    """
     82
     83    def __iter__():
     84        """
     85        Get an iterator over all child handlers.
     86        """
     87
     88    def addHandler(handler):
     89        """
     90        Add a child handler.
     91
     92        @type handler: L{IXMPPHandler}
     93        """
     94
     95    def removeHandler(handler):
     96        """
     97        Remove a child handler.
     98
     99        @type handler: L{IXMPPHandler}
     100        """
    62101
    63102class IDisco(Interface):
Note: See TracChangeset for help on using the changeset viewer.