
    |~g                     V    d dl Z d dlmZ d dlmZ d dlmZmZ d dlm	Z	  G d de      Z
y)    N)BluezDBusException)Base)GObjectGLib)GSignalsc            	            e Zd ZU dej                  j
                  deffiZee	d<   dZ
dZd fdZdded	ed
eddfdZdeddfdZ xZS )Clientsession-failedN__gsignals__zorg.bluez.obex.Client1z/org/bluez/obexreturnc                 :    t         |   | j                         y )N)obj_path)super__init__	_obj_path)self	__class__s    ;/usr/lib/python3/dist-packages/blueman/bluez/obex/Client.pyr   zClient.__init__   s    $..1    	dest_addrsource_addrpatternc                     dt         dd ffd}dt        dd f fd}t        j                  d      }t        j                  d      }t        j                  d||df      } j	                  d	|||
       y )Nsession_pathr   c           	      F    t        j                   d d d|         y N logginginfo)r   r   r   r   s    r   on_session_createdz1Client.create_session.<locals>.on_session_created   s&    LLI;a}AgYa~NOr   errorc           	      j    t        j                   d d d|         j                  d|        y )Nr   r
   )r   r"   emit)r"   r   r   r   r   s    r   on_session_failedz0Client.create_session.<locals>.on_session_failed   s5    MMYKqQwiqHIII&.r   sz(sa{sv}))SourceTargetCreateSessionreply_handlererror_handler)strr   r   Variant_call)	r   r   r   r   r!   r%   v_source_addr	v_patternparams	   ````     r   create_sessionzClient.create_session   s    	PS 	PT 	P	/%7 	/D 	/ 	/ S+6LLg.	Z)Yb5c)de

?E9K[l
mr   r   c                     dfd}dt         dd ffd}t        j                  df      }| j                  d|||       y )	Nr   c                  0    t        j                          y )Nr   )r   s   r   on_session_removedz1Client.remove_session.<locals>.on_session_removed#   s    LL&r   r"   c                 :    t        j                   d|         y r   )r   r"   )r"   r   s    r   on_session_remove_failedz7Client.remove_session.<locals>.on_session_remove_failed&   s    MM\N!E734r   z(o)RemoveSessionr*   r   N)r   r   r.   r/   )r   r   r6   r8   r2   s    `   r   remove_sessionzClient.remove_session"   sK    	'	5,> 	54 	5 U\O4

?E9K!9 	 	;r   r:   )z00:00:00:00:00:00opp)__name__
__module____qualname__r   SignalFlagsNO_HOOKSobjectr   r   __annotations___interface_namer   r   r-   r3   r;   __classcell__)r   s   @r   r	   r	   
   sw    7..77yIL(  /O!I2n n# n^a nnr n	;3 	;4 	;r   r	   )r   blueman.bluez.errorsr   blueman.bluez.obex.Baser   gi.repositoryr   r   blueman.bluemantypingr   r	    r   r   <module>rK      s      3 ( ' *!;T !;r   