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:
@@ -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 """
|
||||
|
||||
Reference in New Issue
Block a user