2 * Copyright (C) 2002 Jorn Baayen <jorn@nl.linux.org>
3 * Copyright (C) 2003,2004 Colin Walters <walters@redhat.com>
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; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22 * Header for static playlist class
25 #ifndef __RB_STATIC_PLAYLIST_SOURCE_H
26 #define __RB_STATIC_PLAYLIST_SOURCE_H
28 #include "rb-playlist-source.h"
33 #define RB_TYPE_STATIC_PLAYLIST_SOURCE (rb_static_playlist_source_get_type ())
34 #define RB_STATIC_PLAYLIST_SOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_STATIC_PLAYLIST_SOURCE, RBStaticPlaylistSource))
35 #define RB_STATIC_PLAYLIST_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_STATIC_PLAYLIST_SOURCE, RBStaticPlaylistSourceClass))
36 #define RB_IS_STATIC_PLAYLIST_SOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_STATIC_PLAYLIST_SOURCE))
37 #define RB_IS_STATIC_PLAYLIST_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_STATIC_PLAYLIST_SOURCE))
38 #define RB_STATIC_PLAYLIST_SOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_STATIC_PLAYLIST_SOURCE, RBStaticPlaylistSourceClass))
42 RBPlaylistSource parent
;
43 } RBStaticPlaylistSource
;
47 RBPlaylistSourceClass parent
;
48 } RBStaticPlaylistSourceClass
;
50 GType
rb_static_playlist_source_get_type (void);
52 RBSource
* rb_static_playlist_source_new (RBShell
*shell
,
55 RhythmDBEntryType entry_type
);
57 RBSource
* rb_static_playlist_source_new_from_xml (RBShell
*shell
,
59 void rb_static_playlist_source_load_from_xml (RBStaticPlaylistSource
*source
,
62 void rb_static_playlist_source_add_entry (RBStaticPlaylistSource
*source
,
66 void rb_static_playlist_source_remove_entry (RBStaticPlaylistSource
*source
,
67 RhythmDBEntry
*entry
);
69 void rb_static_playlist_source_add_location (RBStaticPlaylistSource
*source
,
73 void rb_static_playlist_source_add_locations (RBStaticPlaylistSource
*source
,
76 void rb_static_playlist_source_remove_location(RBStaticPlaylistSource
*source
,
77 const char *location
);
79 void rb_static_playlist_source_move_entry (RBStaticPlaylistSource
*source
,
84 #endif /* __RB_STATIC_PLAYLIST_SOURCE_H */