+
    V#gO"  c                   s    R t ^ RIHt RtRt^ RIH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 ^ R	IHt ^ R
IHt ^ RIHt  ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      tR# )z9Implementation for dbus.Bus. Not to be imported directly.)
generatorsBus	SystemBus
SessionBus
StarterBusZreStructuredText)DBusException)BUS_DAEMON_IFACEBUS_DAEMON_NAMEBUS_DAEMON_PATHBUS_SESSIONBUS_STARTER
BUS_SYSTEM DBUS_START_REPLY_ALREADY_RUNNINGDBUS_START_REPLY_SUCCESSvalidate_bus_namevalidate_interface_namevalidate_member_namevalidate_object_path)BusConnection)SignalMessage)is_py2c                   s   a a ] tR t^.t oRt/ t]P                  RR3R ltV 3R lt	R t
]! ]
RRR4      tRR lt]! ]4      tRR	 lt]! ]4      tRR
 lt]! ]4      tR t]tRtVtV ;t# )r   a  A connection to one of three possible standard buses, the SESSION,
SYSTEM, or STARTER bus. This class manages shared connections to those
buses.

If you're trying to subclass `Bus`, you may be better off subclassing
`BusConnection`, which doesn't have all this magic.
FNc                sT   V'       g$   WP                   9   d   V P                   V,          # V\        8X  d   \        pM6V\        8X  d   \        pM$V\
        8X  d   \        pM\        RV,          4      h\        P                  ! WAVR7      pWn
        V'       g   WPP                   V&   V# )a;  Constructor, returning an existing instance where appropriate.

The returned instance is actually always an instance of `SessionBus`,
`SystemBus` or `StarterBus`.

:Parameters:
    `bus_type` : cls.TYPE_SESSION, cls.TYPE_SYSTEM or cls.TYPE_STARTER
        Connect to the appropriate bus
    `private` : bool
        If true, never return an existing shared instance, but instead
        return a private connection.

        :Deprecated: since 0.82.3. Use dbus.bus.BusConnection for
            private connections.

    `mainloop` : dbus.mainloop.NativeMainLoop
        The main loop to use. The default is to use the default
        main loop if one has been set up, or raise an exception
        if none has been.
:Changed: in dbus-python 0.80:
    converted from a wrapper around a Connection to a Connection
    subclass.
zinvalid bus_type %s)mainloop)_shared_instancesr	   r   r   r   r
   r   Z
ValueErrorr   __new__	_bus_type)clsZbus_typeprivater   ZsubclassZbuss   &&&&  1/usr/lib64/python3.14/site-packages/dbus/_dbus.pyr   ZBus.__new__9   s    2 H(=(==((22 {"!H# H$!H2X=>>##HJ .1!!(+
    c                s   < V P                   pV P                  P                  P                  V4      V J d   V P                  P                  V \        \
        V `  4        R # )N)r   	__class__r   ZgetZsuperr   close)selfZtr   s   & r   r   Z	Bus.closel   sH    NN>>++//2d:003c4 r   c                s    V # )zReturn self, for backwards compatibility with earlier dbus-python
versions where Bus was not a subclass of Connection.

:Deprecated: since 0.80.0
 )r      &r   get_connectionZBus.get_connectionr   s	     r   zself._connection == self, for backwards
                           compatibility with earlier dbus-python versions
                           where Bus was not a subclass of Connection.c                    \        V R7      # )zStatic method that returns a connection to the session bus.

:Parameters:
    `private` : bool
        If true, do not return a shared connection.
r   )r   r$   r!   r   get_sessionZBus.get_session~        '**r   c                r#   )zStatic method that returns a connection to the system bus.

:Parameters:
    `private` : bool
        If true, do not return a shared connection.
r$   )r   r$   r!   r   
get_systemZBus.get_system   s     ))r   c                r#   )zStatic method that returns a connection to the starter bus.

:Parameters:
    `private` : bool
        If true, do not return a shared connection.
r$   )r   r$   r!   r   get_starterZBus.get_starter   r&   r   c                s   V P                   \        8X  d   R pM2V P                   \        8X  d   RpMV P                   \        8X  d   RpMRpRV P                  P
                  V P                  P                  V\        V 4      3,          # )ZsessionZsystemZstarterzunknown bus typez<%s.%s (%s) at %#x>)r   r	   r   r
   r   
__module____name__Zid)r   Znames   & r   __repr__ZBus.__repr__   sn    >>[(D^^z)D^^{*D%D$(A(A(,(?(?(,bh(8 8 	8r   r    )F)r*   r)   __qualname____firstlineno____doc__r   r   TYPE_SESSIONr   r   r"   ZpropertyZ_connectionr%   Zstaticmethodr'   r(   r+   Z__str____static_attributes____classdictcell__Z__classcell__)r   __classdict__s   @@r   r   r   .   s      +88%1f! >4JKK
+ {+K* j)J+ {+K8 GGr   c                   s.   a  ] tR t^t o RtRR ltRtV tR# )r   zThe system-wide message bus.Nc                sP    \         P                  V \         P                  VVR7      # )a~  Return a connection to the system bus.

:Parameters:
    `private` : bool
        If true, never return an existing shared instance, but instead
        return a private connection.
    `mainloop` : dbus.mainloop.NativeMainLoop
        The main loop to use. The default is to use the default
        main loop if one has been set up, or raise an exception
        if none has been.
)r   r   )r   r   ZTYPE_SYSTEMr   r   r      &&&r   r   ZSystemBus.__new__   s'     {{3(#*  , 	,r   r    FNr*   r)   r,   r-   r.   r   r0   r1   r2      @r   r   r      s     &, ,r   c                   s.   a  ] tR t^t o RtRR ltRtV tR# )r   z(The session (current login) message bus.Nc                P    \         P                  V \         P                  VVR7      # )a  Return a connection to the session bus.

:Parameters:
    `private` : bool
        If true, never return an existing shared instance, but instead
        return a private connection.
    `mainloop` : dbus.mainloop.NativeMainLoop
        The main loop to use. The default is to use the default
        main loop if one has been set up, or raise an exception
        if none has been.
r   r   )r   r   r/   r3   r4   r   r   ZSessionBus.__new__   )     {{3 0 0'$,  . 	.r   r    r5   r6   r7   r8   r   r   r      s     2. .r   c                   s.   a  ] tR t^t o RtRR ltRtV tR# )r   zbThe bus that activated this process (only valid if
this process was launched by DBus activation).
Nc                r9   )a  Return a connection to the bus that activated this process.

:Parameters:
    `private` : bool
        If true, never return an existing shared instance, but instead
        return a private connection.
    `mainloop` : dbus.mainloop.NativeMainLoop
        The main loop to use. The default is to use the default
        main loop if one has been set up, or raise an exception
        if none has been.
r:   )r   r   ZTYPE_STARTERr3   r4   r   r   ZStarterBus.__new__   r;   r   r    r5   r6   r7   r8   r   r   r      s     . .r   N)r   r   r   r   )r.   Z
__future__r    Z__all__Z__docformat__Zdbus.exceptionsr   Z_dbus_bindingsr   r   r   r	   r
   r   r   r   r   r   r   r   Zdbus.busr   Zdbus.lowlevelr   Zdbus._compatr   r   r   r   r   r    r   r   <module>r<      sp    ?: "
:" )I I I I
 # ' - H, ,". .". .r   