/usr/lib64/python3.9/site-packages/dbus/__pycache__
Edit: /usr/lib64/python3.9/site-packages/dbus/__pycache__/proxies.cpython-39.pyc (17774B)
a
z]` @ s d dl Z zd dlmZ W n ey6 d dlmZ Y n0 d dlZd dlmZ d dlm Z m
Z
mZmZ dZ
e dZd dlmZmZmZmZmZ d dlmZ G d d
d
ZG dd dZG d
d deZG dd deZdS ) N)RLock)process_introspection_data)
DBusExceptionIntrospectionParserExceptionMissingErrorHandlerExceptionMissingReplyHandlerExceptionZrestructuredtextzdbus.proxies)BUS_DAEMON_IFACEBUS_DAEMON_NAMEBUS_DAEMON_PATHINTROSPECTABLE_IFACE
LOCAL_PATH)is_py2c @ s( e Zd ZdZdd Zdd Zdd ZdS ) _DeferredMethodzXA proxy method which will only get called once we have its
introspection reply.
c C s || _ |j| _|| _|| _d S N)
_proxy_method_method_name_append_block)selfproxy_methodappendblock r 2/usr/lib64/python3.9/site-packages/dbus/proxies.py__init__8 s z_DeferredMethod.__init__c O sD d|v s| ddr(| | j|| d S | | j|i |S d S )N
reply_handlerignore_replyF)getr r r r argskeywordsr r r __call__? s
z_DeferredMethod.__call__c O s | | j|| d S r )r r r r r r
call_asyncJ s z_DeferredMethod.call_asyncN__name__
__module____qualname____doc__r r! r" r r r r r 4 s r c @ s( e Zd ZdZdd Zdd Zdd ZdS ) _ProxyMethodzA proxy method.
Typically a member of a ProxyObject. Calls to the
method produce messages that travel over the Bus and are routed
to a specific named Service.
c C sX |t krtdt || _|| _|| _|| _t| || _|d urNt | || _
d S )Nz1Methods may not be called on the reserved path %s)r r _proxy_connection_named_service_object_path_dbus_bindingsZvalidate_member_namer Zvalidate_interface_name_dbus_interface)r proxyZ
connectionbus_nameobject_pathZmethod_nameZifacer r r r U s
z_ProxyMethod.__init__c O s | dd }| dd }| dd}| dd }|d us@|d url|d u rPt n|d u r`t n|rltd| d| j}|d u r|d u r| j}n|d | j }| jj|d }|s|d ur| j j
| j| j|| j||||fi | n$| j j
| j| j|| j||fi |S d S ) Nr
error_handlerr F signaturez6ignore_reply and reply_handler cannot be used togetherdbus_interface.)popr r TypeErrorr. r r) _introspect_method_mapr r* r" r+ r, Z
call_blocking) r r r r r2 r r3 r4 keyr r r r! i sL
z_ProxyMethod.__call__c O s | dd }| dd }| dd }| d| j}|d u rd|rN|d | j }n| j}| jj|d }| jj| j| j || j||||fi | d S )Nr r2 r3 r4 r5 )
r6 r. r r) r8 r r* r" r+ r, )r r r r r2 r3 r4 r9 r r r r" s(
z_ProxyMethod.call_asyncNr# r r r r r( N s ,r( c @ s e Zd ZdZeZeZdZdZ dZ
d%dd Zed
d dddZ
ed
d dddZedd dddZd&ddZdd Zdd Zdd Zdd Zdd Zdd Zdd Zd'd!d"Zd#d$ ZeZdS )(ProxyObjectzA proxy to the remote Object.
A ProxyObject is provided by the Bus. ProxyObjects
have member functions, and can be called like normal Python objects.
r NTFc
K s: | dd}|durB|dur$td|}ddlm} |dtdd | d d} | dur|durftd
| }ddlm} |dtdd |rtdd
| |r| || _|durt
| | | _| _t
| || _|s||| _d| _g | _i | _t | _|r| jtkr$| j| _n| j| _| | _dS )a Initialize the proxy object.
:Parameters:
`conn` : `dbus.connection.Connection`
The bus or connection on which to find this object.
The keyword argument `bus` is a deprecated alias for this.
`bus_name` : str
A bus name for the application owning the object, to be used
as the destination for method calls and the sender for
signal matches. The keyword argument ``named_service`` is a
deprecated alias for this.
`object_path` : str
The object path at which the application exports the object
`introspect` : bool
If true (default), attempt to introspect the remote
object to find out supported methods and their signatures
`follow_name_owner_changes` : bool
If true (default is false) and the `bus_name` is a
well-known name, follow ownership changes for that name
busNz%conn and bus cannot both be specifiedr )warnz`Passing the bus parameter to ProxyObject by name is deprecated: please use positional parametersr<