Mercurial > audlegacy
diff src/libaudclient/audctrl.c @ 2769:bf2d80abf76e trunk
[svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
author | magma |
---|---|
date | Sun, 13 May 2007 18:38:53 -0700 |
parents | 55dc022c405a |
children | 182aa34ae6c4 |
line wrap: on
line diff
--- a/src/libaudclient/audctrl.c Sun May 13 11:57:18 2007 -0700 +++ b/src/libaudclient/audctrl.c Sun May 13 18:38:53 2007 -0700 @@ -332,6 +332,7 @@ * Return value: A path to the currently selected skin. **/ gchar *audacious_remote_get_skin(DBusGProxy *proxy) { + return NULL; } /** @@ -558,6 +559,7 @@ * Return value: TRUE if yes, otherwise FALSE. **/ gboolean audacious_remote_is_running(DBusGProxy *proxy) { + return FALSE; } /** @@ -587,6 +589,10 @@ * Return value: TRUE if yes, otherwise FALSE. **/ gboolean audacious_remote_is_repeat(DBusGProxy *proxy) { + gboolean is_repeat; + org_atheme_audacious_repeat(proxy, &is_repeat, &error); + g_clear_error(&error); + return is_repeat; } /** @@ -598,6 +604,10 @@ * Return value: TRUE if yes, otherwise FALSE. **/ gboolean audacious_remote_is_shuffle(DBusGProxy *proxy) { + gboolean is_shuffle; + org_atheme_audacious_shuffle(proxy, &is_shuffle, &error); + g_clear_error(&error); + return is_shuffle; } /** @@ -730,6 +740,11 @@ * Return value: The number of entries in the playqueue. **/ gint audacious_remote_get_playqueue_length(DBusGProxy *proxy) { + gint len = 0; + // this returns the lenght of the playlist, NOT the length of the playqueue + org_atheme_audacious_length(proxy, &len, &error); + g_clear_error(&error); + return len; } /** @@ -739,6 +754,8 @@ * Tells audacious to toggle the no-playlist-advance feature. **/ void audacious_remote_toggle_advance(DBusGProxy *proxy) { + org_atheme_audacious_toggle_auto_advance(proxy, &error); + g_clear_error(&error); } /** @@ -750,6 +767,10 @@ * Return value: TRUE if yes, otherwise FALSE. **/ gboolean audacious_remote_is_advance(DBusGProxy *proxy) { + gboolean is_advance; + org_atheme_audacious_auto_advance(proxy, &is_advance, &error); + g_clear_error(&error); + return is_advance; } /**