1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
from typing import Any, Dict, List
import dbus
NM_DEVICE_STATE_ACTIVATED: int
NM_DEVICE_STATE_FAILED: int
NM_DEVICE_STATE_DISCONNECTED: int
NM_DEVICE_STATE_REASON_NO_SECRETS: int
class ObjectVanished(Exception): ...
class NMDbusInterfaceType(type): ...
class NMDbusInterface(object):
object_path: dbus.ObjectPath
class Device(NMDbusInterface):
DeviceType: int
Interface: str
Ip4Address: str
ActiveConnection: Connection
@staticmethod
def SpecificDevice() -> Device: ...
@staticmethod
def Disconnect() -> None: ...
@staticmethod
def GetAllAccessPoints() -> List[AccessPoint]: ...
class Ip4Config:
Addresses: List[List[str]]
class Ip6Config:
Addresses: List[List[str]]
class Wireless(Device): ...
class NetworkManager(NMDbusInterface):
State: int
@staticmethod
def GetDevices() -> List[Device]: ...
@staticmethod
def ActivateConnection(
connection: Connection, dev: Device, path: str
) -> Connection: ...
@staticmethod
def DeactivateConnection(connection: Connection) -> Connection: ...
class Settings(NMDbusInterface):
@staticmethod
def ListConnections() -> List[Connection]: ...
@staticmethod
def ReloadConnections() -> None: ...
@staticmethod
def AddConnection(settings: Dict[str, Any]) -> None: ...
class Connection(NMDbusInterface):
uuid: str
Connection: Any
@staticmethod
def Delete() -> None: ...
@staticmethod
def GetSettings() -> Dict[str, Any]: ...
class AccessPoint(NMDbusInterface):
Strength: int
Ssid: str
Flags: int
WpaFlags: int
RsnFlags: int
|