+
    üÐjÛ  ã                   óž   € R t ^ RIHtHt  ! R R]4      t ! R R]4      t ! R R]4      t ! R R	]4      t ! R
 R]4      t ! R R]4      t	R# )z
Public Jabber Interfaces.
)Ú	AttributeÚ	Interfacec                   ó   € ] tR t^tRtRtR# )ÚIInitializerz‘
Interface for XML stream initializers.

Initializers perform a step in getting the XML stream ready to be
used for the exchange of XML stanzas.
© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    ÚH/usr/lib/python3/dist-packages/twisted/words/protocols/jabber/ijabber.pyr   r      s   † õr   r   c                   ó:   a € ] tR t^t o Rt]! R4      tR tRtV t	R# )ÚIInitiatingInitializerzB
Interface for XML stream initializers for the initiating entity.
zThe associated XML streamc                 ó   € R# )zj
Initiate the initialization step.

May return a deferred when the initialization is done asynchronously.
Nr   r   r   r   Ú
initializeÚ!IInitiatingInitializer.initialize   ó   ‚ r   r   N)
r   r   r	   r
   r   r   Ú	xmlstreamr   r   Ú__classdictcell__©Ú__classdict__s   @r   r   r      s!   ø‡ € ññ Ð9Ó:€I÷ð r   r   c                   ó*   € ] tR t^#tRt]! R4      tRtR# )ÚIIQResponseTrackeraŠ  
IQ response tracker interface.

The XMPP stanza C{iq} has a request-response nature that fits
naturally with deferreds. You send out a request and when the response
comes back a deferred is fired.

The L{twisted.words.protocols.jabber.client.IQ} class implements a C{send}
method that returns a deferred. This deferred is put in a dictionary that
is kept in an L{XmlStream} object, keyed by the request stanzas C{id}
attribute.

An object providing this interface (usually an instance of L{XmlStream}),
keeps the said dictionary and sets observers on the iq stanzas of type
C{result} and C{error} and lets the callback fire the associated deferred.
z2Dictionary of deferreds waiting for an iq responser   N)r   r   r	   r
   r   r   ÚiqDeferredsr   r   r   r   r   r   #   s   † ññ" ÐSÓT„Kr   r   c                   óh   a € ] tR t^8t o Rt]! R4      t]! R4      tR tR t	R t
R tR tR	 tR
tV tR# )ÚIXMPPHandlerz 
Interface for XMPP protocol handlers.

Objects that provide this interface can be added to a stream manager to
handle of (part of) an XMPP extension protocol.
z#XML stream manager for this handlerzThe managed XML streamc                ó   € R# )zI
Set the parent of the handler.

@type parent: L{IXMPPHandlerCollection}
Nr   ©Úparents   &r   ÚsetHandlerParentÚIXMPPHandler.setHandlerParentC   r   r   c                ó   € R# )zL
Remove the parent of the handler.

@type parent: L{IXMPPHandlerCollection}
Nr   r   s   &r   ÚdisownHandlerParentÚ IXMPPHandler.disownHandlerParentJ   r   r   c                ó   € R# )a*  
A connection over the underlying transport of the XML stream has been
established.

At this point, no traffic has been exchanged over the XML stream
given in C{xs}.

This should setup L{xmlstream} and call L{connectionMade}.

@type xs:
       L{twisted.words.protocols.jabber.xmlstream.XmlStream}
Nr   ©Úxss   &r   ÚmakeConnectionÚIXMPPHandler.makeConnectionQ   r   r   c                 ó   € R# )zÕ
Called after a connection has been established.

This method can be used to change properties of the XML Stream, its
authenticator or the stream manager prior to stream initialization
(including authentication).
Nr   r   r   r   ÚconnectionMadeÚIXMPPHandler.connectionMade_   r   r   c                 ó   € R# )zÙ
The XML stream has been initialized.

At this point, authentication was successful, and XML stanzas can be
exchanged over the XML stream L{xmlstream}. This method can be
used to setup observers for incoming stanzas.
Nr   r   r   r   ÚconnectionInitializedÚ"IXMPPHandler.connectionInitializedh   r   r   c                ó   € R# )zÂ
The XML stream has been closed.

Subsequent use of C{parent.send} will result in data being queued
until a new connection has been established.

@type reason: L{twisted.python.failure.Failure}
Nr   )Úreasons   &r   ÚconnectionLostÚIXMPPHandler.connectionLostq   r   r   r   N)r   r   r	   r
   r   r   r    r   r!   r$   r)   r,   r/   r3   r   r   r   s   @r   r   r   8   sE   ø‡ € ññ Ð@ÓA€FÙÐ6Ó7€Iòòòòò÷ð r   r   c                   ó6   a € ] tR t^|t o RtR tR tR tRtV t	R# )ÚIXMPPHandlerCollectionzP
Collection of handlers.

Contain several handlers and manage their connection.
c                 ó   € R# )z*
Get an iterator over all child handlers.
Nr   r   r   r   Ú__iter__ÚIXMPPHandlerCollection.__iter__ƒ   r   r   c                ó   € R# )z6
Add a child handler.

@type handler: L{IXMPPHandler}
Nr   ©Úhandlers   &r   Ú
addHandlerÚ!IXMPPHandlerCollection.addHandlerˆ   r   r   c                ó   € R# )z9
Remove a child handler.

@type handler: L{IXMPPHandler}
Nr   r;   s   &r   ÚremoveHandlerÚ$IXMPPHandlerCollection.removeHandler�   r   r   r   N)
r   r   r	   r
   r   r8   r=   r@   r   r   r   s   @r   r6   r6   |   s   ø‡ € ñòò
÷ð r   r6   c                   ó6   a € ] tR t^—t o RtR tR tR tRtV t	R# )ÚIServicezÂ
External server-side component service interface.

Services that provide this interface can be added to L{ServiceManager} to
implement (part of) the functionality of the server-side component.
c                ó   € R# )a@  
Parent component has established a connection.

At this point, authentication was successful, and XML stanzas
can be exchanged over the XML stream C{xs}. This method can be used
to setup observers for incoming stanzas.

@param xs: XML Stream that represents the established connection.
@type xs: L{xmlstream.XmlStream}
Nr   r'   s   &r   ÚcomponentConnectedÚIService.componentConnectedŸ   r   r   c                 ó   € R# )zµ
Parent component has lost the connection to the Jabber server.

Subsequent use of C{self.parent.send} will result in data being
queued until a new connection has been established.
Nr   r   r   r   ÚcomponentDisconnectedÚIService.componentDisconnected«   r   r   c                ó   € R# )aA  
Parent component has established a connection over the underlying
transport.

At this point, no traffic has been exchanged over the XML stream. This
method can be used to change properties of the XML Stream (in C{xs}),
the service manager or it's authenticator prior to stream
initialization (including authentication).
Nr   r'   s   &r   ÚtransportConnectedÚIService.transportConnected³   r   r   r   N)
r   r   r	   r
   r   rE   rH   rK   r   r   r   s   @r   rC   rC   —   s   ø‡ € ñò
ò÷	ð 	r   rC   N)
r   Úzope.interfacer   r   r   r   r   r   r6   rC   r   r   r   Ú<module>rN      s\   ðñ÷ 0ô�9ô ô˜\ô ôU˜ô Uô*A�9ô AôH˜Yô ô6%ˆyö %r   