HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/lib/python3.9/site-packages/dasbus/__pycache__/identifier.cpython-39.opt-1.pyc
a

װ_w�@s\ddlmZmZgd�ZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZdS)�)�
get_dbus_path�
get_dbus_name)�DBusInterfaceIdentifier�DBusObjectIdentifier�DBusServiceIdentifierc@s.eZdZdZd	dd�Zedd��Zdd�ZdS)
�DBusBaseIdentifierzA base identifier.NcCs0|rg|�|�R}||_t|�|_t|�|_dS)z�Create an identifier.

        :param namespace: a sequence of strings
        :param basename: a string with the base name or None
        N)�
_namespacer�_namer�_path)�self�	namespace�basename�r�5/usr/lib/python3.9/site-packages/dasbus/identifier.py�__init__!s

zDBusBaseIdentifier.__init__cCs|jS)zDBus namespace of this object.)r�rrrrr.szDBusBaseIdentifier.namespacecCs|jS�z!Return the string representation.)r	rrrr�__str__3szDBusBaseIdentifier.__str__)N)�__name__�
__module__�__qualname__�__doc__r�propertyrrrrrrrs



rcs>eZdZdZd�fdd�	Zdd�Zedd��Zd	d
�Z�Z	S)rzIdentifier of a DBus interface.Ncst�j||d�||_dS)z�Describe a DBus interface.

        :param namespace: a sequence of strings
        :param basename: a string with the base name or None
        :param interface_version: a version of the interface
        )r
N)�superr�_interface_version)rrr
�interface_version��	__class__rrr;sz DBusInterfaceIdentifier.__init__cCs|durdSt|�S)ziConvert version to a string.

        :param version: a number or None
        :return: a string
        N�)�str)r�versionrrr�_version_to_stringEsz*DBusInterfaceIdentifier._version_to_stringcCs|j|�|j�S)z Full name of the DBus interface.)r	r!rrrrr�interface_namePsz&DBusInterfaceIdentifier.interface_namecCs|jSr)r"rrrrrUszDBusInterfaceIdentifier.__str__)NN)
rrrrrr!rr"r�
__classcell__rrrrr8s

rcs6eZdZdZd	�fdd�	Zedd��Zdd�Z�ZS)
rzIdentifier of a DBus object.Ncst�j|||d�||_dS)aDescribe a DBus object.

        :param namespace: a sequence of strings
        :param basename: a string with the base name or None
        :param interface_version: a version of the DBus interface
        :param object_version: a version of the DBus object
        )r
rN)rr�_object_version)rrr
r�object_versionrrrr]s	
�zDBusObjectIdentifier.__init__cCs|j|�|j�S)zFull path of the DBus object.)r
r!r$rrrr�object_pathjsz DBusObjectIdentifier.object_pathcCs|jSr)r&rrrrroszDBusObjectIdentifier.__str__)NNN)	rrrrrrr&rr#rrrrrZs�

rcs\eZdZdZd�fdd�	Zedd��Zedd��Zd	d
�Zdd�Z	d
d�Z
ddd�Z�ZS)rzIdentifier of a DBus service.Ncs$t�j||||d�||_||_dS)auDescribe a DBus service.

        :param message_bus: a message bus
        :param namespace: a sequence of strings
        :param basename: a string with the base name or None
        :param interface_version: a version of the DBus interface
        :param object_version: a version of the DBus object
        :param service_version: a version of the DBus service
        )r
rr%N)rr�_service_version�_message_bus)r�message_busrr
rr%Zservice_versionrrrrws
�zDBusServiceIdentifier.__init__cCs|jS)z}Message bus of the DBus service.

        :return: a message bus
        :rtype: an instance of the MessageBus class
        )r(rrrrr)�sz!DBusServiceIdentifier.message_buscCs|j|�|j�S)zFull name of a DBus service.)r	r!r'rrrr�service_name�sz"DBusServiceIdentifier.service_namecCs|jSr)r*rrrrr�szDBusServiceIdentifier.__str__cCs"|dur|jSt|t�r|jS|S)zChoose an object path.N)r&�
isinstancer)rZ	object_idrrr�_choose_object_path�s

z)DBusServiceIdentifier._choose_object_pathcCs |durdSt|t�r|jS|S)zChoose an interface name.N)r+rr")rZinterface_idrrr�_choose_interface_name�s

z,DBusServiceIdentifier._choose_interface_namecKs.|�|�}|�|�}|jj|j||fi|��S)a
Returns a proxy of the DBus object.

        If no object path is specified, we will use the object path
        of this DBus service.

        If no interface name is specified, we will use none and create
        a proxy from all interfaces of the DBus object.

        :param object_path: an object identifier or a DBus path or None
        :param interface_name: an interface identifier or a DBus name or None
        :param bus_arguments: additional arguments for the message bus
        :return: a proxy object
        )r,r-r(�	get_proxyr*)rr&r"Z
bus_argumentsrrrr.�s

��zDBusServiceIdentifier.get_proxy)NNNN)NN)
rrrrrrr)r*rr,r-r.r#rrrrrts�



rN)	Zdasbus.namespacerr�__all__�objectrrrrrrrr�<module>s
"