%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	fp*���ddlZddlZddlZddlZddl�ddlmZddlmZddl	�ddlm
Z
ddl�ddl�ddl
�ddl�dZGd�d	e�ZGd
�dee�Zy)�N)�*)�utils)�cups)�
validation�z+http://hplip.sourceforge.net/hplip_web.confc��eZdZd�Zd�Zy)�	Ui_Dialogc�	�|jd�|jdd�||_||_||_t|�|_|jjd�t|�|_|jjd�t�|_
|jjd�t|j�|_|jjd�t|j�|_
t�}|jd�|jj!|�|jjd	�|jj#|jd
d
dd�t%|j�|_|j&j)t$j*�|j&j-t$j.�|j&jd�|jj#|j&dd
dd
�t|j�|_|j0j3d�|j0jd�|jj#|j0d
d
dd
�t5ddt6j8t6j:�}t5ddt6j8t6j:�}|jj=|dddd�|jj#|j�|jj#|jd
d
dd�t%|�|_|j>j)t$j*�|j>j-t$j.�|j>jd�|jj#|j>dd
dd�tA|�|_!|jBjd�|jj#|jBd
ddd�tA|�|_"|jDjd�|jj#|jDd
ddd�|jG|�|jjId
�tJjM|�y)N�Dialogi���
gridlayout�
StackedWidget�page�gridlayout1��labelrr�line�T�
TitleLabel��(���3��line_2��
NextButton��CancelButton)'�
setObjectName�resize�printerName�
device_uri�	Error_msg�QGridLayoutr
�QStackedWidgetr�QWidgetrr�QLabelr�QFont�setPointSize�setFont�	addWidget�QFramer�
setFrameShape�HLine�setFrameShadow�Sunkenr�setWordWrap�QSpacerItem�QSizePolicy�Minimum�	Expanding�addItemr�QPushButtonrr�
retranslateUi�setCurrentIndex�QMetaObject�connectSlotsByName)�selfrr"r#r$�font�
spacerItem�spacerItem2s        �"/usr/share/hplip/ui5/queuesconf.py�setupUizUi_Dialog.setupUi,s~�����X�&��
�
�c�3��$���"��� ���%�f�-������%�%�l�3�+�F�3������(�(��9��I��	��	�	����'�&�t�y�y�1������&�&�}�5��D�I�I�&��
��w�����"���
�
���4� ��
�
� � ��)����"�"�4�:�:�q�!�Q��:��4�9�9�%��	��	�	������-��	�	� � ����/��	�	����'����"�"�4�9�9�a��A�q�9� ����+������#�#�D�)����%�%�l�3����"�"�4�?�?�A�q�!�Q�?� ��R��)<�)<�k�>S�>S�T�
�!�#�r�;�+>�+>��@U�@U�V����� � ��a��A�q�9����$�$�T�Y�Y�/����!�!�$�"4�"4�a��A�q�A��V�n������!�!�&�,�,�/����"�"�6�=�=�1����!�!�(�+����!�!�$�+�+�q�!�Q��:�%�f�-������%�%�l�3����!�!�$�/�/�1�a��A�>�'��/������'�'��7����!�!�$�"3�"3�Q��1�a�@����6�"����*�*�1�-��&�&�v�.�c��|jtk(r'|jtj	ddd��n&|jtj	ddd��|jt
k(r1|jjtj	ddd��nt|jtk(r1|jjtj	ddd��n0|jjtj	ddd��|jtk(rd|jzdz}nq|jtk(rd	|jzd
z}nK|jt
k(rd	|jzdz}n%|jtk(rd	|jzdz}|jtk7�r�|jjtj	dd��|jt
k(s|jtk(ra|jjtj	dd
d��|jjtj	ddd��y|jtk(ra|jjtj	ddd��|jjtj	ddd��y|jjtj	ddd��|jjtj	ddd��yy)Nrz%HP SmartInstall/Mass storage Disablerz#HP Device Manager - Queues diagnosezPrint/Fax Queue is Pausedz Smart Install Device(s) DetectedzQueue needs to be reconfiguredzSmart Install is enabled in za device(s). 
Do you want to download and disable smart install to perform device functionalities?�'zK' is using incorrect PPD file. Do you want to remove and reconfigure queue?z)' is paused. Do you want to enable queue?ze' is not configured using hp-setup utility. Click 'Remove and Setup' to remove and reconfigure queue.�Yes�NozDownload and Disable�CancelzRemove and Setup)r$�QUEUES_SMART_INSTALL_ENABLED�setWindowTitle�QApplication�	translate�
QUEUES_PAUSEDr�setTextr"�QUEUES_INCORRECT_PPD�QUEUES_CONFIG_ERROR�QUEUES_MSG_SENDINGrrr)r=r�texts   rAr9zUi_Dialog.retranslateUi^s����>�>�:�:��!�!�,�"8�"8��Cj�lp�"q�r��!�!�,�"8�"8��Ch�jn�"o�p��>�>�]�*��J�J���|�5�5�h�@[�]a�b�c�
�^�^� <�
<��J�J���|�5�5�h�@b�dh�i�j��J�J���|�5�5�h�@`�bf�g�h��>�>�:�:�0�$�2B�2B�B�Fj�j�D�
�^�^�3�
3��t�'�'�'�*w�w�D�
�^�^�}�
,��d�&�&�&�)T�T�D�
�^�^�2�
2��d�&�&�&�*Q�Q�D��>�>�/�/��O�O�#�#�L�$:�$:�8�T�4�$P�Q��~�~��.�$�.�.�DX�2X����'�'��(>�(>�x��PT�(U�V��!�!�)�)�,�*@�*@��4�QU�*V�W����$@�@����'�'��(>�(>�x�I_�ae�(f�g��!�!�)�)�,�*@�*@��8�UY�*Z�[����'�'��(>�(>�x�I[�]a�(b�c��!�!�)�)�,�*@�*@��8�UY�*Z�[�0rCN)�__name__�
__module__�__qualname__rBr9�rCrAr	r	+s��0/�d"\rCr	c�L�eZdZdd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
dd
�Zd�Zy)
�QueuesDiagnoseNc��tj||�d|_||_||_||_||_|j||j|j|j
�t�|_	|jj�|jj�|j�y)NF)
�QDialog�__init__�resultr"r#r$�passwordObjrB�UserSettings�
user_settings�load�debug�initUi)r=�parentr"r#r$r]s      rAr[zQueuesDiagnose.__init__�s�������v�&����&���$���"���&������T�4�+�+�T�_�_�T�^�^�L�)�^��������!���� � �"����
rCc�(�tj|d�||_||_||_|j||||�t
�|_|jj�|jj�|j�y�N)rZr[r"r#r$rBr^r_r`rarb)r=r"r#r$s    rA�initzQueuesDiagnose.init�sq������d�#�&���$���"������T�;�
�9�=�)�^��������!���� � �"����
rCc�l�|jjj|j�|jjj|j
�t
jtjtj�|jttdd���y)N�hp_logo�128x128)r�clicked�connect�CancelButton_clickedr�NextButton_clicked�signal�SIGINT�SIG_DFL�
setWindowIcon�QIcon�load_pixmap�r=s rArbzQueuesDiagnose.initUi�sr�����!�!�)�)�$�*C�*C�D������'�'��(?�(?�@��
�
�f�m�m�V�^�^�4�	
���5��Y�	�!B�C�DrCc�\�|j|�|jj|�yre)�updateStepTextrr:)r=rs  rA�displayPagezQueuesDiagnose.displayPage�s$�����D�!����*�*�4�0rCc�$�|j�yre)�closerts rArlz#QueuesDiagnose.CancelButton_clicked�s���
�
�rCc�F�t�	|jtk(r|j��nA|jtk(rMtj|j�d|jzdz}t||j|��n�tjt
jtd||j�\}}|t
jk7r.d|jzdz}t||j|��nhd|jzdz}tj!|�t#j$d�}|r*tj!d	�t#j&d
�t)�d|_|j-�y#t)�wxYw)NrEz' is enabled successfully�qt4zFailed to remove ' z$ ' queue.
Remove using hp-toolbox...z' zC ' removed successfully.
Re-configuring this printer by hp-setup...zhp-setupzStarting hp-setupzhp-setup --guiT)�beginWaitCursorr$rI�disable_smart_installrMr�
enablePrinterr"�	SuccessUI�_QueuesDiagnose__tr�cups_operation�
delPrinter�GUI_MODE�IPP_OK�	FailureUI�lograr�which�run�
endWaitCursorr\ry)r=�msg�status�
status_str�paths     rArmz!QueuesDiagnose.NextButton_clicked�s:����	��~�~�">�>��*�*�,��.�.�M�1��"�"�4�#3�#3�4���)�)�)�*E�E���$��	�	�#��/�&*�%8�%8����(�TY�[_�ae�aq�aq�%r�"��
��T�[�[�(�-�d�.>�.>�>�?f�f�C��d�D�I�I�c�N�3��T�-�-�-�.t�t�C��I�I�c�N� �;�;�z�2�D���	�	�"5�6��	�	�"2�3�
�O�����
�
���
�O�s�E&F�F c�:�t||j|��yre)r�r��r=r�s  rA�showMessagezQueuesDiagnose.showMessage�����$��	�	�#��'rCc�:�t||j|��yre)rr�r�s  rA�showSuccessMessagez!QueuesDiagnose.showSuccessMessage�r�rCc�0�tjd||�S)N�PluginDialog)�qApprL)r=�s�cs   rA�__trzQueuesDiagnose.__tr�s���~�~�n�Q�q�1�1rCc	��tj�st|tt��ytj
t�\}}|dk(r@t|�}|jddd�}|s t|ttdt��ytj
�\}}tj
|dz�\}}|dk(r�|dk(r�tj�}	|	j||�\}
}t|
k(rtjd|z�\}}ytj!|d|j#d|z�tj$tj&ztj&�tj$k(rtjd|z�\}}yy|rt|ttd|dz��yt|ttd|��y)	Nr�
SMART_INSTALL�url�z.asczsh %s� z�<b>%s</b><p>Without this, it is not possible to authenticate and validate this tool prior to installation.</p>Do you still want to run Smart Install disabler?)r�check_network_connectionr��queryString�ERROR_NO_NETWORK�download_from_network�HPLIP_INFO_SITE�
ConfigBase�get�ERROR_FAILED_TO_DOWNLOAD_FILEr�GPG_Verification�validate�
ERROR_SUCCESSr��QMessageBox�questionr�rFrG)
r=�sts�
HPLIP_file�
hplip_si_conf�source�
response_file�smart_install_run�response_asc�smart_install_asc�gpg_obj�
digsig_sts�	error_str�outs
             rAr}z$QueuesDiagnose.disable_smart_install�s����-�-�/��d�K�(8�9�:�#�9�9�/�J�O�C���a�x� *�:� 6�
�&�*�*�?�5��D����d�K�0M�q�Ra�$b�c��/4�/J�/J�6�/R�,�M�,�.3�.I�.I�&�QW�-�.X�+�L�+���!���(9�$�5�5�7��(/�(8�(8�9J�L]�(^�%�
�I� �J�.�$�y�y��1B�)B�C�H�C��#�+�+�D�#��	�	�#C�EN�#N�O�,7�O�O�k�n�n�,L�k�n�n�^�al�ap�ap�q�$)�9�9�W�5F�-F�#G���S�	q� ��d�K�0M�q�RX�[a�Ra�$b�c��d�K�0M�q�RX�$Y�ZrCre)
rSrTrUr[rfrbrwrlrmr�r�r�r}rVrCrArXrX�s6���
�E�1���<(�(�2�"[rCrX)�os�os.path�sysrn�base.g�baser�prntr�
base.codesr�ui_utils�PyQt5.QtCore�PyQt5.QtGui�PyQt5.QtWidgetsr��objectr	rZrXrVrCrA�<module>r�sZ��.
��
�
����������>��U\��U\�t{[�W�i�{[rC

Zerion Mini Shell 1.0