Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
audctrl.h
Go to the documentation of this file.
1 /*
2  * Audacious: A cross-platform multimedia player
3  * Copyright (c) 2007 Ben Tucker
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; under version 2 of the License.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  * 02110-1301, USA.
18  */
19 
20 #ifndef AUDACIOUS_AUDCTRL_H
21 #define AUDACIOUS_AUDCTRL_H
22 
23 #include <glib.h>
24 #include <dbus/dbus-glib.h>
25 
26 G_BEGIN_DECLS
27 
28 void audacious_remote_playlist(DBusGProxy *proxy, gchar **list, gint num,
29  gboolean enqueue);
30 gchar *audacious_remote_get_version(DBusGProxy *proxy);
31 void audacious_remote_playlist_add(DBusGProxy *proxy, GList *list);
32 void audacious_remote_playlist_delete(DBusGProxy *proxy, guint pos);
33 void audacious_remote_play(DBusGProxy *proxy);
34 void audacious_remote_pause(DBusGProxy *proxy);
35 void audacious_remote_stop(DBusGProxy *proxy);
36 gboolean audacious_remote_is_playing(DBusGProxy *proxy);
37 gboolean audacious_remote_is_paused(DBusGProxy *proxy);
38 gint audacious_remote_get_playlist_pos(DBusGProxy *proxy);
39 void audacious_remote_set_playlist_pos(DBusGProxy *proxy, guint pos);
40 gint audacious_remote_get_playlist_length(DBusGProxy *proxy);
41 void audacious_remote_playlist_clear(DBusGProxy *proxy);
42 gint audacious_remote_get_output_time(DBusGProxy *proxy);
43 void audacious_remote_jump_to_time(DBusGProxy *proxy, guint pos);
44 void audacious_remote_get_volume(DBusGProxy *proxy, gint *vl, gint *vr);
45 gint audacious_remote_get_main_volume(DBusGProxy *proxy);
46 gint audacious_remote_get_balance(DBusGProxy *proxy);
47 void audacious_remote_set_volume(DBusGProxy *proxy, gint vl, gint vr);
48 void audacious_remote_set_main_volume(DBusGProxy *proxy, gint v);
49 void audacious_remote_set_balance(DBusGProxy *proxy, gint b);
50 gchar *audacious_remote_get_skin(DBusGProxy *proxy);
51 void audacious_remote_set_skin(DBusGProxy *proxy, gchar *skinfile);
52 gchar *audacious_remote_get_playlist_file(DBusGProxy *proxy, guint pos);
53 gchar *audacious_remote_get_playlist_title(DBusGProxy *proxy, guint pos);
54 gint audacious_remote_get_playlist_time(DBusGProxy *proxy, guint pos);
55 void audacious_remote_get_info(DBusGProxy *proxy, gint *rate, gint *freq,
56  gint *nch);
57 void audacious_remote_main_win_toggle(DBusGProxy *proxy, gboolean show);
58 gboolean audacious_remote_is_main_win(DBusGProxy *proxy);
59 void audacious_remote_show_prefs_box(DBusGProxy *proxy);
60 void audacious_remote_toggle_aot(DBusGProxy *proxy, gboolean ontop);
61 void audacious_remote_eject(DBusGProxy *proxy);
62 void audacious_remote_playlist_prev(DBusGProxy *proxy);
63 void audacious_remote_playlist_next(DBusGProxy *proxy);
64 void audacious_remote_playlist_add_url_string(DBusGProxy *proxy,
65  gchar *string);
66 gboolean audacious_remote_is_running(DBusGProxy *proxy);
67 void audacious_remote_toggle_repeat(DBusGProxy *proxy);
68 void audacious_remote_toggle_shuffle(DBusGProxy *proxy);
69 void audacious_remote_toggle_stop_after (DBusGProxy * proxy);
70 gboolean audacious_remote_is_repeat(DBusGProxy *proxy);
71 gboolean audacious_remote_is_shuffle(DBusGProxy *proxy);
72 gboolean audacious_remote_is_stop_after (DBusGProxy * proxy);
73 
74 void audacious_remote_get_eq(DBusGProxy *proxy, gdouble *preamp,
75  GArray **bands);
76 gdouble audacious_remote_get_eq_preamp(DBusGProxy *proxy);
77 gdouble audacious_remote_get_eq_band(DBusGProxy *proxy, gint band);
78 void audacious_remote_set_eq(DBusGProxy *proxy, gdouble preamp,
79  GArray *bands);
80 void audacious_remote_set_eq_preamp(DBusGProxy *proxy, gdouble preamp);
81 void audacious_remote_set_eq_band(DBusGProxy *proxy, gint band,
82  gdouble value);
83 
84 /* Added in XMMS 1.2.1 */
85 void audacious_remote_quit(DBusGProxy *proxy);
86 
87 /* Added in XMMS 1.2.6 */
88 void audacious_remote_play_pause(DBusGProxy *proxy);
89 void audacious_remote_playlist_ins_url_string(DBusGProxy *proxy,
90  gchar *string, guint pos);
91 
92 /* Added in XMMS 1.2.11 */
93 void audacious_remote_playqueue_add(DBusGProxy *proxy, guint pos);
94 void audacious_remote_playqueue_remove(DBusGProxy *proxy, guint pos);
95 gint audacious_remote_get_playqueue_length(DBusGProxy *proxy);
96 void audacious_remote_toggle_advance(DBusGProxy *proxy);
97 gboolean audacious_remote_is_advance(DBusGProxy *proxy);
98 
99 /* Added in Audacious 1.1 */
100 void audacious_remote_show_jtf_box(DBusGProxy *proxy);
101 void audacious_remote_playqueue_clear(DBusGProxy *proxy);
102 gboolean audacious_remote_playqueue_is_queued(DBusGProxy *proxy, guint pos);
103 gint audacious_remote_get_playqueue_list_position(DBusGProxy *proxy, guint qpos);
104 gint audacious_remote_get_playqueue_queue_position(DBusGProxy *proxy, guint pos);
105 
106 /* Added in Audacious 1.2 */
107 void audacious_set_session_uri(DBusGProxy *proxy, gchar *uri);
108 gchar *audacious_get_session_uri(DBusGProxy *proxy);
109 void audacious_set_session_type(DBusGProxy *proxy, gint type);
110 
111 /* Added in Audacious 1.3 */
112 void audacious_remote_playlist_enqueue_to_temp(DBusGProxy *proxy,
113  gchar *string);
114 gchar *audacious_get_tuple_field_data(DBusGProxy *proxy, gchar *field,
115  guint pos);
116 /* Added in Audacious 1.4 */
117 void audacious_remote_show_about_box(DBusGProxy *proxy);
118 void audacious_remote_toggle_about_box(DBusGProxy *proxy, gboolean show);
119 void audacious_remote_toggle_jtf_box(DBusGProxy *proxy, gboolean show);
120 void audacious_remote_toggle_prefs_box(DBusGProxy *proxy, gboolean show);
121 void audacious_remote_toggle_filebrowser(DBusGProxy *proxy, gboolean show);
122 void audacious_remote_eq_activate(DBusGProxy *proxy, gboolean active);
123 
124 /* Added in Audacious 1.9 */
125 gchar **audacious_remote_get_tuple_fields(DBusGProxy *proxy);
126 
127 /* Added in Audacious 2.3 */
128 void audacious_remote_playlist_open_list (DBusGProxy * proxy, GList * list);
129 void audacious_remote_playlist_open_list_to_temp (DBusGProxy * proxy, GList *
130  list);
131 
132 /* Added in Audacious 2.4 */
133 gchar *audacious_remote_playlist_get_active_name(DBusGProxy *proxy);
134 
135 G_END_DECLS
136 
137 #endif /* AUDACIOUS_AUDCTRL_H */