Ë
    ó	z]1  ã                   ó:   — d Z dZddlmZ ddlmZ  G d„ de«      Zy))ÚServerÚreStructuredTexté    )Ú_Server)Ú
Connectionc                   ó®   ‡ — e Zd ZdZeddfˆ fd„	Zd„ Zd„ Zd„ Zd„ Z	 e
ej                  «      Z e
ej                  «      Z e
ej                   «      Zˆ xZS )r   a%  An opaque object representing a server that listens for connections from
    other applications.

    This class is not useful to instantiate directly: you must subclass it and
    either extend the method connection_added, or append to the
    list on_connection_added.

    :Since: 0.83
    Nc                 ó2   •— t         t        | �  | ||||«      S )a   Construct a new Server.

        :Parameters:
            `address` : str
                Listen on this address.
            `connection_class` : type
                When new connections come in, instantiate this subclass
                of dbus.connection.Connection to represent them.
                The default is Connection.
            `mainloop` : dbus.mainloop.NativeMainLoop or None
                The main loop with which to associate the new connections.
            `auth_mechanisms` : sequence of str
                Authentication mechanisms to allow. The default is to allow
                any authentication mechanism supported by ``libdbus``.
        )Úsuperr   Ú__new__)ÚclsÚaddressÚconnection_classÚmainloopÚauth_mechanismsÚ	__class__s        €ú-/usr/lib/python3/dist-packages/dbus/server.pyr
   zServer.__new__+   s%   ø€ ô" ”V˜SÑ)¨#¨wÐ8HØ˜/ó+ð 	+ó    c                 ó0   — i | _         g | _        	 g | _        y ©N)Ú_Server__connectionsÚon_connection_addedÚon_connection_removed)ÚselfÚargsÚkwargss      r   Ú__init__zServer.__init__?   s'   € àˆÔà#%ˆÔ ð	Kð &(ˆÔ"ð	r   c                 ó\   — |j                  | j                  «       | j                  |«       y r   )Úcall_on_disconnectionÚconnection_removedÚconnection_added)r   Úconns     r   Ú_on_new_connectionzServer._on_new_connectionN   s$   € Ø×"Ñ" 4×#:Ñ#:Ô;Ø×Ñ˜dÕ#r   c                 óP   — | j                   r| j                   D ]
  } ||«       Œ yy)a´  Respond to the creation of a new Connection.

        This base-class implementation just invokes the callbacks in
        the on_connection_added attribute.

        :Parameters:
            `conn` : dbus.connection.Connection
                A D-Bus connection which has just been added.

                The type of this parameter is whatever was passed
                to the Server constructor as the ``connection_class``.
        N)r   ©r   r    Úcbs      r   r   zServer.connection_addedR   s.   € ð ×#Ò#Ø×.Ñ.ò �Ù�4•ñð $r   c                 óP   — | j                   r| j                   D ]
  } ||«       Œ yy)aÀ  Respond to the disconnection of a Connection.

        This base-class implementation just invokes the callbacks in
        the on_connection_removed attribute.

        :Parameters:
            `conn` : dbus.connection.Connection
                A D-Bus connection which has just become disconnected.

                The type of this parameter is whatever was passed
                to the Server constructor as the ``connection_class``.
        N)r   r#   s      r   r   zServer.connection_removedc   s.   € ð ×%Ò%Ø×0Ñ0ò �Ù�4•ñð &r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r
   r   r!   r   r   Úpropertyr   Úget_addressr   Úget_idÚidÚget_is_connectedÚis_connectedÚ__classcell__)r   s   @r   r   r       s[   ø„ ñð 0:Ø tõ+ò(ò$òò"ñ" ˜G×/Ñ/Ó0€GÙ˜GŸN™NÓ+€BÙ˜G×4Ñ4Ó5„Lr   r   N)Ú__all__Ú__docformat__Ú_dbus_bindingsr   Údbus.connectionr   r   © r   r   ú<module>r6      s%   ðð4 €Ø"€å "Ý &ôV6ˆWõ V6r   