aboutsummaryrefslogtreecommitdiff
path: root/src/volume-control.vala
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-09-29 14:13:45 +0200
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-09-29 14:13:45 +0200
commita7fd579fd1bc6eb02433ccd72e9f54dca2615675 (patch)
tree43892b38a791ff60f31cbd10041539a6fcf245ba /src/volume-control.vala
parent918c9b9a95573b0dfe0e2e67ef30b998b5576e82 (diff)
downloadayatana-indicator-sound-a7fd579fd1bc6eb02433ccd72e9f54dca2615675.tar.gz
ayatana-indicator-sound-a7fd579fd1bc6eb02433ccd72e9f54dca2615675.tar.bz2
ayatana-indicator-sound-a7fd579fd1bc6eb02433ccd72e9f54dca2615675.zip
Adding the code to change the icons and label when a bluetooth headset is connected
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r--src/volume-control.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala
index 6efac35..4ef2c3e 100644
--- a/src/volume-control.vala
+++ b/src/volume-control.vala
@@ -39,6 +39,7 @@ public abstract class VolumeControl : Object
public virtual bool high_volume { get { return false; } protected set { } }
public virtual bool mute { get { return false; } }
public virtual bool is_playing { get { return false; } }
+ public virtual bool active_bluetooth_headphone { get { return false; } }
private Volume _volume;
public virtual Volume volume { get { return _volume; } set { } }
public virtual double mic_volume { get { return 0.0; } set { } }
@@ -56,4 +57,6 @@ public abstract class VolumeControl : Object
v.reason = reason;
this.volume = v;
}
+
+ public signal void bluetooth_headset_status_changed (bool bluetooth_headset_active);
}