/usr/lib64/python3.9/site-packages/dbus/__pycache__
NameSizeModeActions
bus.cpython-39.opt-1.pyc135550644editdlrm
bus.cpython-39.pyc135550644editdlrm
connection.cpython-39.opt-1.pyc178140644editdlrm
connection.cpython-39.pyc178140644editdlrm
decorators.cpython-39.opt-1.pyc117150644editdlrm
decorators.cpython-39.pyc117150644editdlrm
exceptions.cpython-39.opt-1.pyc39200644editdlrm
exceptions.cpython-39.pyc39200644editdlrm
gi_service.cpython-39.opt-1.pyc19600644editdlrm
gi_service.cpython-39.pyc19600644editdlrm
glib.cpython-39.opt-1.pyc10180644editdlrm
glib.cpython-39.pyc10180644editdlrm
lowlevel.cpython-39.opt-1.pyc6790644editdlrm
lowlevel.cpython-39.pyc6790644editdlrm
proxies.cpython-39.opt-1.pyc177740644editdlrm
proxies.cpython-39.pyc177740644editdlrm
server.cpython-39.opt-1.pyc34600644editdlrm
server.cpython-39.pyc34600644editdlrm
service.cpython-39.opt-1.pyc221780644editdlrm
service.cpython-39.pyc221780644editdlrm
types.cpython-39.opt-1.pyc6780644editdlrm
types.cpython-39.pyc6780644editdlrm
_compat.cpython-39.opt-1.pyc2200644editdlrm
_compat.cpython-39.pyc2200644editdlrm
_dbus.cpython-39.opt-1.pyc73850644editdlrm
_dbus.cpython-39.pyc73850644editdlrm
_expat_introspect_parser.cpython-39.opt-1.pyc22100644editdlrm
_expat_introspect_parser.cpython-39.pyc22100644editdlrm
__init__.cpython-39.opt-1.pyc20090644editdlrm
__init__.cpython-39.pyc20090644editdlrm
Edit: /usr/lib64/python3.9/site-packages/dbus/__pycache__/bus.cpython-39.pyc (13555B)
a ó z](Fã@sìdZdZddlZddlZddlmZmZmZmZm Z m Z m Z m Z m Z mZmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZddlmZddl m!Z!ddl"m#Z#d eeefZ$d Z%e &d ¡Z'Gd d „d e(ƒZ)Gdd„deƒZ*dS))Ú BusConnectionZreStructuredTextéN)ÚBUS_DAEMON_IFACEÚBUS_DAEMON_NAMEÚBUS_DAEMON_PATHÚ BUS_SESSIONÚ BUS_STARTERÚ BUS_SYSTEMÚ DBUS_START_REPLY_ALREADY_RUNNINGÚDBUS_START_REPLY_SUCCESSÚNAME_FLAG_ALLOW_REPLACEMENTÚNAME_FLAG_DO_NOT_QUEUEÚNAME_FLAG_REPLACE_EXISTINGÚRELEASE_NAME_REPLY_NON_EXISTENTÚRELEASE_NAME_REPLY_NOT_OWNERÚRELEASE_NAME_REPLY_RELEASEDÚ REQUEST_NAME_REPLY_ALREADY_OWNERÚREQUEST_NAME_REPLY_EXISTSÚREQUEST_NAME_REPLY_IN_QUEUEÚ REQUEST_NAME_REPLY_PRIMARY_OWNERÚvalidate_bus_nameÚvalidate_error_nameÚvalidate_interface_nameÚvalidate_member_nameÚvalidate_object_path)Ú Connection)Ú DBusException)ÚHANDLER_RESULT_NOT_YET_HANDLED)Úis_py2zWtype='signal',sender='%s',interface='%s',member='NameOwnerChanged',path='%s',arg0='%%s'z)org.freedesktop.DBus.Error.NameHasNoOwnerzdbus.busc@s eZdZdZdd„Zdd„ZdS)ÚNameOwnerWatch)Ú_matchÚ _pending_callc srtˆƒ‡fdd„}‡‡fdd„}|j|dtttˆd�|_i}trJd|d<|jtttd d ˆfˆ|fi|¤Ž|_dS) Ncs ˆ|ƒdS©N©)ZownedZ old_ownerÚ new_owner)Úcallbackr"ú./usr/lib64/python3.9/site-packages/dbus/bus.pyÚ signal_cbBsz*NameOwnerWatch.__init__..signal_cbcs:| ¡tkrˆdƒn t ¡tjdˆ|j|dfd�dS)NÚzGetNameOwner(%s) failed:)Úexc_info)Ú get_dbus_nameÚ_NAME_HAS_NO_OWNERÚloggingZ basicConfigÚ_loggerÚdebugÚ __class__)Úe©Úbus_namer$r"r%Úerror_cbEs    ÿz)NameOwnerWatch.__init__..error_cbZNameOwnerChanged)Zarg0TÚ utf8_stringsÚ GetNameOwnerÚs) rÚadd_signal_receiverrrrrrÚ call_asyncr )ÚselfZbus_connr1r$r&r2Úkeywordsr"r0r%Ú__init__?s, ûûúzNameOwnerWatch.__init__cCs8|jdur|j ¡|jdur(|j ¡d|_d|_dSr!)rÚremover Úcancel)r8r"r"r%r<^s     zNameOwnerWatch.cancelN)Ú__name__Ú __module__Ú __qualname__Ú __slots__r:r<r"r"r"r%r<srcsÊeZdZdZeZeZeZ e Z e Z edfdd„Zd*‡fdd„ Zdd„Zd d „Zd+d d„Zdd„Zd,dd„Zd-dd„Zdd„Zdd„Zdd„Zdd„Zdd„Zd d!„Zd"d#„Zd$d%„Zd&d'„Zd(d)„Z‡Z S).rzxA connection to a D-Bus daemon that implements the ``org.freedesktop.DBus`` pseudo-service. :Since: 0.81.0 NcCs"|j||d�}t ¡|_i|_|S)N)Úmainloop)Z _new_for_busÚweakrefÚWeakValueDictionaryZ _bus_namesÚ_signal_sender_matches)ÚclsZaddress_or_typerAZbusr"r"r%Ú__new__{s zBusConnection.__new__c  s¾| dd¡}|durB|dur$tdƒ‚|}ddlm}|dtdd�tt|ƒj|||||fi|¤Ž‰|dur¬|tkr¬|dd…d kr�‡fd d „} nˆj } |  || ¡} | |j ˆ<|  t ˆƒ¡ˆS) NÚ named_serviceú3bus_name and named_service cannot both be specifiedr©ÚwarnzrPassing the named_service parameter to add_signal_receiver by name is deprecated: please use positional parametersé©Ú stackleveléú:cs|dkrˆ ¡dS)Nr')r;)r#©Úmatchr"r%r$šsz3BusConnection.add_signal_receiver..callback)ÚpopÚ TypeErrorÚwarningsrJÚDeprecationWarningÚsuperrr6rZset_sender_name_ownerÚwatch_name_ownerrDÚadd_match_stringÚstr) r8Zhandler_functionZ signal_nameZdbus_interfacer1Úpathr9rGrJr$Úwatch©r.rPr%r6†s.  þ þþ  z!BusConnection.add_signal_receivercCs0| t|ƒ¡|j |d¡}|dur,| ¡dSr!)Ú remove_match_string_non_blockingrYrDrRr<)r8rQr[r"r"r%Ú_clean_up_signal_match¦sz$BusConnection._clean_up_signal_matchc Cs~|durv|dd…dkrv|tkrvz | |¡WStyr}z.| ¡tkrJ‚| |¡| |¡WYd}~Sd}~00n|SdS)NrNrO)rÚget_name_ownerrr)r*Ústart_service_by_name)r8r1r/r"r"r%Úactivate_name_owner­sÿ   "z!BusConnection.activate_name_ownerTFcKs||r | ¡| dd¡}|durN|dur0tdƒ‚ddlm}|dtdd�|}|rhtd d  | ¡¡ƒ‚|j|||||d �S) aJReturn a local proxy for the given remote object. Method calls on the proxy are translated into method calls on the remote object. :Parameters: `bus_name` : str A bus name (either the unique name or a well-known name) of the application owning the object. The keyword argument named_service is a deprecated alias for this. `object_path` : str The object path of the desired 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 the object path is a well-known name and this parameter is false (default), resolve the well-known name to the unique name of its current owner and bind to that instead; if the ownership of the well-known name changes in future, keep communicating with the original owner. This is necessary if the D-Bus API used is stateful. If the object path is a well-known name and this parameter is true, whenever the well-known name changes ownership in future, bind to the new owner, if any. If the given object path is a unique name, this parameter has no effect. :Returns: a `dbus.proxies.ProxyObject` :Raises `DBusException`: if resolving the well-known name to a unique name fails rGNrHrrIziPassing the named_service parameter to get_object by name is deprecated: please use positional parametersrKrLz4get_object does not take these keyword arguments: %sz, )Ú introspectÚfollow_name_owner_changes) Z_require_main_looprRrSrTrJrUÚjoinÚkeysZProxyObjectClass)r8r1Z object_pathrbrcÚkwargsrGrJr"r"r%Ú get_object¼s&$  þ ÿ þzBusConnection.get_objectcCst|ƒ| tttdd|f¡S)zêGet the numeric uid of the process owning the given bus name. :Parameters: `bus_name` : str A bus name, either unique or well-known :Returns: a `dbus.UInt32` :Since: 0.80.0 ZGetConnectionUnixUserr5©rÚ call_blockingrrr©r8r1r"r"r%Ú get_unix_userõs þzBusConnection.get_unix_userrc Cs$t|ƒd| tttdd||f¡fS)a?Start a service which will implement the given bus name on this Bus. :Parameters: `bus_name` : str The well-known bus name to be activated. `flags` : dbus.UInt32 Flags to pass to StartServiceByName (currently none are defined) :Returns: A tuple of 2 elements. The first is always True, the second is either START_REPLY_SUCCESS or START_REPLY_ALREADY_RUNNING. :Raises `DBusException`: if the service could not be started. :Since: 0.80.0 TZStartServiceByNameÚsurh)r8r1Úflagsr"r"r%r`s  ýz#BusConnection.start_service_by_namec Cs$t|dd�| tttdd||f¡S)a„Request a bus name. :Parameters: `name` : str The well-known name to be requested `flags` : dbus.UInt32 A bitwise-OR of 0 or more of the flags `NAME_FLAG_ALLOW_REPLACEMENT`, `NAME_FLAG_REPLACE_EXISTING` and `NAME_FLAG_DO_NOT_QUEUE` :Returns: `REQUEST_NAME_REPLY_PRIMARY_OWNER`, `REQUEST_NAME_REPLY_IN_QUEUE`, `REQUEST_NAME_REPLY_EXISTS` or `REQUEST_NAME_REPLY_ALREADY_OWNER` :Raises `DBusException`: if the bus daemon cannot be contacted or returns an error. F©Z allow_uniqueZ RequestNamerlrh)r8Únamermr"r"r%Ú request_names  þzBusConnection.request_namecCs"t|dd�| tttdd|f¡S)asRelease a bus name. :Parameters: `name` : str The well-known name to be released :Returns: `RELEASE_NAME_REPLY_RELEASED`, `RELEASE_NAME_REPLY_NON_EXISTENT` or `RELEASE_NAME_REPLY_NOT_OWNER` :Raises `DBusException`: if the bus daemon cannot be contacted or returns an error. FrnZ ReleaseNamer5rh)r8ror"r"r%Ú release_name3s þzBusConnection.release_namecCs,i}trd|d<|jtttdddfi|¤ŽS)z‰Return a list of all currently-owned names on the bus. :Returns: a dbus.Array of dbus.UTF8String :Since: 0.81.0 Tr3Z ListNamesr'r"©rrirrr©r8r9r"r"r%Ú list_namesDsþþzBusConnection.list_namescCs,i}trd|d<|jtttdddfi|¤ŽS)z�Return a list of all names that can be activated on the bus. :Returns: a dbus.Array of dbus.UTF8String :Since: 0.81.0 Tr3ZListActivatableNamesr'r"rrrsr"r"r%Úlist_activatable_namesQsþþz$BusConnection.list_activatable_namescCs:i}trd|d<t|dd�|jtttdd|ffi|¤ŽS)z²Return the unique connection name of the primary owner of the given name. :Raises `DBusException`: if the `bus_name` has no owner :Since: 0.81.0 Tr3Frnr4r5)rrrirrr)r8r1r9r"r"r%r_^s þþzBusConnection.get_name_ownercCs t|||ƒS)aWatch the unique connection name of the primary owner of the given name. `callback` will be called with one argument, which is either the unique connection name, or the empty string (meaning the name is not owned). :Since: 0.81.0 )r)r8r1r$r"r"r%rWms zBusConnection.watch_name_ownerc Cst| tttdd|f¡ƒS)z»Return True iff the given bus name has an owner on this bus. :Parameters: `bus_name` : str The bus name to look up :Returns: a `bool` Z NameHasOwnerr5)Úboolrirrrrjr"r"r%Úname_has_ownerys þzBusConnection.name_has_ownercCs| tttdd|f¡dS)áArrange for this application to receive messages on the bus that match the given rule. This version will block. :Parameters: `rule` : str The match rule :Raises `DBusException`: on error. :Since: 0.80.0 ÚAddMatchr5N©rirrr©r8Zruler"r"r%rX…s  ÿzBusConnection.add_match_stringc Cs| tttdd|fdd¡dS)á=Arrange for this application to receive messages on the bus that match the given rule. This version will not block, but any errors will be ignored. :Parameters: `rule` : str The match rule :Raises `DBusException`: on error. :Since: 0.80.0 ryr5N©r7rrrr{r"r"r%Úadd_match_string_non_blocking”s  þz+BusConnection.add_match_string_non_blockingcCs| tttdd|f¡dS)rxÚ RemoveMatchr5Nrzr{r"r"r%Úremove_match_string¤s  ÿz!BusConnection.remove_match_stringc Cs| tttdd|fdd¡dS)r|rr5Nr}r{r"r"r%r]±s  þz.BusConnection.remove_match_string_non_blocking)NNNN)TF)r)r)!r=r>r?Ú__doc__rZ TYPE_SESSIONrZ TYPE_SYSTEMrZ TYPE_STARTERr ZSTART_REPLY_SUCCESSr ZSTART_REPLY_ALREADY_RUNNINGrFr6r^rargrkr`rprqrtrur_rWrwrXr~r€r]Ú __classcell__r"r"r\r%rgs: þ ÿ 9       r)+Ú__all__Z __docformat__r+rBZ_dbus_bindingsrrrrrrr r r r r rrrrrrrrrrrrZdbus.connectionrZdbus.exceptionsrZ dbus.lowlevelrZ dbus._compatrZ_NAME_OWNER_CHANGE_MATCHr*Z getLoggerr,Úobjectrrr"r"r"r%Ús"d    ÿý +