2006-08-04 James Livingston <doclivingston@gmail.com>
[rhythmbox.git] / sources / rb-iradio-source.h
blob1013d47b3c14858641a276e65301365985c9bd82
1 /*
2 * arch-tag: Header for Internet Radio source object
4 * Copyright (C) 2002 Jorn Baayen <jorn@nl.linux.org>
5 * Copyright (C) 2002,2003 Colin Walters <walters@debian.org>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef __RB_IRADIO_SOURCE_H
24 #define __RB_IRADIO_SOURCE_H
26 #include "rb-shell.h"
27 #include "rb-source.h"
29 G_BEGIN_DECLS
31 #define RB_TYPE_IRADIO_SOURCE (rb_iradio_source_get_type ())
32 #define RB_IRADIO_SOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_IRADIO_SOURCE, RBIRadioSource))
33 #define RB_IRADIO_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_IRADIO_SOURCE, RBIRadioSourceClass))
34 #define RB_IS_IRADIO_SOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_IRADIO_SOURCE))
35 #define RB_IS_IRADIO_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_IRADIO_SOURCE))
36 #define RB_IRADIO_SOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_IRADIO_SOURCE, RBIRadioSourceClass))
38 typedef struct RBIRadioSourcePrivate RBIRadioSourcePrivate;
40 typedef struct
42 RBSource parent;
44 RBIRadioSourcePrivate *priv;
45 } RBIRadioSource;
47 typedef struct
49 RBSourceClass parent;
50 } RBIRadioSourceClass;
52 GType rb_iradio_source_get_type (void);
54 RBSource * rb_iradio_source_new (RBShell *shell);
56 void rb_iradio_source_add_station (RBIRadioSource *source,
57 const char *uri, const char *title, const char *genre);
59 void rb_iradio_source_add_from_playlist (RBIRadioSource *source,
60 const char *uri);
62 G_END_DECLS
64 #endif /* __RB_IRADIO_SOURCE_H */