Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
2768:4a5cdf975bb3 | 2769:bf2d80abf76e |
---|---|
330 * Queries Audacious about it's skin. | 330 * Queries Audacious about it's skin. |
331 * | 331 * |
332 * Return value: A path to the currently selected skin. | 332 * Return value: A path to the currently selected skin. |
333 **/ | 333 **/ |
334 gchar *audacious_remote_get_skin(DBusGProxy *proxy) { | 334 gchar *audacious_remote_get_skin(DBusGProxy *proxy) { |
335 return NULL; | |
335 } | 336 } |
336 | 337 |
337 /** | 338 /** |
338 * audacious_remote_set_skin: | 339 * audacious_remote_set_skin: |
339 * @proxy: DBus proxy for audacious | 340 * @proxy: DBus proxy for audacious |
556 * Checks to see if an Audacious server is running. | 557 * Checks to see if an Audacious server is running. |
557 * | 558 * |
558 * Return value: TRUE if yes, otherwise FALSE. | 559 * Return value: TRUE if yes, otherwise FALSE. |
559 **/ | 560 **/ |
560 gboolean audacious_remote_is_running(DBusGProxy *proxy) { | 561 gboolean audacious_remote_is_running(DBusGProxy *proxy) { |
562 return FALSE; | |
561 } | 563 } |
562 | 564 |
563 /** | 565 /** |
564 * audacious_remote_toggle_repeat: | 566 * audacious_remote_toggle_repeat: |
565 * @proxy: DBus proxy for audacious | 567 * @proxy: DBus proxy for audacious |
585 * Queries audacious about whether or not the repeat feature is active. | 587 * Queries audacious about whether or not the repeat feature is active. |
586 * | 588 * |
587 * Return value: TRUE if yes, otherwise FALSE. | 589 * Return value: TRUE if yes, otherwise FALSE. |
588 **/ | 590 **/ |
589 gboolean audacious_remote_is_repeat(DBusGProxy *proxy) { | 591 gboolean audacious_remote_is_repeat(DBusGProxy *proxy) { |
592 gboolean is_repeat; | |
593 org_atheme_audacious_repeat(proxy, &is_repeat, &error); | |
594 g_clear_error(&error); | |
595 return is_repeat; | |
590 } | 596 } |
591 | 597 |
592 /** | 598 /** |
593 * audacious_remote_is_shuffle: | 599 * audacious_remote_is_shuffle: |
594 * @proxy: DBus proxy for audacious | 600 * @proxy: DBus proxy for audacious |
596 * Queries audacious about whether or not the shuffle feature is active. | 602 * Queries audacious about whether or not the shuffle feature is active. |
597 * | 603 * |
598 * Return value: TRUE if yes, otherwise FALSE. | 604 * Return value: TRUE if yes, otherwise FALSE. |
599 **/ | 605 **/ |
600 gboolean audacious_remote_is_shuffle(DBusGProxy *proxy) { | 606 gboolean audacious_remote_is_shuffle(DBusGProxy *proxy) { |
607 gboolean is_shuffle; | |
608 org_atheme_audacious_shuffle(proxy, &is_shuffle, &error); | |
609 g_clear_error(&error); | |
610 return is_shuffle; | |
601 } | 611 } |
602 | 612 |
603 /** | 613 /** |
604 * audacious_remote_get_eq: | 614 * audacious_remote_get_eq: |
605 * @proxy: DBus proxy for audacious | 615 * @proxy: DBus proxy for audacious |
728 * Queries audacious about the playqueue's length. | 738 * Queries audacious about the playqueue's length. |
729 * | 739 * |
730 * Return value: The number of entries in the playqueue. | 740 * Return value: The number of entries in the playqueue. |
731 **/ | 741 **/ |
732 gint audacious_remote_get_playqueue_length(DBusGProxy *proxy) { | 742 gint audacious_remote_get_playqueue_length(DBusGProxy *proxy) { |
743 gint len = 0; | |
744 // this returns the lenght of the playlist, NOT the length of the playqueue | |
745 org_atheme_audacious_length(proxy, &len, &error); | |
746 g_clear_error(&error); | |
747 return len; | |
733 } | 748 } |
734 | 749 |
735 /** | 750 /** |
736 * audacious_remote_toggle_advance: | 751 * audacious_remote_toggle_advance: |
737 * @proxy: DBus proxy for audacious | 752 * @proxy: DBus proxy for audacious |
738 * | 753 * |
739 * Tells audacious to toggle the no-playlist-advance feature. | 754 * Tells audacious to toggle the no-playlist-advance feature. |
740 **/ | 755 **/ |
741 void audacious_remote_toggle_advance(DBusGProxy *proxy) { | 756 void audacious_remote_toggle_advance(DBusGProxy *proxy) { |
757 org_atheme_audacious_toggle_auto_advance(proxy, &error); | |
758 g_clear_error(&error); | |
742 } | 759 } |
743 | 760 |
744 /** | 761 /** |
745 * audacious_remote_is_advance: | 762 * audacious_remote_is_advance: |
746 * @proxy: DBus proxy for audacious | 763 * @proxy: DBus proxy for audacious |
748 * Queries audacious about whether or not the no-playlist-advance feature is active. | 765 * Queries audacious about whether or not the no-playlist-advance feature is active. |
749 * | 766 * |
750 * Return value: TRUE if yes, otherwise FALSE. | 767 * Return value: TRUE if yes, otherwise FALSE. |
751 **/ | 768 **/ |
752 gboolean audacious_remote_is_advance(DBusGProxy *proxy) { | 769 gboolean audacious_remote_is_advance(DBusGProxy *proxy) { |
770 gboolean is_advance; | |
771 org_atheme_audacious_auto_advance(proxy, &is_advance, &error); | |
772 g_clear_error(&error); | |
773 return is_advance; | |
753 } | 774 } |
754 | 775 |
755 /** | 776 /** |
756 * audacious_remote_activate: | 777 * audacious_remote_activate: |
757 * @proxy: DBus proxy for audacious | 778 * @proxy: DBus proxy for audacious |