From 60cd7ac64849bfc21be1a85063f5730ad22f9d72 Mon Sep 17 00:00:00 2001 From: charles kerr Date: Sun, 20 Dec 2015 15:42:57 -0600 Subject: always keep volume-control's 'stream' property updated --- src/volume-control.vala | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/volume-control.vala') diff --git a/src/volume-control.vala b/src/volume-control.vala index 53e4336..d13bf31 100644 --- a/src/volume-control.vala +++ b/src/volume-control.vala @@ -40,6 +40,13 @@ public abstract class VolumeControl : Object CALL_MODE } + public enum Stream { + ALERT, + MULTIMEDIA, + ALARM, + PHONE + } + public class Volume : Object { public double volume; public VolumeReasons reason; @@ -51,7 +58,7 @@ public abstract class VolumeControl : Object _options = options; } - public virtual string stream { get { return ""; } } + public Stream active_stream { get; protected set; default = Stream.ALERT; } public bool ready { get; protected set; default = false; } public virtual bool active_mic { get { return false; } set { } } public virtual bool mute { get { return false; } } -- cgit v1.2.3