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.
24
#include <glib-object.h>
25
#include <glib/gerror.h>
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;
44
void (*metadata) (GList *albums, GError *error);
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);
54
GType sj_metadata_get_type (void);
55
GError *sj_metadata_get_new_error (SjMetadata *metadata);
56
void sj_metadata_set_cdrom (SjMetadata *metadata, const char* device);
57
void sj_metadata_set_proxy (SjMetadata *metadata, const char* proxy);
58
void sj_metadata_set_proxy_port (SjMetadata *metadata, const int proxy_port);
59
void sj_metadata_list_albums (SjMetadata *metadata, GError **error);
63
#endif /* SJ_METADATA_H */