z]1BdZdZddlmZddlmZGddeZdS))ServerreStructuredText)_Server) ConnectionceZdZdZeddffd ZdZdZdZdZ e e j Z e e jZe e jZxZS)ra%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\tt||||||S)aConstruct 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__)clsaddressconnection_classmainloopauth_mechanisms __class__s -/usr/lib/python3/dist-packages/dbus/server.pyr zServer.__new__+s3"VS!!))#w8H/++ +c2i|_g|_ g|_dSN)_Server__connectionson_connection_addedon_connection_removed)selfargskwargss r__init__zServer.__init__?s,#%  K&("  rcd||j||dSr)call_on_disconnectionconnection_removedconnection_added)rconns r_on_new_connectionzServer._on_new_connectionNs3 ""4#:;;; d#####rcB|jr|jD]}||dSdS)aRespond 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)rrr cbs rrzServer.connection_addedRsD  # .  4    rcB|jr|jD]}||dSdS)aRespond 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)rr#s rrzServer.connection_removedcsD  % 0  4    r)__name__ __module__ __qualname____doc__rr rr!rrpropertyr get_addressr get_ididget_is_connected is_connected __classcell__)rs@rrr s0:t++++++(   $$$""8G/00G8GN++B8G455LLLLLrrN)__all__ __docformat___dbus_bindingsrdbus.connectionrrrrr6ss4 " """"""&&&&&&V6V6V6V6V6WV6V6V6V6V6r