Audacious $Id:Doxyfile42802007-03-2104:39:00Znenolod$
|
00001 /* 00002 * Audacious: A cross-platform multimedia player 00003 * Copyright (c) 2007 Ben Tucker 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; under version 2 of the License. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 * 02110-1301, USA. 00018 */ 00019 00020 #ifndef AUDACIOUS_AUDCTRL_H 00021 #define AUDACIOUS_AUDCTRL_H 00022 00023 #include <glib.h> 00024 #include <dbus/dbus-glib.h> 00025 00026 G_BEGIN_DECLS 00027 00028 void audacious_remote_playlist(DBusGProxy *proxy, gchar **list, gint num, 00029 gboolean enqueue); 00030 gchar *audacious_remote_get_version(DBusGProxy *proxy); 00031 void audacious_remote_playlist_add(DBusGProxy *proxy, GList *list); 00032 void audacious_remote_playlist_delete(DBusGProxy *proxy, guint pos); 00033 void audacious_remote_play(DBusGProxy *proxy); 00034 void audacious_remote_pause(DBusGProxy *proxy); 00035 void audacious_remote_stop(DBusGProxy *proxy); 00036 gboolean audacious_remote_is_playing(DBusGProxy *proxy); 00037 gboolean audacious_remote_is_paused(DBusGProxy *proxy); 00038 gint audacious_remote_get_playlist_pos(DBusGProxy *proxy); 00039 void audacious_remote_set_playlist_pos(DBusGProxy *proxy, guint pos); 00040 gint audacious_remote_get_playlist_length(DBusGProxy *proxy); 00041 void audacious_remote_playlist_clear(DBusGProxy *proxy); 00042 gint audacious_remote_get_output_time(DBusGProxy *proxy); 00043 void audacious_remote_jump_to_time(DBusGProxy *proxy, guint pos); 00044 void audacious_remote_get_volume(DBusGProxy *proxy, gint *vl, gint *vr); 00045 gint audacious_remote_get_main_volume(DBusGProxy *proxy); 00046 gint audacious_remote_get_balance(DBusGProxy *proxy); 00047 void audacious_remote_set_volume(DBusGProxy *proxy, gint vl, gint vr); 00048 void audacious_remote_set_main_volume(DBusGProxy *proxy, gint v); 00049 void audacious_remote_set_balance(DBusGProxy *proxy, gint b); 00050 gchar *audacious_remote_get_skin(DBusGProxy *proxy); 00051 void audacious_remote_set_skin(DBusGProxy *proxy, gchar *skinfile); 00052 gchar *audacious_remote_get_playlist_file(DBusGProxy *proxy, guint pos); 00053 gchar *audacious_remote_get_playlist_title(DBusGProxy *proxy, guint pos); 00054 gint audacious_remote_get_playlist_time(DBusGProxy *proxy, guint pos); 00055 void audacious_remote_get_info(DBusGProxy *proxy, gint *rate, gint *freq, 00056 gint *nch); 00057 void audacious_remote_main_win_toggle(DBusGProxy *proxy, gboolean show); 00058 void audacious_remote_pl_win_toggle(DBusGProxy *proxy, gboolean show); 00059 void audacious_remote_eq_win_toggle(DBusGProxy *proxy, gboolean show); 00060 gboolean audacious_remote_is_main_win(DBusGProxy *proxy); 00061 gboolean audacious_remote_is_pl_win(DBusGProxy *proxy); 00062 gboolean audacious_remote_is_eq_win(DBusGProxy *proxy); 00063 void audacious_remote_show_prefs_box(DBusGProxy *proxy); 00064 void audacious_remote_toggle_aot(DBusGProxy *proxy, gboolean ontop); 00065 void audacious_remote_eject(DBusGProxy *proxy); 00066 void audacious_remote_playlist_prev(DBusGProxy *proxy); 00067 void audacious_remote_playlist_next(DBusGProxy *proxy); 00068 void audacious_remote_playlist_add_url_string(DBusGProxy *proxy, 00069 gchar *string); 00070 gboolean audacious_remote_is_running(DBusGProxy *proxy); 00071 void audacious_remote_toggle_repeat(DBusGProxy *proxy); 00072 void audacious_remote_toggle_shuffle(DBusGProxy *proxy); 00073 gboolean audacious_remote_is_repeat(DBusGProxy *proxy); 00074 gboolean audacious_remote_is_shuffle(DBusGProxy *proxy); 00075 void audacious_remote_get_eq(DBusGProxy *proxy, gdouble *preamp, 00076 GArray **bands); 00077 gdouble audacious_remote_get_eq_preamp(DBusGProxy *proxy); 00078 gdouble audacious_remote_get_eq_band(DBusGProxy *proxy, gint band); 00079 void audacious_remote_set_eq(DBusGProxy *proxy, gdouble preamp, 00080 GArray *bands); 00081 void audacious_remote_set_eq_preamp(DBusGProxy *proxy, gdouble preamp); 00082 void audacious_remote_set_eq_band(DBusGProxy *proxy, gint band, 00083 gdouble value); 00084 00085 /* Added in XMMS 1.2.1 */ 00086 void audacious_remote_quit(DBusGProxy *proxy); 00087 00088 /* Added in XMMS 1.2.6 */ 00089 void audacious_remote_play_pause(DBusGProxy *proxy); 00090 void audacious_remote_playlist_ins_url_string(DBusGProxy *proxy, 00091 gchar *string, guint pos); 00092 00093 /* Added in XMMS 1.2.11 */ 00094 void audacious_remote_playqueue_add(DBusGProxy *proxy, guint pos); 00095 void audacious_remote_playqueue_remove(DBusGProxy *proxy, guint pos); 00096 gint audacious_remote_get_playqueue_length(DBusGProxy *proxy); 00097 void audacious_remote_toggle_advance(DBusGProxy *proxy); 00098 gboolean audacious_remote_is_advance(DBusGProxy *proxy); 00099 00100 /* Added in BMP 0.9.7 */ 00101 void audacious_remote_activate(DBusGProxy *proxy); 00102 00103 /* Added in Audacious 1.1 */ 00104 void audacious_remote_show_jtf_box(DBusGProxy *proxy); 00105 void audacious_remote_playqueue_clear(DBusGProxy *proxy); 00106 gboolean audacious_remote_playqueue_is_queued(DBusGProxy *proxy, guint pos); 00107 gint audacious_remote_get_playqueue_list_position(DBusGProxy *proxy, guint qpos); 00108 gint audacious_remote_get_playqueue_queue_position(DBusGProxy *proxy, guint pos); 00109 00110 /* Added in Audacious 1.2 */ 00111 void audacious_set_session_uri(DBusGProxy *proxy, gchar *uri); 00112 gchar *audacious_get_session_uri(DBusGProxy *proxy); 00113 void audacious_set_session_type(DBusGProxy *proxy, gint type); 00114 00115 /* Added in Audacious 1.3 */ 00116 void audacious_remote_playlist_enqueue_to_temp(DBusGProxy *proxy, 00117 gchar *string); 00118 gchar *audacious_get_tuple_field_data(DBusGProxy *proxy, gchar *field, 00119 guint pos); 00120 /* Added in Audacious 1.4 */ 00121 void audacious_remote_show_about_box(DBusGProxy *proxy); 00122 void audacious_remote_toggle_about_box(DBusGProxy *proxy, gboolean show); 00123 void audacious_remote_toggle_jtf_box(DBusGProxy *proxy, gboolean show); 00124 void audacious_remote_toggle_prefs_box(DBusGProxy *proxy, gboolean show); 00125 void audacious_remote_toggle_filebrowser(DBusGProxy *proxy, gboolean show); 00126 void audacious_remote_eq_activate(DBusGProxy *proxy, gboolean active); 00127 00128 /* Added in Audacious 1.9 */ 00129 gchar **audacious_remote_get_tuple_fields(DBusGProxy *proxy); 00130 00131 /* Added in Audacious 2.3 */ 00132 void audacious_remote_playlist_open_list (DBusGProxy * proxy, GList * list); 00133 void audacious_remote_playlist_open_list_to_temp (DBusGProxy * proxy, GList * 00134 list); 00135 00136 /* Added in Audacious 2.4 */ 00137 gchar *audacious_remote_playlist_get_active_name(DBusGProxy *proxy); 00138 00139 G_END_DECLS 00140 00141 #endif /* AUDACIOUS_AUDCTRL_H */