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

« back to all changes in this revision

Viewing changes to shell/rb-playlist-manager.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
1
/*
2
2
 *  arch-tag: Header for Rhythmbox playlist management object
3
3
 *
4
 
 *  Copyright (C) 2003 Colin Walters <walters@verbum.org>
 
4
 *  Copyright (C) 2003,2004 Colin Walters <walters@verbum.org>
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
22
22
#ifndef __RB_PLAYLIST_MANAGER_H
23
23
#define __RB_PLAYLIST_MANAGER_H
24
24
 
25
 
#include <bonobo/bonobo-ui-util.h>
26
25
#include "rb-source.h"
27
26
#include "rhythmdb.h"
28
27
#include "rb-sourcelist.h"
38
37
#define RB_IS_PLAYLIST_MANAGER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_PLAYLIST_MANAGER))
39
38
#define RB_PLAYLIST_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_PLAYLIST_MANAGER, RBPlaylistManagerClass))
40
39
 
 
40
typedef enum
 
41
{
 
42
        RB_PLAYLIST_MANAGER_ERROR_PARSE
 
43
} RBPlaylistManagerError;
 
44
 
 
45
#define RB_PLAYLIST_MANAGER_ERROR rb_playlist_manager_error_quark ()
 
46
 
 
47
GQuark rb_playlist_manager_error_quark (void);
 
48
 
41
49
typedef struct RBPlaylistManagerPrivate RBPlaylistManagerPrivate;
42
50
 
43
51
typedef struct
53
61
 
54
62
        /* signals */
55
63
        void    (*playlist_added) (RBSource *source);
 
64
        void    (*playlist_created) (RBSource *source);
56
65
        void    (*load_start) (void);
57
66
        void    (*load_finish) (void);
58
67
} RBPlaylistManagerClass;
59
68
 
60
69
GType                   rb_playlist_manager_get_type    (void);
61
70
 
62
 
RBPlaylistManager *     rb_playlist_manager_new         (BonoboUIComponent *component, GtkWindow *window,
63
 
                                                         RhythmDB *db, RBSourceList *sourcelist,
 
71
RBPlaylistManager *     rb_playlist_manager_new         (RBShell *shell,
 
72
                                                         RBSourceList *sourcelist,
64
73
                                                         RBLibrarySource *libsource,
65
74
                                                         RBIRadioSource *iradio_source);
66
75
 
67
 
const char *            rb_playlist_manager_parse_file  (RBPlaylistManager *mgr,
68
 
                                                         const char *uri);
 
76
gboolean                rb_playlist_manager_parse_file  (RBPlaylistManager *mgr,
 
77
                                                         const char *uri,
 
78
                                                         GError **error);
69
79
 
70
80
void                    rb_playlist_manager_set_source  (RBPlaylistManager *mgr,
71
81
                                                         RBSource *player);
79
89
RBSource *              rb_playlist_manager_new_playlist (RBPlaylistManager *mgr,
80
90
                                                          const char *suggested_name,
81
91
                                                          gboolean automatic);
 
92
GList *                 rb_playlist_manager_get_playlists (RBPlaylistManager *manager);
82
93
 
83
94
G_END_DECLS
84
95