~ubuntu-branches/ubuntu/utopic/rhythmbox/utopic-proposed

« back to all changes in this revision

Viewing changes to sources/rb-playlist-source-recorder.h

Tags: upstream-0.9.2
ImportĀ upstreamĀ versionĀ 0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
 
2
/*
 
3
 *  arch-tag: Header for playlist recorder object
 
4
 *
 
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>
 
8
 *
 
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.
 
13
 *
 
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.
 
18
 *
 
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
22
 *
 
23
 */
 
24
 
 
25
#ifndef __RB_PLAYLIST_SOURCE_RECORDER_H
 
26
#define __RB_PLAYLIST_SOURCE_RECORDER_H
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
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))
 
36
 
 
37
typedef struct RBPlaylistSourceRecorderPrivate RBPlaylistSourceRecorderPrivate;
 
38
 
 
39
typedef struct
 
40
{
 
41
        GtkDialog                        parent;
 
42
        RBPlaylistSourceRecorderPrivate *priv;
 
43
} RBPlaylistSourceRecorder;
 
44
 
 
45
typedef struct
 
46
{
 
47
        GtkDialogClass parent_class;
 
48
} RBPlaylistSourceRecorderClass;
 
49
 
 
50
typedef void (*RBPlaylistSourceIterFunc) (GtkTreeModel *model,
 
51
                                          GtkTreeIter  *iter,
 
52
                                          char        **uri,
 
53
                                          char        **artist,
 
54
                                          char        **title,
 
55
                                          gulong       *duration);
 
56
 
 
57
GType       rb_playlist_source_recorder_get_type (void);
 
58
 
 
59
GtkWidget * rb_playlist_source_recorder_new            (GtkWidget                *parent,
 
60
                                                        RBShell                  *shell,
 
61
                                                        const char               *name);
 
62
 
 
63
void        rb_playlist_source_recorder_set_name       (RBPlaylistSourceRecorder *recorder,
 
64
                                                        const char               *name,
 
65
                                                        GError                  **error);
 
66
void        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);
 
77
 
 
78
G_END_DECLS
 
79
 
 
80
#endif /* __RB_PLAYLIST_SOURCE_RECORDER_H */