diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-10-10 21:22:41 +0000 |
---|---|---|
committer | Tarmac <> | 2013-10-10 21:22:41 +0000 |
commit | 3145f10632a3ce7ee33e8cdaa78401d7eb881f4e (patch) | |
tree | 66b1fcec7959fce24c4f2fafa935a02f34bac312 /src/bluetooth.vala | |
parent | 5165b13efd79ac2fc5bb6aa902b3ecedf84634f0 (diff) | |
parent | 0932c83d16f55832d52e06b48f40d3acd3a83692 (diff) | |
download | ayatana-indicator-bluetooth-3145f10632a3ce7ee33e8cdaa78401d7eb881f4e.tar.gz ayatana-indicator-bluetooth-3145f10632a3ce7ee33e8cdaa78401d7eb881f4e.tar.bz2 ayatana-indicator-bluetooth-3145f10632a3ce7ee33e8cdaa78401d7eb881f4e.zip |
add an action whose state shows whether or not bluetooth is supported by the hardware, used by ubuntu-system-settings. Fixes: https://bugs.launchpad.net/bugs/1233628.
Approved by Ted Gould, PS Jenkins bot.
Diffstat (limited to 'src/bluetooth.vala')
-rw-r--r-- | src/bluetooth.vala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bluetooth.vala b/src/bluetooth.vala index 98464a4..100bdf2 100644 --- a/src/bluetooth.vala +++ b/src/bluetooth.vala @@ -23,6 +23,10 @@ */ public interface Bluetooth: Object { + /* True if there are any bluetooth adapters on this system. + This work as a proxy for "does this hardware support bluetooth?" */ + public abstract bool supported { get; protected set; } + /* True if there are any bluetooth adapters powered up on the system. In short, whether or not this system's bluetooth is "on". */ public abstract bool powered { get; protected set; } @@ -68,6 +72,7 @@ public abstract class KillswitchBluetooth: Object, Bluetooth killswitch.notify["blocked"].connect (() => blocked = killswitch.blocked ); } + public bool supported { get; protected set; default = false; } public bool powered { get; protected set; default = false; } public bool discoverable { get; protected set; default = false; } public bool blocked { get; protected set; default = true; } |