ok

Mini Shell

Direktori : /proc/self/root/proc/self/root/proc/thread-self/root/lib64/python2.7/site-packages/dbus/
Upload File :
Current File : //proc/self/root/proc/self/root/proc/thread-self/root/lib64/python2.7/site-packages/dbus/server.pyc

�
oMTc@sFdZdZddlmZddlmZdefd��YZdS(tServertreStructuredTexti����(t_Server(t
ConnectioncBsqeZdZeddd�Zd�Zd�Zd�Zd�Z	e
ej�Z
e
ej�Ze
ej�ZRS(s%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
    cCs"tt|�j|||||�S(s�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``.
        (tsuperRt__new__(tclstaddresstconnection_classtmainlooptauth_mechanisms((s1/usr/lib64/python2.7/site-packages/dbus/server.pyR)scOsi|_g|_g|_dS(N(t_Server__connectionston_connection_addedton_connection_removed(tselftargstkwargs((s1/usr/lib64/python2.7/site-packages/dbus/server.pyt__init__=s			cCs!|j|j�|j|�dS(N(tcall_on_disconnectiontconnection_removedtconnection_added(Rtconn((s1/usr/lib64/python2.7/site-packages/dbus/server.pyt_on_new_connectionLscCs.|jr*x|jD]}||�qWndS(s�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(RRtcb((s1/usr/lib64/python2.7/site-packages/dbus/server.pyRPs
	cCs.|jr*x|jD]}||�qWndS(s�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
(RRR((s1/usr/lib64/python2.7/site-packages/dbus/server.pyRas
	N(t__name__t
__module__t__doc__RtNoneRRRRRtpropertyRtget_addressRtget_idtidtget_is_connectedtis_connected(((s1/usr/lib64/python2.7/site-packages/dbus/server.pyRs					N(sServer(t__all__t
__docformat__t_dbus_bindingsRtdbus.connectionRR(((s1/usr/lib64/python2.7/site-packages/dbus/server.pyt<module>s

Zerion Mini Shell 1.0