403Webshell
Server IP : 209.205.66.10  /  Your IP : 216.73.216.173
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User :  ( 1006)
PHP Version : 8.5.8
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/hplip/ui5/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/hplip/ui5/__pycache__/queuesconf.cpython-310.pyc
o

�K0jp*�@s�ddlZddlZddlZddlZddlTddlmZddlmZddl	Tddlm
Z
ddlTddlTddl
TddlTdZGdd	�d	e�ZGd
d�dee�ZdS)�N)�*)�utils)�cups)�
validation�z+http://hplip.sourceforge.net/hplip_web.confc@seZdZdd�Zdd�ZdS)�	Ui_DialogcCsn|�d�|�dd�||_||_||_t|�|_|j�d�t|�|_|j�d�t	�|_
|j
�d�t|j
�|_|j�d�t|j
�|_
t�}|�d�|j
�|�|j
�d	�|j�|j
d
d
dd�t|j
�|_|j�tj�|j�tj�|j�d�|j�|jdd
dd
�t|j
�|_|j�d�|j�d�|j�|jd
d
dd
�tddtjtj�}tddtjtj�}|j�|dddd�|j�|j
�|j�|jd
d
dd�t|�|_|j�tj�|j�tj�|j�d�|j�|jdd
dd�t |�|_!|j!�d�|j�|j!d
ddd�t |�|_"|j"�d�|j�|j"d
ddd�|�#|�|j�$d
�t%�&|�dS)N�Dialogi���
gridlayout�
StackedWidget�page�gridlayout1��labelrr�line�T�
TitleLabel��(���3��line_2��
NextButton��CancelButton)'�
setObjectName�resize�printerName�
device_uri�	Error_msg�QGridLayoutr
�QStackedWidgetr�QWidgetrr
�QLabelr�QFont�setPointSize�setFont�	addWidget�QFramer�
setFrameShape�HLine�setFrameShadow�Sunkenr�setWordWrap�QSpacerItem�QSizePolicy�Minimum�	Expanding�addItemr�QPushButtonrr�
retranslateUi�setCurrentIndex�QMetaObject�connectSlotsByName)�selfrrr r!�font�
spacerItem�spacerItem2�r>�"/usr/share/hplip/ui5/queuesconf.py�setupUi,s^







zUi_Dialog.setupUicCs�|jtkr|�t�ddd��n
|�t�ddd��|jtkr+|j�t�ddd��n|jtkr<|j�t�ddd��n|j�t�ddd��|jtkrTd|jd}n&|jt	krad	|jd
}n|jtkrnd	|jd}n|jt
krzd	|jd}|jtkr�|j�t�d|d��|jtks�|jt	kr�|j
�t�dd
d��|j�t�ddd��dS|jtkr�|j
�t�ddd��|j�t�ddd��dS|j
�t�ddd��|j�t�ddd��dSdS)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�textr>r>r?r6^s6








�zUi_Dialog.retranslateUiN)�__name__�
__module__�__qualname__r@r6r>r>r>r?r+s2rc@s`eZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
ddd�Zdd�ZdS)�QueuesDiagnoseNcCsht�||�d|_||_||_||_||_|�||j|j|j�t�|_	|j	�
�|j	��|��dS)NF)
�QDialog�__init__�resultrr r!�passwordObjr@�UserSettings�
user_settings�load�debug�initUi)r:�parentrr r!rVr>r>r?rT�s

zQueuesDiagnose.__init__cCsVt�|d�||_||_||_|�||||�t�|_|j��|j�	�|�
�dS�N)rSrTrr r!r@rWrXrYrZr[)r:rr r!r>r>r?�init�s

zQueuesDiagnose.initcCsH|jj�|j�|jj�|j�t�tjtj�|�	t
tdd���dS)N�hp_logo�128x128)r�clicked�connect�CancelButton_clickedr�NextButton_clicked�signal�SIGINT�SIG_DFL�
setWindowIcon�QIcon�load_pixmap�r:r>r>r?r[�szQueuesDiagnose.initUicCs|�|�|j�|�dSr])�updateStepTextrr7)r:rr>r>r?�displayPage�s
zQueuesDiagnose.displayPagecCs|��dSr])�closerkr>r>r?rc�sz#QueuesDiagnose.CancelButton_clickedcCs�t�zi|jtkr|��nZ|jtkr)t�|j�d|jd}t||�	|��n?t�
tjtd||j�\}}|tj
krKd|jd}t||�	|��nd|jd}t�|�t�d�}|rht�d	�t�d
�Wt�nt�wd|_|��dS)NrAz' 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!rE�disable_smart_installrIr�
enablePrinterr�	SuccessUI�_QueuesDiagnose__tr�cups_operation�
delPrinter�GUI_MODE�IPP_OK�	FailureUI�logrZr�which�run�
endWaitCursorrUrn)r:�msg�status�
status_str�pathr>r>r?rd�s,







�z!QueuesDiagnose.NextButton_clickedcC�t||�|��dSr])ryrt�r:r~r>r>r?�showMessage��zQueuesDiagnose.showMessagecCr�r])rsrtr�r>r>r?�showSuccessMessage�r�z!QueuesDiagnose.showSuccessMessagecCst�d||�S)N�PluginDialog)�qApprH)r:�s�cr>r>r?�__tr�szQueuesDiagnose.__trc
Cs@t��s
t|tt��dSt�t�\}}|dkr0t|�}|�ddd�}|s0t|tt	dt��dSt�|�\}}t�|d�\}}|dkr�|dkr�t
��}	|	�||�\}
}t
|
krct�d|�\}}dSt�|d|�d|�tjtjBtj�tjkr�t�d|�\}}dSdS|r�t|tt	d|d��dSt|tt	d|��dS)	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_connectionry�queryString�ERROR_NO_NETWORK�download_from_network�HPLIP_INFO_SITE�
ConfigBase�get�ERROR_FAILED_TO_DOWNLOAD_FILEr�GPG_Verification�validate�
ERROR_SUCCESSr|�QMessageBox�questionrtrBrC)
r:�sts�
HPLIP_file�
hplip_si_conf�source�
response_file�smart_install_run�response_asc�smart_install_asc�gpg_obj�
digsig_sts�	error_str�outr>r>r?rq�s6���z$QueuesDiagnose.disable_smart_installr])
rOrPrQrTr^r[rmrcrdr�r�rtrqr>r>r>r?rR�s



rR)�os�os.path�sysre�base.g�baser�prntr�
base.codesr�ui_utils�PyQt5.QtCore�PyQt5.QtGui�PyQt5.QtWidgetsr��objectrrSrRr>r>r>r?�<module>s Z

Youez - 2016 - github.com/yon3zu
LinuXploit