%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	f������ddlZddlZddlZddlZddlZddlZddlmZddl�ddl	�ddl
�ddlmZm
Z
mZmZddlmZddl�e
j&d�Z	ddlmZddl�ddlmZej<dd
k(rej<ddkreZ dZ!dZ"d
Z#dZ$d
Z%dZ&dZ'dZ(dZ)dZ*dZ+dZ,dZ-dZ.d
Z/Gd�de0�Z1Gd�de2�Z3y#e$r&ej9d	�ej:d�Y��wxYw)�N)�BytesIO)�*)�device�utils�pml�codes)�cups��hpmudext)�cdllz;Marvell fax support requires python-ctypes module. Exiting!����	�
���
ic��eZdZdddedfd�Zd�Zdd�Zd�Zd�Zd�Z	e
e	e�Zd	�Zd
�Z
e
e
e�Zd�Zd�Z			dd
�Zy)�MarvellFaxDeviceNFc��tj||||||�d|_d|_	t	j
d�}t
j|dz�}tjj|�s!tjj||�}n|}tjj|�}	tjj|	�\}
}|
dz}tjd|z�ddlm}
|
j#�}|j%�|
j&k7r|tj)d|z�tj+d�d}|j,j/||t0t
j2d	�|d
�t5j6d�yt9j:|�|_y#t>$rA}tj)d|j@z�t5j6d�Yd}~yd}~wwxYw)
Nz
hp-sendfaxz/hp-sendfaxz/fax/plugins/fax_marvell.sozLoad the library %s
r)�
pluginhandlerz9Loading %s failed. Try after installing plugin libraries
zSRun "hp-plugin" to installa plugin libraries if you are not automatically prompted
�USERzPlugin is not installedr
z Loading fax_marvell failed (%s)
)!�	FaxDevice�__init__�send_fax_thread�upload_log_threadr�which�os�readlink�path�isabs�join�realpath�split�log�debug�	installerr�PluginHandle�	getStatus�PLUGIN_INSTALLED�error�info�service�	SendEvent�EVENT_FAX_FAILED_MISSING_PLUGIN�getenv�sys�exitr�LoadLibrary�libfax_marvell�Error�msg)�self�
device_uri�printer_name�callback�fax_type�disable_dbus�sendfax_path�sendfax_a_path�sendfax_f_path�sendfax_abs_path�head�tail�lib_namer�	pluginObj�job_id�es                 �"/usr/share/hplip/fax/marvellfax.pyrzMarvellFaxDevice.__init__Ms���
	���4��'�#�X�'�	)�
 $���!%���	� �;�;�|�4�L��[�[��m�)C�D�N��7�7�=�=��0�$&�G�G�L�L��~�$N�>�$2�>�!�w�w�/�/��?���7�7�=�=�)9�:�L�T�4��9�9�H��I�I�-��8�9�/�%�2�2�4�I��"�"�$�
�(F�(F�F��	�	�V�X`�`�a����q�r������&�&�z�<�A`�bd�bk�bk�lr�bs�u{�~W�X������&*�&6�&6�x�&@��#���	��I�I�9�A�E�E�A�B��H�H�Q�K�K��	�s�E;G�&G�	H�
7H�Hc��y)NF�)r8s rH�isAuthRequiredzMarvellFaxDevice.isAuthRequiredvs���c
�D�tdz}|dddddddd�}|jj|||||t|��}t	|�}		t
j
|	j�d�|j|	�|S#t
j
|	d�Y�-xYw)N�r� )	�c_intr5�
create_packet�byref�
memoryviewr&�log_data�tobytes�writeMarvellFax)
r8�msg_type�param1�param2�status�data_len�int_array_8�i_buf�result�bufs
          rH�send_packet_for_messagez(MarvellFaxDevice.send_packet_for_message~s����a�i���A�q�!�Q��1�a��3���$�$�2�2�8�V�V�V�U]�_d�ej�_k�l������	"��L�L������+�	
���S�!��
��	"��L�L��b�!�s�$B�Bc���t�}|jd|d��r	|jd|d��r�|j�}tj	d|z�tj|d�|S)NrOr��timeoutz.response_for_message (%d): response packet is
)r�readMarvellFax�getvaluer&r'rT)r8rW�ret_bufs   rH�read_response_for_messagez*MarvellFaxDevice.read_response_for_message�so���)���!�!�"�g�r�!�:� ��!�!�"�g�r�!�:��"�"�$��	�	�	�C�h�N�O����W�b�!��rLc
���tjd|z�t�}tdz}|dddddddd�}tdz}|�}tdz}|�}tj�}	d|	d|	d|	d|	d	|	d
|	dfz}tjd�tj|�|jjtddddt|��}
|jj|jt|�|t|��}
t|�}t|�}tdd
�D]=}
	|j!t|j#�|
�j%d���?tdd�D]=}
	|j!t|j#�|
�j%d���?|j'�}tjd�tj)|d�|j+|�t�}|j-d
|d��r	|j-d
|d��r�|j'�}|j/�|jj1|�}tjd|z�tjd�|S#|j!t||
��Y���xYw#|j!||
�Y��hxYw)NzK************************* setPhoneNum (%s) START **************************rNr�4��%4d%02d%02d%02d%02d%02dr
r
��r�Date and Time string is ==>rO�utf-8z9setPhoneNum: send SET_FAX_SETTINGS message and data ===> �TrrbzsetPhoneNum: response is %dzD************************* setPhoneNum END **************************)r&r'rrP�c_char�time�	localtimer5rQ�SET_FAX_SETTINGSrR�create_fax_settings_packet�station_name�strrS�range�writerU�encodererTrVrd�closeMarvellFax�extract_response)r8�num�set_buf�	int_arrayr]�
char_array�c_buf�
date_array�date_buf�tr^�msg_buf�	msg_c_buf�irf�responses                rH�setPhoneNumzMarvellFaxDevice.setPhoneNum�s����	�	�_�be�e�f��)���A�I�	��!�Q��1�a��A�q�1���c�\�
�����b�[�
��<���N�N���,��!��a��d�A�a�D�!�A�$��!��a�PQ�d�/S�S���	�	�/�0��	�	�(���$�$�2�2�3C�Q��1�a�QV�W\�Q]�^���$�$�?�?��@Q�@Q�SV�WZ�S[�]e�gl�mr�gs�t���U�#���u�%�	��q�"��	/�A�
/��
�
�c�'�/�/�"3�A�"6�7�>�>�w�G�H�	/�
�q�#��	-�A�
-��
�
�c�)�"3�"3�"5�a�"8�9�@�@��I�J�	-��"�"�$���	�	�M�N����W�c�"����W�%��)���!�!�"�g�r�!�:� ��!�!�"�g�r�!�:��"�"�$�������&�&�7�7��@���	�	�/�(�:�;��	�	�X�Y����/
/��
�
�c�'�!�*�o�.��
-����y��|�,�s�:J5�:K�5K�K3c
�n�tdz}|dddddddd�}|dddddddd�}tjd�|jj	t
ddddt
|��}t|�}|j|�t�}|jd|d��r	|jd|d��r�|j�}|j�|jj|�}tjd|z�|jj||�}t�}tdd�D]&}	||	s�		|j!t#||	���(|j�}tjd	|z�tjd
�t#|�S#Y�uxYw)NrNrz=******************** getPhoneNum START **********************�rrbzcreate_packet: response is %drzgetPhoneNum: ph_num_buf=%s z;******************** getPhoneNum END **********************)rPr&r'r5rQ�GET_FAX_SETTINGSrRrSrVrrdrer{r|�extract_phone_numberrxryrw)
r8r\r]�ph_bufr^r_rfr��
ph_num_bufr�s
          rH�getPhoneNumzMarvellFaxDevice.getPhoneNum�s����a�i���A�q�!�Q��1�a��3���Q��1�a��A�q�!�4���	�	�Q�R��$�$�2�2�3C�Q��1�a�QV�W\�Q]�^���������S�!��)���!�!�#�w��!�;� ��!�!�#�w��!�;��"�"�$�������&�&�7�7��@���	�	�1�H�<�=��&�&�;�;�G�V�L���Y�
��q�!��	�A��a�y���#�#�C��q�	�N�3�	� �(�(�*�
��	�	�/�:�>�?��	�	�O�P��:������s�	F0�0F4c
� �tjd|z�tdz}|dddddddd�}t�}tdz}|�}tdz}|�}tj�}	d|	d|	d|	d|	d	|	d
|	dfz}tjd�tj|�|jjtddddt|��}
	|jj||j|t|��}
t!|�}t!|�}t#dd�D]=}
	|j%t'|j)�|
�j+d���?t#dd�D]=}
	|j%t'|j)�|
�j+d���?|j-�}tjd�tj/|d�|j1|�t�}|j3d|d��r	|j3d|d��r�|j-�}|j5�|jj7|�}tjd|z�tjd�|S#ttf$rtjd
�Y���wxYw#|j%||
�Y���xYw#|j%||
�Y���xYw)NzM************************* setStationName(%s) START **************************rNrrirjrkr
r
rlrmrrnz
Unicode ErrorrOroz7setStationName: SET_FAX_SETTINGS message and data ===> rprrbzsetStationName: response is %dzG************************* setStationName END **************************)r&r'rPrrqrrrsr5rQrtrRru�	phone_num�UnicodeEncodeError�UnicodeDecodeErrorr,rSrxryrwrUrzrerTrVrdr{r|)r8�namerr]r~r�r�r�r�r�r^r�r�r�rfr�s                rH�setStationNamezMarvellFaxDevice.setStationName�s����	�	�a�dh�h�i��A�I�	��!�Q��1�a��A�q�1���)���c�\�
�����b�[�
��<���N�N���,��!��a��d�A�a�D�!�A�$��!��a�PQ�d�/S�S���	�	�/�0��	�	�(���$�$�2�2�3C�Q��1�a�QV�W\�Q]�^��	'��(�(�C�C�D�$�.�.�Zb�di�jo�dp�q�F��U�#���u�%�	��q�"��	*�A�
*��
�
�c�'�/�/�"3�A�"6�7�>�>�w�G�H�	*�
�q�#��	,�A�
,��
�
�c�)�"3�"3�"5�a�"8�9�@�@��I�J�	,�
�"�"�$���	�	�K�L����W�c�"����W�%��)���!�!�"�g�r�!�:� ��!�!�"�g�r�!�:��"�"�$�������&�&�7�7��@���	�	�2�X�=�>��	�	�[�\����A"�#5�6�	'��I�I�o�&�	'��
*��
�
�g�a�j�)��
,��
�
�i��l�+�s*�$1J-�;:K�:K4�-$K�K�K1�4L
c
���tdz}|dddddddd�}td�}tjd�|jjtddddt|��}t|�}|j|�t�}|jd|d��r	|jd|d��r�|j�}|j�|jj|�}tjd|z�|jj||�}tjd	|j |fz�tjd
�|j j#d�S)NrNr�zI************************* getStationName START **************************r�rrbzgetStationName: response is %dz.getStationName: station_name=%s ; result is %dzG************************* getStationName END **************************ro)rP�create_string_bufferr&r'r5rQr�rRrSrVrrdrer{r|�extract_station_name�value�decode)r8rr]�st_bufr^r_rfr�s        rH�getStationNamezMarvellFaxDevice.getStationName4sL���A�I�	��!�Q��1�a��A�q�1��%�c�*���	�	�]�^��$�$�2�2�3C�Q��1�a�QV�W\�Q]�^���������S�!��)���!�!�#�w��!�;� ��!�!�#�w��!�;��"�"�$�������&�&�7�7��@���	�	�2�X�=�>��$�$�9�9�'�6�J���	�	�B�f�l�l�TZ�E[�[�\��	�	�[�\��|�|�"�"�7�+�+rLc
��tdz}|dddddddd�}tjd�td�}t	�}t	�}t
dz}|�}t
j�}d|d|d|d|d	|d
|dfz}tjd�tj|�|jjtddddt|��}	t|�}
tdd
�D](}	|j|
j�||dz��*|j|j �|j#�}|j%|�|j'd|d��r	|j'd|d��r�|j#�}|j)�|jj+|�}tjd|z�|S#|j|
|�Y��xYw)NrNrzI************************* setDateAndTime START **************************rirjrkr
r
rlrmrrn�rOrbzsetDateAndTime: response is %d)rPr&r'r�rrqrrrsr5rQrtrRrSrxryrU�rawrerVrdr{r|)
r8rr]r�r~rfr�r�r�r^r�r�r�s
             rH�setDateAndTimezMarvellFaxDevice.setDateAndTime[s����A�I�	��!�Q��1�a��A�q�1���	�	�]�^�$�S�)���)���)���b�[�
��<���N�N���,��!��a��d�A�a�D�!�A�$��!��a�PQ�d�/S�S���	�	�/�0��	�	�(���$�$�2�2�3C�Q��1�a�QV�W\�Q]�^���U�#���q�"��	*�A�
*��
�
�g�o�o�/��!�A�#�6�7�	*�	�
�
�e�i�i� ��"�"�$�����W�%��!�!�"�g�q�!�9� ��!�!�"�g�q�!�9��"�"�$�������&�&�7�7��@���	�	�2�X�=�>����
*��
�
�g�a�j�)�s�%G"�"G:c
��tjd�tdz}|dddddddd�}td�}|jj	t
ddddt
|��}t|�}|j|�t�}|jd|d��r	|jd|d��r�|j�}|j�|jj|�}tjd|z�|S)NzM************************* getFaxDeviceState: START **************************rNrrOrrbz!getFaxDeviceState: response is %d)r&r'rPr5rQ�REQUEST_FAX_STATUSrRrSrVrrdrer{r|)r8rr]rXr^r_rfr�s        rH�getFaxDeviceStatez"MarvellFaxDevice.getFaxDeviceState�s����	�	�a�b��A�I�	��!�Q��1�a��A�q�1���q����$�$�2�2�3E�q�!�Q�PQ�SX�Y^�S_�`���������S�!��)���!�!�"�g�q�!�9� ��!�!�"�g�q�!�9��"�"�$�������&�&�7�7��@���	�	�5��@�A��rLc

��|j�s?t||j|||||||||	�|_|jj	�yy)NTF)�isSendFaxActive�MarvellFaxSendThreadr.r�start)
r8�phone_num_list�
fax_file_list�
cover_message�cover_re�
cover_func�preserve_formattingr:�update_queue�event_queues
          rH�	sendFaxeszMarvellFaxDevice.sendFaxes�sW���#�#�%�#7��d�l�l�N�\i�4A�8�Z�4G�4@�,�4?�	$A�D� �
� � �&�&�(��rL)rrrr��r�NFr�NN)�__name__�
__module__�__qualname__�
FAX_TYPE_NONErrKr`rgr�r��propertyr�r�r�rvr�r�r�rJrLrHrrKsu��"&�T��'�#�'�R�
�&�2�j�F��k�2�I�
5�p,�>�N�N�;�L�(�`�2SU�KM�15�rLrc��eZdZ		dd�Zd�Zy)r�Nc�D�tj||||||||||	|
|�y)N)�
FaxSendThreadr)r8�devr.r�r�r�r�r�r�r:r�r�s            rHrzMarvellFaxSendThread.__init__�s-��	���t�S�'�>�=�
�H�j�2E�
�<��	6rLc� �d}d}d}d}d}d}d}d}d	}	d
}
d}d}
d
}d}
d}|j�}d}d}|}g|_||k7�
r�|j�rtj	d�|}tj	d|z�||k(r1tjd�|j
tddf�|
}�
nt||k(r1tj	d�|j
tddf�|
}�
n>||k(r1tjd�|j
tddf�|
}�
n||k(r1tjd�|j
tddf�|
}�n�||k(r�tj	ddz�|}		|jj�	|jj|_|jj|_|jj'��nD||k(r+tj	ddz�|j)|�}�n||k(r+tj	ddz�|j+|�}�n�||k(r�tj	ddz�|	}	t-|�}|j
t.d|df�|d}|dj1d �}tj	d!|�d"|���|jdd|_�nT||	k(r+tj	d$dz�|j7�}�n$||
k(r+tj	d%dz�|j9|�}�
n�||k(r1tj	d&dz�tj	d'�|}�
n�||k(�
r6tj	d(dz�|}|j;�}d}d}d)}d*}d}d}d+}d}d}d}d	} d
}!d}"d}#d
}$d}%d,}&t<}'|}(|(|k7�
r^|j�rtjd-�|}(|&r5|j?�})|)t<k7rtjd.|)z�|}(|}tj	d/||(|'fz�|(|k(rd,}&|$}(|}�	nN|(|k(rtjd0�d,}&|$}(|}�	n,|(|k(rtjd1�d,}&|$}(|}�	n
|(|k(rtj	d2�d,}&|$}(|}�n�|(|k(rWtj	d3dz�|}(	|jj�|jj@tBk(�r�|}(�n�|(|k(rTtj	d3dz�|}(	t-|�}*|*d|_"tj	d4|jDz��n3|(|k(r�tj	d6dz�|}(	t|jDd7�}+	|+jItJ�},|jM|,�\
}-}.}/}0}1}2}3}4}5}6|-d9k7rtjd:�|}(n tj	d;|-|.|/|0|1|2|3|4fz�|jj?�}7|7dk(rtj	d<��nXtj	d=�|}(�n?|(|k(�rRtj	d>dz�|}(tOjP|jD�tR}8|8tJz
tT/zz
}9tj	d?|8z�tj	d@|9z�|jjWtX|9ddd�}:|:rtj	dA|:z�|}(�nutj	dB�|jj[tX�};|jj\j_|;�}<|<rtj	dC|<z�|}(�n�tj	dD��n�|(|k(rntj	dEdz�| }(|jjWt`�}:|:rtj	dF|:z�|}(�n�tj	dG��nt|(| k(r�tj	dHdz�|!}(tcdI�}=te�}>d}?|jj\jg|?||=�}@|>ji|=jj�|>jm�}>|jjo|>��n�|(|!k(r|"}(�n�|(|"k(�rJtj	dJdz�|#}(t<}'te�}AtOjP|jD�tR}8|8tJz
tT/zz
}Btq|/�D�]�}C|j�rtr}'|'trk(r�n,	+jItT�},|ju|,�\}D}E}F}G}H}6tj	dK|D|E|F|G|Hfz�Aji|+jI|G��|+jI|H�}I|Ajwd�|G}Jd}KJdkDr�	AjItx�}LLdk(rtjdL�tr}'n�|j�rtr}'tjdM�n�Ktxz
}K	|jjWtzdddt}L��}:|:rtj	dN|:z�tr}'ntj	dO�|jjoL�Jtxz
}J|JdkDr��Ajd�|Ajwd�����nv|(|#k(�rtj	dQdz�|$}(|jjWtzdd|'d�}:|:r tj	dR|:z�tr}'�ntj	dO�|jj[t`�};|jj\j_|;�}<|<rtj	dS|<z�tr}'ntj	dT�|'�rtj	dU�t�j�dV��nS|(|$k(�rMtj	dWdz�|}(|jjWt�dd|'d�}:|:rtj	dX|:z�tr}'n�tj	dY�|jj[t��};|jj\j_|;�}<|<rtj	dZ|<z�tr}'ntj	d[�|'t<k7rtjd\�|}(	+j'�t�j�dV�|jj'�|(|k7r�	��n�||
k(r}tj	d]dz�|j�rWtj	d^|jDz�	tOj�|jD�tj	d_�|}||k7r�
��yy#t"$rtjd�|}Y���wxYw#t"$r/}tjd|j$z�|}Yd}~���d}~wwxYw#|jj'�wxYw#t2$r|}tj	d#�Y���wxYw#t"$r/}tjd|j$z�|}(Yd}~��nd}~wwxYw#t2$rtj	d5�|}(Y���wxYw#tF$rtjd8�|}(Y���wxYw#tF$rtjd8�|}(Y���wxYw#tF$rtjd8�tr}'Y��dwxYw#tF$rtjd8�tr}'Y���wxYw#t"$rtjdP�tr}'Y��wxYw#t�$rY���wxYw#t�$rtj	d`�Y��wxYw)aNrr����(�2�<�F�P�Z�d�n�x�z***** Job is Cancelled.z *************** STATE=(%d, 0, 0)zAborted by user.r�zSuccess.zError, aborting.zDevice busy, aborting.z%s State: Get sender infoz********************z*Getting station-name and phone_num failed!zUnable to open device (%s).z!%s State: Pre-render non-G3 filesz%s State: Get total page countz%s State: Next recipientr��fax�asciiz
recipient is z num is zLast recipient.z%s State: Render cover pagez%s State: Handle single filez%s State: Merge multiple filesz)Not merging the files for Marvell supportz%s State: Send fax���#FzFax send aborted.zDevice is in error state=%dz&*********  FAX_SEND_STATE=(%d, %d, %d)zFax send error.zFax device busy.zFax send success.z%s State: Open devicez***** file name is : %s...zfile(s) are sent to the devicez%s State: Check idle�rbzUnable to read fax file.shplip_g3zInvalid file header. Bad magic.zTMagic=%s Version=%d Total Pages=%d hDPI=%d vDPI=%d Size=%d Resolution=%d Encoding=%dzState: device status is zero z!State: device status is non-zero z%s State: Request startz#### file_len = %dz#### tx_data_len = %dz(Sending start fax request failed with %dz#Successfully sent start fax requestz start-fax request failed with %dzstart-fax request is successfulz%s State: Send data requestz(Sending send-data request failed with %dz"Successfully sent send-fax requestz%s State: Set params�Dz%s State: Send pagesz%Page=%d PPR=%d RPP=%d BPP=%d Thumb=%dzNo data!zJob is cancelled. Aborting...z-Sending fax-data-block request failed with %dz(Successfully sent fax-data-block requestzChannel write error.z'%s State: Send end-of-file-data requestz,Sending fax-data-block packet failed with %dzsend-fax request failed with %dzsend-fax request is successfulz
Exiting...r
z%s State: End the jobz)Sending end-fax-job packet failed with %dz%Successfully sent end-fax-job requestz"end-fax-job request failed with %dz!end-fax-job request is successfulz1An error occurred! setting fax_send_state to DONEz%s State: CleanupzRemoving merged file: %s�Removedz	Not found)I�next_recipient_gen�rendered_file_list�check_for_cancelr&r'r,�write_queue�STATUS_IDLE�STATUS_COMPLETED�STATUS_ERROR�STATUS_BUSYr��openrv�sender_namer��
sender_faxr6r7�close�
pre_render�count_pages�next�STATUS_SENDING_TO_RECIPIENTrz�
StopIteration�recipient_file_list�
cover_page�single_file�
next_file_gen�SUCCESSr��device_state�DEVICE_STATE_NOT_FOUND�f�IOError�read�FILE_HEADER_SIZE�decode_fax_headerr�stat�ST_SIZE�PAGE_HEADER_SIZEr`�
START_FAX_JOBrgr5r|�SEND_FAX_JOBr�r�create_job_settings_packetryr�rerVrx�FAILURE�decode_page_header�seek�FAX_DATA_BLOCK_SIZE�FAX_DATA_BLOCK�len�truncater2r3�END_FAX_JOB�	NameErrorrr�sleep�remove_temp_file�remove�OSError)Mr8�
STATE_DONE�
STATE_ABORTED�
STATE_SUCCESS�
STATE_BUSY�STATE_READ_SENDER_INFO�STATE_PRERENDER�STATE_COUNT_PAGES�STATE_NEXT_RECIPIENT�STATE_COVER_PAGE�STATE_SINGLE_FILE�STATE_MERGE_FILES�STATE_SEND_FAX�
STATE_CLEANUP�STATE_ERROR�next_recipient�rec_name�rec_num�staterG�	recipient�	next_file�FAX_SEND_STATE_DONE�FAX_SEND_STATE_SUCCESS�FAX_SEND_STATE_ABORT�FAX_SEND_STATE_ERROR�FAX_SEND_STATE_BUSY�FAX_SEND_STATE_DEVICE_OPEN�FAX_SEND_STATE_NEXT_FILE�FAX_SEND_STATE_CHECK_IDLE� FAX_SEND_STATE_START_JOB_REQUEST�FAX_SEND_STATE_SEND_JOB_REQUEST�FAX_SEND_STATE_SET_PARAMS�FAX_SEND_STATE_SEND_FAX_HEADER�FAX_SEND_STATE_SEND_FILE_DATA�FAX_SEND_STATE_END_FILE_DATA�FAX_SEND_STATE_END_JOB_REQUEST�"FAX_SEND_STATE_GET_LOG_INFORMATION�
monitor_state�
current_state�fax_send_state�	fax_state�fax_file�ff�header�magic�version�total_pages�hort_dpi�vert_dpi�	page_size�
resolution�encoding�	reserved1�	reserved2�	dev_state�file_len�tx_data_len�	ret_valuerf�dev_responser�r~�no_data�ret_val�page�
bytes_to_read�p�page_num�ppr�rpp�	b_to_read�thumbnail_bytes�	thumbnail�bytes_to_write�
total_read�datasM                                                                             rH�runzMarvellFaxSendThread.run�s����
��
��
��
�!#������!�������������
����0�0�2������&��"$����z�!��$�$�&��	�	�3�4�%���I�I�8�5�@�A��
�%��	�	�,�-�� � �+�q�"�!5�6�%���-�'��	�	�*�%�� � �"2�A�r�!:�;�%���+�%��	�	�,�-�� � �,��2�!6�7�%���*�$��	�	�2�3�� � �+�q�"�!5�6�%���0�0��	�	�5��@�A�'��%�0����
�
��
0�/3�x�x�/D�/D�D�,�.2�h�h�.@�.@�D�O��H�H�N�N�$��/�)��	�	�=��H�I����(9�:���+�+��	�	�:�f�E�F��(�(�)=�>���.�.��	�	�4��?�@�(��� $�^� 4�I��$�$�&A�1�i�PV�FW�%X�Y�(��0�H�'��.�5�5�g�>�G��I�I�X�w�O�P�,0�+B�+B�1�+E��(��*�*��	�	�7�6�B�C����	�2���+�+��	�	�8�F�C�D��(�(��8���+�+��	�	�:�f�E�F��	�	�E�F�&���.�(��	�	�.�&�9�:�,�� �.�.�0�	�&'�#�)+�&�')�$�')�$�&(�#�-/�*�+-�(�,.�)�35�0�24�/�,.�)�13�.�02�-�/2�,�14�.�58�2� %�
� '�
�!;��$�(;�;��,�,�.��	�	�"5�6�)=��$�$(�$:�$:�$<�	�$��/��I�I�&C�i�&O�P�-A�N�$/�E��I�I�F�.�Zh�jw�Ix�x�y�%�)=�=�(-�
�)G�� -��'�+?�?��	�	�"3�4�(-�
�)G�� +��'�+>�>��	�	�"4�5�(-�
�)G�� *��'�+A�A��	�	�"5�6�(-�
�)G�� 4��'�+E�E��	�	�"9�V�"D�E�)A��F� �H�H�M�M�O�
 $�x�x�4�4�8N�N�1E��(�+C�C��	�	�"9�V�"D�E�)B��B�(,�Y��X�&.�q�k�T�V� �Y�Y�'C�d�f�f�'L�M�(�+D�D��	�	�"8�F�"C�D�)I��%�!%�d�f�f�d�!3�B�%�%'�W�W�-=�%>�F�JN�I_�I_�`f�Ig�G��w��X�x��&��)�Y� �K�/��I�I�&G�H�-A�N��I�I�&|�$�g�{�H�h�PY�[e�go�p�'q�r�%)�H�H�$>�$>�$@�	�%��N��9�9�%D�E��9�9�%H�I�,?�>�(�+K�K��	�	�";�v�"F�G�)H��#%�7�7�4�6�6�?�7�#;��&.�1A�&A�EU�Va�Ea�&b���	�	�"6��"A�B��	�	�"9�K�"G�H�$(�H�H�$D�$D�]�T_�ab�de�gh�$i�	�$��9�9�%O�R[�%[�\�,@�>��9�9�%J�K�%)�X�X�%G�%G�
�%V�7�*.�(�(�*A�*A�*R�*R�SZ�*[�<�*�!�i�i�(J�\�(Y�Z�/C�n�!�i�i�(I�J�'�+J�J��	�	�"?�6�"J�K�)B��$(�H�H�$D�$D�\�$R�	�$��9�9�%O�R[�%[�\�,@�>��9�9�%I�J�(�+D�D��	�	�"8�F�"C�D�)G�� 4�R� 8��")�)��"&��"&�(�(�"9�"9�"T�"T�U\�^e�gl�"m���
�
�e�i�i�0�")�"2�"2�"4�����0�0��9�(�+I�I�)F��'�+H�H��	�	�"8�F�"C�D�)E��(/�
�&�y��#%�7�7�4�6�6�?�7�#;��(0�3C�(C�GW�Xc�Gc�(d�
�!&�{�!3�@)�A�#�4�4�6�07�
�,��7� %�)�)+���1A�)B��!%� 7� 7�� ?�V�H�c�3�	�?�I� �I�I�&M�'/��c�9�o�&V�'W�X�!�J�J�r�w�w�y�'9�:�(*����(@�I� �I�I�a�L�-6�N�)*�J�#1�A�#5� ,�*.�)�)�4G�*H�4�#'�"�*�#&�9�9�Z�#8�3:�=�#(�"&�"7�"7�"9�3:�=�#&�9�9�-L�#M�#(�)�-@�@�z�
 )�/3�x�x�/O�/O�P^�`a�cd�fg�il�mq�ir�/s�9�&/�&)�i�i�0_�bk�0k�&l�6=�m�&)�i�i�0Z�&[�#'�8�8�#;�#;�D�#A�1?�AT�0T�~�G$2�A�#5�J!�M�M�!�,� �I�I�a�L�A@)�F(�+G�G��	�	�"K�v�"V�W�)G��$(�H�H�$D�$D�^�UV�XY�[h�jk�$l�	�$��9�9�%S�V_�%_�`�+2�=��9�9�%O�P�%)�X�X�%G�%G��%U�7�*.�(�(�*A�*A�*R�*R�SZ�*[�<�*�!�i�i�(I�L�(X�Y�.5�m�!�i�i�(H�I�+�!�i�i��5�!�h�h�q�k�(�+I�I��	�	�"9�V�"D�E�)A��$(�H�H�$D�$D�[�RS�UV�Xe�gh�$i�	�$��9�9�%P�S\�%\�]�+2�=��9�9�%L�M�%)�X�X�%G�%G��%T�7�*.�(�(�*A�*A�*R�*R�SZ�*[�<�*�!�i�i�(L�|�([�\�.5�m�!�i�i�(K�L�(�G�3��9�9�%X�Y�,?�>�!��H�H�J��
�
�1�
������(�{%�(;�;�@	�-�'��	�	�-��8�9��(�(��I�I�8�4�6�6�A�B�/��	�	�$�&�&�)��	�	�)�,�#��O
�z�!��X %�0��I�I�&R�S�$/�E�0��!�,��	�	�"?�!�%�%�"G�H� +���,���H�H�N�N�$��4%��)�E��I�I�/�0����| %�B��I�I�&C�a�e�e�&K�L�-A�N��B�� -�B� �Y�Y�'G�I�.A�^�B�� '�%��I�I�&@�A�-A�N�$�%�� '�%��I�I�&@�A�-A�N�$�%��B$+�)� #�	�	�*D� E�07�
� (�)��&'.� ,�#&�9�9�-G�#H�3:�=�#+� ,��6',� )�#&�9�9�-C�#D�3:�=�#(� )��v )�!� �!�� #�/��	�	�+�.�/�s�:y�6x4�'Az5�{�57|�|>�%}%�6~�~7�8A="�"A@
�54A@�4 y�z�y�z�	z�$$z�z�z�z�z2�5 {�{�	|�%$|�|� |;�:|;�> }"�!}"�% ~	�~	�$~4�3~4�7$��"$A@
�@	A@
�@
	A@�@A@�@A@?�@>A@?r�)r�r�r�rrLrJrLrHr�r��s��UZ�AE�6�A#rLr�)4r2r�os.path�structrr�	threading�iorr��base.g�
base.codes�baserrrr�prntr	r��
import_extr�ctypesr�ctypes.util�util�cu�ImportErrorr&r,r3�version_info�bufferrSr�r�r��GET_FAX_LOG_ENTRYr�rt�CLEAR_FAX_STATUSr�r�r�r�r��TTI_NONE�TTI_PREPENDED_TO_IMAGE�TTI_OVERLAYED_ON_IMAGErrr�r�rJrLrH�<module>rbs��.�	��
�������*�*����5���J�'������
���A��!��� 0� 0�� 3�a� 7��J��
�����������������
��
����
������h�y�h�^K#�=�K#��[���I�I�K�L��C�H�H�Q�K��s�C�(C/�.C/

Zerion Mini Shell 1.0