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 auto playlist class
25 #ifndef __RB_AUTO_PLAYLIST_SOURCE_H
26 #define __RB_AUTO_PLAYLIST_SOURCE_H
28 #include "rb-playlist-source.h"
32 #define RB_TYPE_AUTO_PLAYLIST_SOURCE (rb_auto_playlist_source_get_type ())
33 #define RB_AUTO_PLAYLIST_SOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_AUTO_PLAYLIST_SOURCE, RBAutoPlaylistSource))
34 #define RB_AUTO_PLAYLIST_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_AUTO_PLAYLIST_SOURCE, RBAutoPlaylistSourceClass))
35 #define RB_IS_AUTO_PLAYLIST_SOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_AUTO_PLAYLIST_SOURCE))
36 #define RB_IS_AUTO_PLAYLIST_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_AUTO_PLAYLIST_SOURCE))
37 #define RB_AUTO_PLAYLIST_SOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_AUTO_PLAYLIST_SOURCE, RBAutoPlaylistSourceClass))
41 RBPlaylistSource parent
;
42 } RBAutoPlaylistSource
;
46 RBPlaylistSourceClass parent
;
47 } RBAutoPlaylistSourceClass
;
49 GType
rb_auto_playlist_source_get_type (void);
51 RBSource
* rb_auto_playlist_source_new (RBShell
*shell
,
55 RBSource
* rb_auto_playlist_source_new_from_xml (RBShell
*shell
,
58 void rb_auto_playlist_source_set_query (RBAutoPlaylistSource
*source
,
60 RhythmDBQueryModelLimitType limit_type
,
61 GValueArray
*limit_value
,
65 void rb_auto_playlist_source_get_query (RBAutoPlaylistSource
*source
,
67 RhythmDBQueryModelLimitType
*limit_type
,
68 GValueArray
**limit_value
,
74 #endif /* __RB_AUTO_PLAYLIST_SOURCE_H */