£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>
3
iRV                 @   s4   dZ dZddlmZ ddlmZ G dd  d eZdS )ServerZreStructuredText    )_Server)
Connectionc                   sf   e Zd ZdZeddf fdd	Zdd Zdd Zd	d
 Zdd Z	e
ejZe
ejZe
ejZ  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                s   t t| j| ||||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addressZconnection_classZmainloopZauth_mechanisms)	__class__ /usr/lib64/python3.6/server.pyr   )   s    zServer.__new__c             O   s   i | _ g | _g | _d S )N)Z_Server__connectionson_connection_addedon_connection_removed)selfargskwargsr
   r
   r   __init__=   s    zServer.__init__c             C   s   |j | j | j| d S )N)Zcall_on_disconnectionconnection_removedconnection_added)r   connr
   r
   r   _on_new_connectionL   s    zServer._on_new_connectionc             C   s"   | j rx| j D ]}|| qW 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   cbr
   r
   r   r   P   s    zServer.connection_addedc             C   s"   | j rx| j D ]}|| qW 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   r   r   r
   r
   r   r   a   s    zServer.connection_removed)__name__
__module____qualname____doc__r   r   r   r   r   r   propertyr   Zget_addressr   Zget_ididZget_is_connectedZis_connected__classcell__r
   r
   )r	   r   r      s   	

N)r   )__all__Z__docformat__Z_dbus_bindingsr   Zdbus.connectionr   r   r
   r
   r
   r   <module>   s   