관리-도구
편집 파일: specification.cpython-39.opt-1.pyc
a װ_�# � @ sT d dl mZ d dlmZ g d�ZG dd� de�ZG dd� de�ZG dd � d e�Z d S )� )� namedtuple)� XMLParser)�DBusSpecificationError�DBusSpecification�DBusSpecificationParserc @ s e Zd ZdZdS )r z,Exception for the DBus specification errors.N)�__name__� __module__�__qualname__�__doc__� r r �8/usr/lib/python3.9/site-packages/dasbus/specification.pyr # s r c @ s� e Zd ZdZdZdZdZdZdZdZ dZ ed g d ��Zedg d��Z ed g d��ZdgZedd� �Zdd� Zedd� �Zedd� �Zdd� Zdd� ZdS )r zDBus XML specification.�in�out�read�writeZ readwrite�returna� <node> <interface name="org.freedesktop.DBus.Introspectable"> <method name="Introspect"> <arg type="s" name="xml_data" direction="out"/> </method> </interface> <interface name="org.freedesktop.DBus.Peer"> <method name="Ping"/> <method name="GetMachineId"> <arg type="s" name="machine_uuid" direction="out"/> </method> </interface> <interface name="org.freedesktop.DBus.Properties"> <method name="Get"> <arg type="s" name="interface_name" direction="in"/> <arg type="s" name="property_name" direction="in"/> <arg type="v" name="value" direction="out"/> </method> <method name="GetAll"> <arg type="s" name="interface_name" direction="in"/> <arg type="a{sv}" name="properties" direction="out"/> </method> <method name="Set"> <arg type="s" name="interface_name" direction="in"/> <arg type="s" name="property_name" direction="in"/> <arg type="v" name="value" direction="in"/> </method> <signal name="PropertiesChanged"> <arg type="s" name="interface_name"/> <arg type="a{sv}" name="changed_properties"/> <arg type="as" name="invalidated_properties"/> </signal> </interface> </node> �Signal��name�interface_name�type�Method�r r Zin_typeZout_type�Property�r r �readable�writabler �_membersc C s t �|| �S )z.Return a DBus specification for the given XML.)r �parse_specification)�cls�xmlr r r �from_xmlp s zDBusSpecification.from_xmlc C s i | _ dS )z Create a new DBus specification.N)r ��selfr r r �__init__u s zDBusSpecification.__init__c C s t t| j�� ��� �S )z%Interfaces of the DBus specification.)�list�dictr �keysr"