2006-12-12 James Livingston <doclivingston@gmail.com>
[rhythmbox.git] / metadata / sj-metadata.h
blob89eb5ca4c7de0c1d00a7071b8cac28cdc6289fb3
1 /*
2 * sj-metadata.h
3 * Copyright (C) 2003 Ross Burton <ross@burtonini.com>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef SJ_METADATA_H
22 #define SJ_METADATA_H
24 #include <glib-object.h>
25 #include <glib/gerror.h>
27 G_BEGIN_DECLS
29 #define SJ_TYPE_METADATA (sj_metadata_get_type ())
30 #define SJ_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SJ_TYPE_METADATA, SjMetadata))
31 #define SJ_METADATA_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), SJ_TYPE_METADATA, SjMetadataClass))
32 #define SJ_IS_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SJ_TYPE_METADATA))
33 #define SJ_IS_METADATA_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), SJ_TYPE_METADATA))
34 #define SJ_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SJ_TYPE_METADATA, SjMetadataClass))
36 typedef struct _SjMetadata SjMetadata; /* dummy object */
37 typedef struct _SjMetadataClass SjMetadataClass;
39 struct _SjMetadataClass
41 GTypeInterface g_iface;
43 /* Signals */
44 void (*metadata) (SjMetadata *md, GList *albums, GError *error);
46 /* Virtual Table */
47 GError* (*get_new_error) (SjMetadata *metadata);
48 void (*set_cdrom) (SjMetadata *metadata, const char* device);
49 void (*set_proxy) (SjMetadata *metadata, const char* proxy);
50 void (*set_proxy_port) (SjMetadata *metadata, int proxy_port);
51 void (*list_albums) (SjMetadata *metadata, GError **error);
52 char *(*get_submit_url) (SjMetadata *metadata);
55 GType sj_metadata_get_type (void);
56 GError *sj_metadata_get_new_error (SjMetadata *metadata);
57 void sj_metadata_set_cdrom (SjMetadata *metadata, const char* device);
58 void sj_metadata_set_proxy (SjMetadata *metadata, const char* proxy);
59 void sj_metadata_set_proxy_port (SjMetadata *metadata, const int proxy_port);
60 void sj_metadata_list_albums (SjMetadata *metadata, GError **error);
61 char *sj_metadata_get_submit_url (SjMetadata *metadata);
63 G_END_DECLS
65 #endif /* SJ_METADATA_H */