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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 #ifndef __RB_IRADIO_SOURCE_H
24 #define __RB_IRADIO_SOURCE_H
27 #include "rb-source.h"
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
;
44 RBIRadioSourcePrivate
*priv
;
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
,
64 #endif /* __RB_IRADIO_SOURCE_H */