1
0
mirror of https://github.com/gryf/wicd.git synced 2026-02-23 02:25:48 +01:00

Implemented rfkill support (LP: #293727)

This commit is contained in:
David Paleino
2011-09-18 10:31:15 +02:00
parent bda00d0627
commit c86cffd67e
6 changed files with 76 additions and 2 deletions

View File

@@ -1025,6 +1025,16 @@ class WirelessDaemon(dbus.service.Object):
status = self.wifi.GetKillSwitchStatus()
return status
@dbus.service.method('org.wicd.daemon.wireless')
def SwitchRfKill(self):
""" Switches the rfkill on/off for wireless cards. """
return self.wifi.SwitchRfKill()
@dbus.service.method('org.wicd.daemon.wireless')
def GetRfKillEnabled(self):
""" Returns true if rfkill switch is enabled. """
return self.wifi.GetRfKillStatus()
@dbus.service.method('org.wicd.daemon.wireless')
def GetWirelessProperty(self, networkid, property):
""" Retrieves wireless property from the network specified """