
    |~g>                     >    d dl mZ d dlmZ d dlmZ  G d de      Zy)    )Callable)PPPConnection)MechanismPluginc                       e Zd ZddZdededeegdf   ddfdZdeded	eegdf   ddfd
Zde	dedededeegdf   d	eegdf   ddfdZ
y)PppreturnNc                 Z    | j                   j                  ddd| j                  dd       y )N
PPPConnect)usr   r   T)pass_senderis_async)parent
add_method_ppp_connect)selfs    ?/usr/lib/python3/dist-packages/blueman/plugins/mechanism/Ppp.pyon_loadzPpp.on_load   s)    |_c4CTCTbfquv    _pppportokc                 H     ||       | j                   j                          y Ntimerresume)r   r   r   r   s       r   _ppp_connectedzPpp._ppp_connected   s    
4

r   messageerrc                 H     ||       | j                   j                          y r   r   )r   r   r   r    s       r   
_ppp_errorzPpp._ppp_error   s    G

r   numberapncallerc                    | j                  |d       | j                  j                          t        d|d||      }|j	                  d| j
                  |       |j	                  d| j                  |       |j                          y )Nzorg.blueman.pppd.pppconnectz/dev/rfcommdzerror-occurred	connected)confirm_authorizationr   stopr   connectr"   r   connect_rfcomm)r   r   r#   r$   r%   r   r    ppps           r   r   zPpp._ppp_connect   so    ""6+HI

k$q2FC@$doos;K!4!4b9r   )r   N)__name__
__module____qualname__r   r   strr   r   r"   intr    r   r   r   r      s    w=  3%QU+AV [_ } s 3%QU+AV [_ 	 	c 	 	S 	!3%+.	5=seTk5J	OS	r   r   N)typingr   blueman.main.PPPConnectionr   blueman.plugins.MechanismPluginr   r   r3   r   r   <module>r7      s     4 ;/ r   