← Back
Editing: identifier.cpython-312.opt-1.pyc
� �icw � �t � d dl mZmZ g d�Z G d� de� Z G d� de� Z G d� de� Z G d � d e� Zy)� )� get_dbus_path� get_dbus_name)�DBusInterfaceIdentifier�DBusObjectIdentifier�DBusServiceIdentifierc �. � e Zd ZdZdd�Zed� � Zd� Zy)�DBusBaseIdentifierzA base identifier.Nc �X � |rg |�|��}|| _ t |� | _ t |� | _ y)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�basenames �6/usr/lib/python3.12/site-packages/dasbus/identifier.py�__init__zDBusBaseIdentifier.__init__! s5 � � �.�)�.�X�.�I�#���"�I�.�� �"�I�.�� � c � � | j S )zDBus namespace of this object.)r �r s r r zDBusBaseIdentifier.namespace. s � � ���r c � � | j S �z!Return the string representation.)r r s r �__str__zDBusBaseIdentifier.__str__3 s � ��z�z�r )N)�__name__� __module__�__qualname__�__doc__r �propertyr r � r r r r s# � ��/� �� ��r r c �@ � � e Zd ZdZd� fd� Zd� Zed� � Zd� Z� xZ S )r zIdentifier of a DBus interface.c �6 �� t �| � ||�� || _ y)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)r r r �interface_version� __class__s �r r z DBusInterfaceIdentifier.__init__; s �� � ����X��6�"3��r c � � |�yt |� S )ziConvert version to a string. :param version: a number or None :return: a string � )�str)r �versions r �_version_to_stringz*DBusInterfaceIdentifier._version_to_stringE s � � �?���7�|�r c �R � | j | j | j � z S )z Full name of the DBus interface.)r r) r"