+
    V#gsD  c                   s&   Rt Rt^ RIt^ RIt^ RIHtHtHtHtH	t	H
t
HtHtHtHtHtHtHtHtHtHtHtHtHtHtHtHtHt ^ RIHt ^ RIHt ^ RI H!t! ^ RI"H#t# R]: R	]: R
]: R2t$ Rt%]PL                  ! R4      t' ! R R](4      t) ! R R ]4      t*R# )BusConnectionZreStructuredTextN)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_py2ztype='signal',sender='z',interface='z"',member='NameOwnerChanged',path='z',arg0='%s'z)org.freedesktop.DBus.Error.NameHasNoOwnerzdbus.busc                   s0   a  ] tR t^<t o RtR tR tRtV tR# )NameOwnerWatchc           
     s   aa \        S4       V3R  lpVV3R lpVP                  VR\        \        \        SR7      V n        VP                  \        \        \        RRS3SV4      V n        R# )c                 s   < S! V4       R # N )ZownedZ	old_owner	new_ownercallbacks   &&&//usr/lib64/python3.14/site-packages/dbus/bus.py	signal_cbZ*NameOwnerWatch.__init__.<locals>.signal_cbB   s    Y    c                 s   < V P                  4       \        8X  d   S! R 4       R# \        P                  ! 4        \        P                  RSV P                  V R3R7       R# ) zGetNameOwner(%s) failed:N)Zexc_info)get_dbus_name_NAME_HAS_NO_OWNERloggingZbasicConfig_loggerZdebug	__class__)ebus_namer    s   &r!   error_cbZ)NameOwnerWatch.__init__.<locals>.error_cbE   sJ     $66##%8(()Q'=  ?r#   ZNameOwnerChanged)Zarg0GetNameOwnersN)r   add_signal_receiverr   r   r   _match
call_async_pending_call)selfZbus_connr+   r    r"   r,   s   &&ff  r!   __init__ZNameOwnerWatch.__init__?   sm    (#	 	? 2293E3C3B3B8@ 3 B &001@1A1?14xk198Er#   c                s    V P                   e   V P                   P                  4        V P                  e   V P                  P                  4        R V n         R V n        R # r   )r0   remover2   cancelr3      &r!   r6   ZNameOwnerWatch.cancelZ   sI    ;;"KK )%%'!r#   )r0   r2   N)	__name__
__module____qualname____firstlineno__Z	__slots__r4   r6   __static_attributes____classdictcell__)__classdict__s   @r!   r   r   <   s     +IE6" "r#   r   c                   s   a a ] tR t^ct oRt]t ]t ]	t
 ]t]t]R3R ltRV 3R lltR tR tRR ltR tRR	 ltRR
 ltR tR tR tR tR tR tR tR tR tR t Rt!Vt"V ;t## )r    zlA connection to a D-Bus daemon that implements the
``org.freedesktop.DBus`` pseudo-service.

:Since: 0.81.0
Nc                sn    V P                  WR 7      p\        P                  ! 4       Vn        / Vn         V# ))mainloop)Z_new_for_busweakrefZWeakValueDictionaryZ
_bus_names_signal_sender_matches)ZclsZaddress_or_typer@   Zbuss   &&& r!   __new__ZBusConnection.__new__w   s7    B !446%'"5
r#   c                s  <a VP                  R R4      pVe'   Ve   \        R4      hTp^ RIHp V! R\        ^R7       \
        \        V `  ! WW4V3/ VB oVeL   V\        8w  dA   VR,          R8X  d   V3R lp	MSP                  p	V P                  WI4      p
WP                  S&   V P                  \        S4      4       S# )	named_serviceN3bus_name and named_service cannot both be specifiedwarnzrPassing the named_service parameter to add_signal_receiver by name is deprecated: please use positional parametersZ
stacklevelNi   N:c                 s:   < V R 8X  d   SP                  4        R# R# )r$   N)r5   )r   matchs   &r!   r    Z3BusConnection.add_signal_receiver.<locals>.callback   s     B 'r#   )pop	TypeErrorwarningsrG   DeprecationWarningZsuperr    r/   r   Zset_sender_name_ownerwatch_name_ownerrB   add_match_stringstr)r3   Zhandler_functionZsignal_nameZdbus_interfacer+   ZpathZkeywordsrD   rG   r    watchrK   r)   s   &&&&&&,    @r!   r/   Z!BusConnection.add_signal_receiver   s     !_d;$# !, - -$H% K#3 mT> ~" "  X%@|s"' !66))(=E16''.c%j)r#   c                s    V P                  \        V4      4       V P                  P                  VR 4      pVe   VP	                  4        R # R # r   ) remove_match_string_non_blockingrR   rB   rL   r6   )r3   rK   rS      && r!   _clean_up_signal_matchZ$BusConnection._clean_up_signal_match   s@    --c%j9++//t<LLN r#   c                s   Ve,   VR,          R8w  d   V\         8w  d    V P                  V4      # V#   \         dG   pTP                  4       \        8w  d   h T P                  T4       T P                  T4      u R p?# R p?ii ; i)NrI   rJ   )r   get_name_ownerr   r%   r&   start_service_by_name)r3   r+   r*   rU   r!   activate_name_ownerZ!BusConnection.activate_name_owner   s|     Xb\S%8O+5**844 O ! 5??$(::**84**8445s   2 B;A>8B>Bc                sB   V'       d   V P                  4        VP                  RR4      pVe'   Ve   \        R4      h^ RIHp V! R\
        ^R7       TpV'       d0   \        RRP                  VP                  4       4      ,          4      hV P                  WVVVR	7      # )
aj  Return 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
rD   NrE   rF   ziPassing the named_service parameter to get_object by name is deprecated: please use positional parametersrH   z4get_object does not take these keyword arguments: %sz, )
introspectfollow_name_owner_changes)	Z_require_main_looprL   rM   rN   rG   rO   ZjoinZkeysZProxyObjectClass)r3   r+   Zobject_pathrZ   r[   ZkwargsrD   rG   s   &&&&&,  r!   
get_objectZBusConnection.get_object   s    H %##%

?D9$# !/ 0 0% C#3 %H ,.2ii.FG H H $$T[0:?X % Z 	Zr#   c                s^    \        V4       V P                  \        \        \        RRV34      # )zGet 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
ZGetConnectionUnixUserr.   r   call_blockingr   r   r   r3   r+      &&r!   get_unix_userZBusConnection.get_unix_user   s0     	(#!!/?"24K"%{4 	4r#   c           
     sb    \        V4       RV P                  \        \        \        RRW34      3# )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
TZStartServiceByNamesur]   )r3   r+   flags   &&&r!   rX   Z#BusConnection.start_service_by_name   s;    " 	(#d((/)9)=)-/@B C 	Cr#   c           	     sb    \        VRR7       V P                  \        \        \        RRW34      # )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RequestNamerb   r]   )r3   namerc   rd   r!   request_nameZBusConnection.request_name  s1    $ 	$U3!!/?"2M"&7 	7r#   c                b    \        VRR7       V P                  \        \        \        RRV34      # )a+  Release 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.
Fre   ZReleaseNamer.   r]   )r3   rf   r`   r!   release_nameZBusConnection.release_name/  s1     	$U3!!/?"2M"%w0 	0r#   c                F    V P                  \        \        \        RRR4      # )zqReturn a list of all currently-owned names on the bus.

:Returns: a dbus.Array of dbus.UTF8String
:Since: 0.81.0
Z	ListNamesr$   r   r^   r   r   r   r7   r8   r!   
list_namesZBusConnection.list_names@  s%     !!/?"2K"$b* 	*r#   c                rj   )zwReturn a list of all names that can be activated on the bus.

:Returns: a dbus.Array of dbus.UTF8String
:Since: 0.81.0
ZListActivatableNamesr$   r   rk   r7   r8   r!   list_activatable_namesZ$BusConnection.list_activatable_namesJ  s&     !!/?"24J"$b* 	*r#   c                rh   )zReturn 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
Fre   r-   r.   r]   r_   r`   r!   rW   ZBusConnection.get_name_ownerT  s1     	(7!!/?"2N"%{4 	4r#   c                s    \        WV4      # )zWatch 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   )r3   r+   r    rd   r!   rP   ZBusConnection.watch_name_owner`  s     dh77r#   c           
     sZ    \        V P                  \        \        \        RRV34      4      # )zReturn 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NameHasOwnerr.   )Zboolr^   r   r   r   r_   r`   r!   name_has_ownerZBusConnection.name_has_ownerl  s.     D&&'7'*XK9 : 	:r#   c                L    V P                  \        \        \        RRV34       R# )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
AddMatchr.   Nrk   r3   Zruler`   r!   rQ   ZBusConnection.add_match_stringx  s"     	?O+Ztg	Gr#   c           
     P    V P                  \        \        \        RRV3RR4       R# )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
rq   r.   Nr1   r   r   r   rr   r`   r!   add_match_string_non_blockingZ+BusConnection.add_match_string_non_blocking  s$     	(*cD7d	$r#   c                ro   )rp   RemoveMatchr.   Nrk   rr   r`   r!   remove_match_stringZ!BusConnection.remove_match_string  s"     	?O+]C$	Jr#   c           
     rs   )rt   rw   r.   Nru   rr   r`   r!   rT   Z.BusConnection.remove_match_string_non_blocking  s$     	(-tgd	$r#   r   )NNNN)TF)i    )$r9   r:   r;   r<   Z__doc__r   ZTYPE_SESSIONr   ZTYPE_SYSTEMr   ZTYPE_STARTERr   ZSTART_REPLY_SUCCESSr   ZSTART_REPLY_ALREADY_RUNNINGrC   r/   rV   rY   r\   ra   rX   rg   ri   rl   rm   rW   rP   rn   rQ   rv   rx   rT   r=   r>   Z__classcell__)r)   r?   s   @@r!   r    r    c   s      "LH KHL$ 3"B%1D 	@7Zr4C27.0"**
4
8
:G$ J$ $r#   )r    )+Z__all__Z__docformat__r'   rA   Z_dbus_bindingsr   r   r   r   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   Zdbus.connectionr   Zdbus.exceptionsr   Zdbus.lowlevelr   Zdbus._compatr   Z_NAME_OWNER_CHANGE_MATCHr&   Z	getLoggerr(   Zobjectr   r    r   r#   r!   <module>ry      s   2 "  	I 	I 	I 	I 	I 	I 	I ' ) 8   /0@.	0 
 A 


J
'$"V $"NO$J O$r#   