~snaggen/rhythmbox/bpm

« back to all changes in this revision

Viewing changes to sources/rb-daap-source.h

  • Committer: Jonathan Matthew
  • Author(s): Jonathan Matthew
  • Date: 2007-01-07 12:16:12 UTC
  • Revision ID: git-v1:5b6958ea3cf24f2c8bcfa15b9cab1fc7798b7305
Moved lots of files around. Now everything should be in the directory it's

2007-01-07  Jonathan Matthew  <jonathan@kaolin.wh9.net>

        Moved lots of files around.  Now everything should be in the directory
        it's built in and all plugin-specific files should be installed into
        the plugin directory.

        * plugins/audioscrobbler/rb-audioscrobbler-plugin.c:
        (impl_create_configure_dialog):
        * plugins/audioscrobbler/rb-audioscrobbler.c:
        (rb_audioscrobbler_class_init), (rb_audioscrobbler_dispose),
        (rb_audioscrobbler_finalize),
        (rb_audioscrobbler_get_config_widget):
        * plugins/audioscrobbler/rb-audioscrobbler.h:
        Use rb_plugin_find_file where needed.

        * widgets/rb-uri-dialog.c: (rb_uri_dialog_class_init),
        (rb_uri_dialog_init), (rb_uri_dialog_finalize),
        (rb_uri_dialog_new), (rb_uri_dialog_response_cb),
        (rb_uri_dialog_text_changed):
        * widgets/rb-uri-dialog.h:
        New common 'enter a URI' dialog, used by iradio and podcast code.

        * plugins/iradio/rb-iradio-plugin.c: (impl_activate):
        * plugins/iradio/rb-iradio-source.c:
        (rb_iradio_source_constructor), (rb_iradio_source_new),
        (impl_song_properties), (rb_iradio_source_first_time_changed),
        (new_station_location_added), (rb_iradio_source_cmd_new_station):
        * plugins/iradio/rb-iradio-source.h:
        * plugins/iradio/rb-station-properties-dialog.c:
        (rb_station_properties_dialog_class_init),
        (rb_station_properties_dialog_init),
        (rb_station_properties_dialog_constructor),
        (rb_station_properties_dialog_set_property),
        (rb_station_properties_dialog_get_property),
        (rb_station_properties_dialog_new):
        * plugins/iradio/rb-station-properties-dialog.h:
        Use the common URI dialog, use rb_plugin_find_file where needed.

        * sources/rb-podcast-source.c:
        (rb_podcast_source_location_added_cb),
        (rb_podcast_source_cmd_new_podcast):
        Use the common URI dialog.

svn path=/trunk/; revision=4725

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Header for DAAP (iTunes Music Sharing) source object
3
 
 *
4
 
 *  Copyright (C) 2005 Charles Schmidt <cschmidt2@emich.edu>
5
 
 *
6
 
 *  This program is free software; you can redistribute it and/or modify
7
 
 *  it under the terms of the GNU General Public License as published by
8
 
 *  the Free Software Foundation; either version 2 of the License, or
9
 
 *  (at your option) any later version.
10
 
 *
11
 
 *  This program is distributed in the hope that it will be useful,
12
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 *  GNU General Public License for more details.
15
 
 *
16
 
 *  You should have received a copy of the GNU General Public License
17
 
 *  along with this program; if not, write to the Free Software
18
 
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
19
 
 *
20
 
 */
21
 
 
22
 
#ifndef __RB_DAAP_SOURCE_H
23
 
#define __RB_DAAP_SOURCE_H
24
 
 
25
 
#include "rb-shell.h"
26
 
#include "rb-browser-source.h"
27
 
#include "rb-plugin.h"
28
 
 
29
 
G_BEGIN_DECLS
30
 
 
31
 
#define RB_TYPE_DAAP_SOURCE         (rb_daap_source_get_type ())
32
 
#define RB_DAAP_SOURCE(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_DAAP_SOURCE, RBDAAPSource))
33
 
#define RB_DAAP_SOURCE_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_DAAP_SOURCE, RBDAAPSourceClass))
34
 
#define RB_IS_DAAP_SOURCE(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_DAAP_SOURCE))
35
 
#define RB_IS_DAAP_SOURCE_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_DAAP_SOURCE))
36
 
#define RB_DAAP_SOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_DAAP_SOURCE, RBDAAPSourceClass))
37
 
 
38
 
typedef struct RBDAAPSourcePrivate RBDAAPSourcePrivate;
39
 
 
40
 
typedef struct {
41
 
        RBBrowserSource parent;
42
 
 
43
 
        RBDAAPSourcePrivate *priv;
44
 
} RBDAAPSource;
45
 
 
46
 
typedef struct {
47
 
        RBBrowserSourceClass parent;
48
 
} RBDAAPSourceClass;
49
 
 
50
 
GType           rb_daap_source_get_type         (void);
51
 
 
52
 
RBSource *      rb_daap_source_new              (RBShell *shell,
53
 
                                                 RBPlugin *plugin,
54
 
                                                 const char *service_name,
55
 
                                                 const char *name,
56
 
                                                 const char *host,
57
 
                                                 guint port,
58
 
                                                 gboolean password_protected);
59
 
 
60
 
void            rb_daap_source_disconnect       (RBDAAPSource *daap_source);
61
 
 
62
 
#ifdef HAVE_GSTREAMER_0_8
63
 
gchar *         rb_daap_source_get_headers      (RBDAAPSource *source,
64
 
                                                 const gchar *uri,
65
 
                                                 glong time,
66
 
                                                 gint64 *bytes);
67
 
#else
68
 
gchar *         rb_daap_source_get_headers      (RBDAAPSource *source,
69
 
                                                 const gchar *uri,
70
 
                                                 gint64 bytes);
71
 
#endif
72
 
 
73
 
G_END_DECLS
74
 
 
75
 
#endif /* __RB_DAAP_SOURCE_H */