diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-20 15:42:57 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-20 15:42:57 -0600 |
commit | 60cd7ac64849bfc21be1a85063f5730ad22f9d72 (patch) | |
tree | 33adcf048e6be17c500c2fef2ca8ac4aa37245e8 /src/volume-control.vala | |
parent | 2fedb182f5321d381821178ce10dd395113ab11b (diff) | |
download | ayatana-indicator-sound-60cd7ac64849bfc21be1a85063f5730ad22f9d72.tar.gz ayatana-indicator-sound-60cd7ac64849bfc21be1a85063f5730ad22f9d72.tar.bz2 ayatana-indicator-sound-60cd7ac64849bfc21be1a85063f5730ad22f9d72.zip |
always keep volume-control's 'stream' property updated
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r-- | src/volume-control.vala | 9 |
1 files changed, 8 insertions, 1 deletions
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; } } |