← Back
Editing: property.cpython-312.pyc
� �ic � � � d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z m Z d dlmZm Z d dlmZmZmZmZ g d�Zd � Z G d � de� Z G d� d e� Z G d� de�� Zy)� )�ABCMeta)�defaultdict��wraps)�Dict)�dbus_signal�get_xml)�DBusSpecification�DBusSpecificationError)�get_variant�Str�Variant�List)�emits_properties_changed�PropertiesException�PropertiesInterfacec �. � � t � � � fd�� }|S )a" Decorator for emitting properties changes. The decorated method has to be a member of a class that inherits PropertiesInterface. :param method: a DBus method of a class that inherits PropertiesInterface :return: a wrapper of a DBus method that emits PropertiesChanged c �@ �� �| g|��i |��}| j � |S )N)� flush_changes)�obj�args�kwargs�result�methods ��;/usr/lib/python3.12/site-packages/dasbus/server/property.py�wrapperz)emits_properties_changed.<locals>.wrapper1 s( �� ���-�d�-�f�-������� � r )r r s ` r r r ( s"