aif-ng/aif/network/networkmanager.py

24 lines
539 B
Python
Raw Normal View History

2019-11-11 21:42:58 -05:00
from . import _common
_NM = _common.NM
class Connection(object):
def __init__(self, iface_xml):
self.xml = iface_xml
self.connection_type = None
self.provider_type = 'NetworkManager'
self.client = _NM.Client.new()
class Ethernet(Connection):
def __init__(self, iface_xml):
super().__init__(iface_xml)
self.connection_type = 'ethernet'
class Wireless(Connection):
def __init__(self, iface_xml):
super().__init__(iface_xml)
self.connection_type = 'wireless'