/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 d¡Zd dlmZmZmZmZmZ d dlmZ G d d
„ d
ƒZG dd„ dƒZG d
d„ deƒZG dd„ deƒZdS )é N)ÚRLock)Úprocess_introspection_data)Ú
DBusExceptionÚIntrospectionParserExceptionÚMissingErrorHandlerExceptionÚMissingReplyHandlerExceptionZrestructuredtextzdbus.proxies)ÚBUS_DAEMON_IFACEÚBUS_DAEMON_NAMEÚBUS_DAEMON_PATHÚINTROSPECTABLE_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)ÚselfÚproxy_methodÚappendÚblock© r ú2/usr/lib64/python3.9/site-packages/dbus/proxies.pyÚ__init__8 s z_DeferredMethod.__init__c O sD d|v s| dd¡r(| | j||¡ d S | ¡ | j|i |¤ŽS d S )NÚ
reply_handlerÚignore_replyF)Úgetr r r ©r ÚargsÚkeywordsr 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 ) Ú_ProxyMethodz°A 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
connectionÚbus_nameÚobject_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 togetherÚdbus_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„ dddƒZ
ed
d„ dddƒZedd„ dddƒZd&dd„Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd „ Zd'd!d"„Zd#d$„ ZeZdS )(ÚProxyObjectz£A 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� |ržtdd
| ¡ ¡ ƒ‚|rª| ¡ || _|durÂt
|¡ | | _| _t
|¡ || _|sî| |¡| _d| _g | _i | _tƒ | _|�r| jtk�r$| 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<