%PDF- %PDF-
Direktori : /usr/share/hplip/fax/__pycache__/ |
Current File : //usr/share/hplip/fax/__pycache__/soapfax.cpython-312.pyc |
� = f�q � � � d dl Z d dlZd dlZd dlmZ d dlmZmZmZ d dl Z d dl � d dl� d dlm Z mZmZmZ ddl� d dlmZ d dlmZ e j* d e j, � ZdZd ZdZd ZdZdZd ZdZd Z dZ! G d� de"� Z# G d� de$� Z%y)� N)�BytesIO)�urllib2_request� urllib2_parse� urllib2_error)�*)�device�utils�codes�dime� )�PY3)� to_bytes_utf8zHTTP/\d.\d\s(\d+)� � �� i� i� c �z � e Zd Zdddedfd�Zd� Zd� Zd� Zd� Z e ee� Z d� Zd � Z e ee� Z d � Z dd�Zy) � SOAPFaxDeviceNFc � � t j | |||||� d | _ d | _ | j dk( r| j | _ y d| _ y )N�net� localhost)� FaxDevice�__init__�send_fax_thread�upload_log_thread�bus�host� http_host)�self� device_uri�printer_name�callback�fax_type�disable_dbuss �/usr/share/hplip/fax/soapfax.pyr zSOAPFaxDevice.__init__B sQ � � ���4��'�#�X�'� )� $���!%����8�8�u��!�Y�Y�D�N�(�D�N� c � � y)NF� )r s r$ �isAuthRequiredzSOAPFaxDevice.isAuthRequiredT s � �r% c � � g }t |j � � D ]v \ }}t r3|j |�dt j t |� � ��� �?|j |�dt j |j d� � ��� �x dj |� }t j |� d|| j t |� |fz }t j |� | j |j d� � t � }| j! d|d�� r | j! d|d�� r�|j# � }t j |� | j% � t&