grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026a Êicwã@s\ddlmZmZgd¢ZGdd„deƒZGdd„deƒZGdd„deƒZGd d „d eƒZd S) é)Ú 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©r rrrr .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)r r 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)r r 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 „Zd d „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)r Z object_idrrrÚ_choose_object_pathœs  z)DBusServiceIdentifier._choose_object_pathcCs |dur dSt|tƒr|jS|S)zChoose an interface name.N)r+rr")r Z 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*)r r&r"Z bus_argumentsrrrr.°s  ýüzDBusServiceIdentifier.get_proxy)NNNN)NN) rrrrrrr)r*rr,r-r.r#rrrrrtsþ    rN) Zdasbus.namespacerrÚ__all__ÚobjectrrrrrrrrÚs "