00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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 gboolean audacious_remote_is_main_win(DBusGProxy *proxy);
00059 void audacious_remote_show_prefs_box(DBusGProxy *proxy);
00060 void audacious_remote_toggle_aot(DBusGProxy *proxy, gboolean ontop);
00061 void audacious_remote_eject(DBusGProxy *proxy);
00062 void audacious_remote_playlist_prev(DBusGProxy *proxy);
00063 void audacious_remote_playlist_next(DBusGProxy *proxy);
00064 void audacious_remote_playlist_add_url_string(DBusGProxy *proxy,
00065 gchar *string);
00066 gboolean audacious_remote_is_running(DBusGProxy *proxy);
00067 void audacious_remote_toggle_repeat(DBusGProxy *proxy);
00068 void audacious_remote_toggle_shuffle(DBusGProxy *proxy);
00069 gboolean audacious_remote_is_repeat(DBusGProxy *proxy);
00070 gboolean audacious_remote_is_shuffle(DBusGProxy *proxy);
00071 void audacious_remote_get_eq(DBusGProxy *proxy, gdouble *preamp,
00072 GArray **bands);
00073 gdouble audacious_remote_get_eq_preamp(DBusGProxy *proxy);
00074 gdouble audacious_remote_get_eq_band(DBusGProxy *proxy, gint band);
00075 void audacious_remote_set_eq(DBusGProxy *proxy, gdouble preamp,
00076 GArray *bands);
00077 void audacious_remote_set_eq_preamp(DBusGProxy *proxy, gdouble preamp);
00078 void audacious_remote_set_eq_band(DBusGProxy *proxy, gint band,
00079 gdouble value);
00080
00081
00082 void audacious_remote_quit(DBusGProxy *proxy);
00083
00084
00085 void audacious_remote_play_pause(DBusGProxy *proxy);
00086 void audacious_remote_playlist_ins_url_string(DBusGProxy *proxy,
00087 gchar *string, guint pos);
00088
00089
00090 void audacious_remote_playqueue_add(DBusGProxy *proxy, guint pos);
00091 void audacious_remote_playqueue_remove(DBusGProxy *proxy, guint pos);
00092 gint audacious_remote_get_playqueue_length(DBusGProxy *proxy);
00093 void audacious_remote_toggle_advance(DBusGProxy *proxy);
00094 gboolean audacious_remote_is_advance(DBusGProxy *proxy);
00095
00096
00097 void audacious_remote_show_jtf_box(DBusGProxy *proxy);
00098 void audacious_remote_playqueue_clear(DBusGProxy *proxy);
00099 gboolean audacious_remote_playqueue_is_queued(DBusGProxy *proxy, guint pos);
00100 gint audacious_remote_get_playqueue_list_position(DBusGProxy *proxy, guint qpos);
00101 gint audacious_remote_get_playqueue_queue_position(DBusGProxy *proxy, guint pos);
00102
00103
00104 void audacious_set_session_uri(DBusGProxy *proxy, gchar *uri);
00105 gchar *audacious_get_session_uri(DBusGProxy *proxy);
00106 void audacious_set_session_type(DBusGProxy *proxy, gint type);
00107
00108
00109 void audacious_remote_playlist_enqueue_to_temp(DBusGProxy *proxy,
00110 gchar *string);
00111 gchar *audacious_get_tuple_field_data(DBusGProxy *proxy, gchar *field,
00112 guint pos);
00113
00114 void audacious_remote_show_about_box(DBusGProxy *proxy);
00115 void audacious_remote_toggle_about_box(DBusGProxy *proxy, gboolean show);
00116 void audacious_remote_toggle_jtf_box(DBusGProxy *proxy, gboolean show);
00117 void audacious_remote_toggle_prefs_box(DBusGProxy *proxy, gboolean show);
00118 void audacious_remote_toggle_filebrowser(DBusGProxy *proxy, gboolean show);
00119 void audacious_remote_eq_activate(DBusGProxy *proxy, gboolean active);
00120
00121
00122 gchar **audacious_remote_get_tuple_fields(DBusGProxy *proxy);
00123
00124
00125 void audacious_remote_playlist_open_list (DBusGProxy * proxy, GList * list);
00126 void audacious_remote_playlist_open_list_to_temp (DBusGProxy * proxy, GList *
00127 list);
00128
00129
00130 gchar *audacious_remote_playlist_get_active_name(DBusGProxy *proxy);
00131
00132 G_END_DECLS
00133
00134 #endif