§
    ó	z]1  ã                   óB   — d Z dZddlmZ ddlmZ  G d„ de¦  «        ZdS ))Ú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                 ó\   •— 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__+   s3   ø€ õ" •V˜SÑ!Ô!×)Ò)¨#¨wÐ8HØ˜/ñ+ô +ð 	+ó    c                 ó2   — i | _         g | _        	 g | _        d S ©N)Ú_Server__connectionsÚon_connection_addedÚon_connection_removed)ÚselfÚargsÚkwargss      r   Ú__init__zServer.__init__?   s,   € àˆÔà#%ˆÔ ð	Kð &(ˆÔ"ð	ð 	r   c                 ód   — |                      | j        ¦  «         |                      |¦  «         d S r   )Úcall_on_disconnectionÚconnection_removedÚconnection_added)r   Úconns     r   Ú_on_new_connectionzServer._on_new_connectionN   s3   € Ø×"Ò" 4Ô#:Ñ;Ô;Ð;Ø×Ò˜dÑ#Ô#Ð#Ð#Ð#r   c                 óB   — | j         r| j         D ]} ||¦  «         ŒdS dS )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   sD   € ð Ô#ð 	ØÔ.ð ð �Ø��4‘”��ð	ð 	ðð r   c                 óB   — | j         r| j         D ]} ||¦  «         ŒdS dS )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   sD   € ð Ô%ð 	ØÔ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ð+ð +ð +ð +ð +ð +ð(ð ð ð$ð $ð $ðð ð ð"ð ð ð" �8˜GÔ/Ñ0Ô0€GØ�8˜GœNÑ+Ô+€BØ�8˜GÔ4Ñ5Ô5€L€L€L€L€Lr   r   N)Ú__all__Ú__docformat__Ú_dbus_bindingsr   Údbus.connectionr   r   © r   r   ú<module>r6      ss   ðð4 €Ø"€à "Ð "Ð "Ð "Ð "Ð "Ø &Ð &Ð &Ð &Ð &Ð &ðV6ð V6ð V6ð V6ð V6ˆWñ V6ô V6ð V6ð V6ð V6r   