aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-interfaces.vala
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-03-08 22:52:10 +0100
committerRobert Tari <robert@tari.in>2021-08-04 21:42:10 +0200
commit6bf50a40c9dc25ae33878d246a74ffc5106dd4a5 (patch)
tree34045394a5fe3ffee32fe89b6b4dfb4f2087462a /src/mpris2-interfaces.vala
parentac5a42e4e9eb4693b2f79a51e401c66b1beea68b (diff)
downloadayatana-indicator-sound-6bf50a40c9dc25ae33878d246a74ffc5106dd4a5.tar.gz
ayatana-indicator-sound-6bf50a40c9dc25ae33878d246a74ffc5106dd4a5.tar.bz2
ayatana-indicator-sound-6bf50a40c9dc25ae33878d246a74ffc5106dd4a5.zip
Throw GLib.DBusError, GLib.IOError
Diffstat (limited to 'src/mpris2-interfaces.vala')
-rw-r--r--src/mpris2-interfaces.vala16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mpris2-interfaces.vala b/src/mpris2-interfaces.vala
index 250f0c5..6534741 100644
--- a/src/mpris2-interfaces.vala
+++ b/src/mpris2-interfaces.vala
@@ -28,8 +28,8 @@ public interface MprisRoot : Object {
public abstract string Identity{owned get; set;}
public abstract string DesktopEntry{owned get; set;}
// methods
- public abstract async void Quit() throws IOError;
- public abstract async void Raise() throws IOError;
+ public abstract async void Quit() throws GLib.DBusError, GLib.IOError;
+ public abstract async void Raise() throws GLib.DBusError, GLib.IOError;
}
[DBus (name = "org.mpris.MediaPlayer2.Player")]
@@ -42,10 +42,10 @@ public interface MprisPlayer : Object {
public abstract bool CanGoNext{owned get; set;}
public abstract bool CanGoPrevious{owned get; set;}
// methods
- public abstract async void PlayPause() throws IOError;
- public abstract async void Next() throws IOError;
- public abstract async void Previous() throws IOError;
- public abstract async void Seek(int64 offset) throws IOError;
+ public abstract async void PlayPause() throws GLib.DBusError, GLib.IOError;
+ public abstract async void Next() throws GLib.DBusError, GLib.IOError;
+ public abstract async void Previous() throws GLib.DBusError, GLib.IOError;
+ public abstract async void Seek(int64 offset) throws GLib.DBusError, GLib.IOError;
// signals
public signal void Seeked(int64 new_position);
}
@@ -71,11 +71,11 @@ public interface MprisPlaylists : Object {
public abstract ActivePlaylistContainer? ActivePlaylist {owned get; set;}
//methods
- public abstract async void ActivatePlaylist(ObjectPath playlist_id) throws IOError;
+ public abstract async void ActivatePlaylist(ObjectPath playlist_id) throws GLib.DBusError, GLib.IOError;
public abstract async PlaylistDetails[]? GetPlaylists ( uint32 index,
uint32 max_count,
string order,
- bool reverse_order ) throws IOError;
+ bool reverse_order ) throws GLib.DBusError, GLib.IOError;
//signals
public signal void PlaylistChanged (PlaylistDetails details);