udapted vi.po
[rhythmbox.git] / sources / rb-playlist-source-recorder.h
blob1cceee78915b4f4578eaa3a9d214a88210313db8
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
2 /*
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
28 G_BEGIN_DECLS
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;
39 typedef struct
41 GtkDialog parent;
42 RBPlaylistSourceRecorderPrivate *priv;
43 } RBPlaylistSourceRecorder;
45 typedef struct
47 GtkDialogClass parent_class;
48 } RBPlaylistSourceRecorderClass;
50 typedef gboolean (*RBPlaylistSourceIterFunc) (GtkTreeModel *model,
51 GtkTreeIter *iter,
52 char **uri,
53 char **artist,
54 char **title,
55 gulong *duration);
57 GType rb_playlist_source_recorder_get_type (void);
59 GtkWidget * rb_playlist_source_recorder_new (GtkWidget *parent,
60 RBShell *shell,
61 const char *name);
63 void rb_playlist_source_recorder_set_name (RBPlaylistSourceRecorder *recorder,
64 const char *name,
65 GError **error);
66 gboolean rb_playlist_source_recorder_add_from_model (RBPlaylistSourceRecorder *recorder,
67 GtkTreeModel *model,
68 RBPlaylistSourceIterFunc func,
69 GError **error);
70 void rb_playlist_source_recorder_add_uri (RBPlaylistSourceRecorder *recorder,
71 const char *uri,
72 GError **error);
73 void rb_playlist_source_recorder_start (RBPlaylistSourceRecorder *recorder,
74 GError **error);
75 void rb_playlist_source_recorder_stop (RBPlaylistSourceRecorder *recorder,
76 GError **error);
78 G_END_DECLS
80 #endif /* __RB_PLAYLIST_SOURCE_RECORDER_H */