1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
3 * arch-tag: Header for playlist recorder object
5 * Copyright (C) 2002 Jorn Baayen <jorn@nl.linux.org>
6 * Copyright (C) 2003,2004 Colin Walters <walters@redhat.com>
7 * Copyright (C) 2004 William Jon McCann <mccann@jhu.edu>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
25 #ifndef __RB_PLAYLIST_SOURCE_RECORDER_H
26 #define __RB_PLAYLIST_SOURCE_RECORDER_H
30 #define RB_TYPE_PLAYLIST_SOURCE_RECORDER (rb_playlist_source_recorder_get_type ())
31 #define RB_PLAYLIST_SOURCE_RECORDER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_PLAYLIST_SOURCE_RECORDER, RBPlaylistSourceRecorder))
32 #define RB_PLAYLIST_SOURCE_RECORDER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_PLAYLIST_SOURCE_RECORDER, RBPlaylistSourceRecorderClass))
33 #define RB_IS_PLAYLIST_SOURCE_RECORDER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_PLAYLIST_SOURCE_RECORDER))
34 #define RB_IS_PLAYLIST_SOURCE_RECORDER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_PLAYLIST_SOURCE_RECORDER))
35 #define RB_PLAYLIST_SOURCE_RECORDER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_PLAYLIST_SOURCE_RECORDER, RBPlaylistSourceRecorderClass))
37 typedef struct RBPlaylistSourceRecorderPrivate RBPlaylistSourceRecorderPrivate
;
42 RBPlaylistSourceRecorderPrivate
*priv
;
43 } RBPlaylistSourceRecorder
;
47 GtkDialogClass parent_class
;
48 } RBPlaylistSourceRecorderClass
;
50 typedef gboolean (*RBPlaylistSourceIterFunc
) (GtkTreeModel
*model
,
57 GType
rb_playlist_source_recorder_get_type (void);
59 GtkWidget
* rb_playlist_source_recorder_new (GtkWidget
*parent
,
63 void rb_playlist_source_recorder_set_name (RBPlaylistSourceRecorder
*recorder
,
66 gboolean
rb_playlist_source_recorder_add_from_model (RBPlaylistSourceRecorder
*recorder
,
68 RBPlaylistSourceIterFunc func
,
70 void rb_playlist_source_recorder_add_uri (RBPlaylistSourceRecorder
*recorder
,
73 void rb_playlist_source_recorder_start (RBPlaylistSourceRecorder
*recorder
,
75 void rb_playlist_source_recorder_stop (RBPlaylistSourceRecorder
*recorder
,
80 #endif /* __RB_PLAYLIST_SOURCE_RECORDER_H */