udapted vi.po
[rhythmbox.git] / sources / rb-auto-playlist-source.h
blob0da927da804fb54fbee48fe50bee22b171252d20
1 /*
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"
30 G_BEGIN_DECLS
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))
39 typedef struct
41 RBPlaylistSource parent;
42 } RBAutoPlaylistSource;
44 typedef struct
46 RBPlaylistSourceClass parent;
47 } RBAutoPlaylistSourceClass;
49 GType rb_auto_playlist_source_get_type (void);
51 RBSource * rb_auto_playlist_source_new (RBShell *shell,
52 const char *name,
53 gboolean local);
55 RBSource * rb_auto_playlist_source_new_from_xml (RBShell *shell,
56 xmlNodePtr node);
58 void rb_auto_playlist_source_set_query (RBAutoPlaylistSource *source,
59 GPtrArray *query,
60 RhythmDBQueryModelLimitType limit_type,
61 GValueArray *limit_value,
62 const char *sort_key,
63 gint sort_order);
65 void rb_auto_playlist_source_get_query (RBAutoPlaylistSource *source,
66 GPtrArray **query,
67 RhythmDBQueryModelLimitType *limit_type,
68 GValueArray **limit_value,
69 char **sort_key,
70 gint *sort_order);
72 G_END_DECLS
74 #endif /* __RB_AUTO_PLAYLIST_SOURCE_H */