o
    \c                     @   s~   d dl m Z d dlmZmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZmZ d dlmZ d dlmZ G d	d
 d
e
eZdS )    )gettext)CallableUnion)GLib)Service)AppletPlugin)NMDUNConnectionNMConnectionError)DIALUP_NET_SVCLASS_ID)ServiceConnectHandlerc                	   @   s   e Zd ZddgZdgZdZdZedZdZ	de
d	eg d
f deeeejf gd
f defddZde
d	eg d
f deeeejf gd
f defddZd
S )NMDUNSupport
StatusIconDBusService
PPPSupportzmodem-symbolicinfiritzRProvides support for Dial Up Networking (DUN) with ModemManager and NetworkManager   serviceokNerrreturnc                 C   &   t |jkrdS t|||}|  dS NFT)r
   
short_uuidr   activateselfr   r   r   conn r   E/usr/lib/python3/dist-packages/blueman/plugins/applet/NMDUNSupport.pyservice_connect_handler   
   
z$NMDUNSupport.service_connect_handlerc                 C   r   r   )r
   r   r   
deactivater   r   r   r   service_disconnect_handler   r    z'NMDUNSupport.service_disconnect_handler)__name__
__module____qualname____depends____conflicts____icon__
__author_____description____priority__r   r   r   r	   r   Errorboolr   r"   r   r   r   r   r      s"    

r   N)r   r*   typingr   r   gi.repositoryr   blueman.Servicer   blueman.plugins.AppletPluginr   blueman.main.NetworkManagerr   r	   blueman.Sdpr
   "blueman.plugins.applet.DBusServicer   r   r   r   r   r   <module>   s    