From abc3e28dc72d9641e2ce07d0d99a23ac23e4f3b6 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 6 Dec 2013 15:36:47 +0000 Subject: add a 'connected' property as a simple hook to whether or not we have any connected bluetooth devices --- src/bluetooth.vala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bluetooth.vala') diff --git a/src/bluetooth.vala b/src/bluetooth.vala index b268701..c711e19 100644 --- a/src/bluetooth.vala +++ b/src/bluetooth.vala @@ -32,6 +32,9 @@ public interface Bluetooth: Object eg by a laptop's network killswitch */ public abstract bool enabled { get; protected set; } + /* True if we have a connected device. */ + public abstract bool connected { get; protected set; } + /* Try to enable/disable bluetooth. This can fail if it's overridden by the system, eg by a laptop's network killswitch */ public abstract void try_set_enabled (bool b); -- cgit v1.2.3