%PDF- %PDF-
Direktori : /lib/python3/dist-packages/cupshelpers/__pycache__/ |
Current File : //lib/python3/dist-packages/cupshelpers/__pycache__/installdriver.cpython-312.pyc |
� �QDb� � �p � d dl Z d dlZ d dlZ ddlmZmZ G d� de j j � Zd� Z y)� N� )�_debugprint�set_debugprint_fnc �f � e Zd ZdZdZdZd� Zej j edd�� d� � Z y) �PrinterDriversInstallerz#/com/redhat/PrinterDriversInstallerz"com.redhat.PrinterDriversInstallerc �� � || _ t j j | j |�� }t j j j | || j � y )N)�bus)r �dbus�service�BusName�DBUS_OBJ�Object�__init__� DBUS_PATH)�selfr �bus_names �;/usr/lib/python3/dist-packages/cupshelpers/installdriver.pyr z PrinterDriversInstaller.__init__ sF � �����<�<�'�'����C�'�@�������$�$�d�H�d�n�n�E� �sss)� reply_handler� error_handler)�in_signature�async_callbacksc �L � t j � }|j dd� }t j |d� }d} d|�d|�d�g} d}t d t | � �d t | � �d t |� �d�� |j t j | � | |||d� � y )Nzorg.freedesktop.PackageKitz/org/freedesktop/PackageKitz!org.freedesktop.PackageKit.Modifyr zMFG:z;MDL:�;z hide-finishedzCalling InstallPrinterDrivers (z, �)i )r r �timeout)r � SessionBus� get_object� Interfacer �repr�InstallPrinterDrivers�UInt32)r �mfg�mdl�cmdr r r �obj�proxy�xid� resources�interactions r �InstallDriversz&PrinterDriversInstaller.InstallDrivers% s� � � �o�o� ���n�n�:�;�=������%H�I����),�c�2�3� �%����C�j�$� �"2�D�+�4F�H� I� �#�#�T�[�[�#�%6�%.��3@�3@�-1� $� 3r N)�__name__� __module__�__qualname__r � DBUS_IFACEr r r r �methodr, � r r r r sI � �6�I�5�J�5�H�F� �\�\����&+�*;� � <�3� <�3r r c � � t j � } dd l}| j t j t j � }t j |t j � }t |j ddd� � y )Nr �MFG�MDL�CMD)r � SystemBus�sysr r r r r r0 �printr, )r r8 r'