udapted vi.po
[rhythmbox.git] / sources / rb-static-playlist-source.h
blob9d9c8dc8aa6601faebae5f5cb2564615f3520385
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 static playlist class
25 #ifndef __RB_STATIC_PLAYLIST_SOURCE_H
26 #define __RB_STATIC_PLAYLIST_SOURCE_H
28 #include "rb-playlist-source.h"
29 #include "rhythmdb.h"
31 G_BEGIN_DECLS
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))
40 typedef struct
42 RBPlaylistSource parent;
43 } RBStaticPlaylistSource;
45 typedef struct
47 RBPlaylistSourceClass parent;
48 } RBStaticPlaylistSourceClass;
50 GType rb_static_playlist_source_get_type (void);
52 RBSource * rb_static_playlist_source_new (RBShell *shell,
53 const char *name,
54 gboolean local,
55 RhythmDBEntryType entry_type);
57 RBSource * rb_static_playlist_source_new_from_xml (RBShell *shell,
58 xmlNodePtr node);
59 void rb_static_playlist_source_load_from_xml (RBStaticPlaylistSource *source,
60 xmlNodePtr node);
62 void rb_static_playlist_source_add_entry (RBStaticPlaylistSource *source,
63 RhythmDBEntry *entry,
64 gint index);
66 void rb_static_playlist_source_remove_entry (RBStaticPlaylistSource *source,
67 RhythmDBEntry *entry);
69 void rb_static_playlist_source_add_location (RBStaticPlaylistSource *source,
70 const char *location,
71 gint index);
73 void rb_static_playlist_source_add_locations (RBStaticPlaylistSource *source,
74 GList *locations);
76 void rb_static_playlist_source_remove_location(RBStaticPlaylistSource *source,
77 const char *location);
79 void rb_static_playlist_source_move_entry (RBStaticPlaylistSource *source,
80 RhythmDBEntry *entry,
81 gint index);
82 G_END_DECLS
84 #endif /* __RB_STATIC_PLAYLIST_SOURCE_H */