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

« back to all changes in this revision

Viewing changes to metadata/sj-metadata.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
/*
 
2
 * sj-metadata.h
 
3
 * Copyright (C) 2003 Ross Burton <ross@burtonini.com>
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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.
 
19
 */
 
20
 
 
21
#ifndef SJ_METADATA_H
 
22
#define SJ_METADATA_H
 
23
 
 
24
#include <glib-object.h>
 
25
#include <glib/gerror.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
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))
 
35
 
 
36
typedef struct _SjMetadata SjMetadata; /* dummy object */
 
37
typedef struct _SjMetadataClass SjMetadataClass;
 
38
 
 
39
struct _SjMetadataClass
 
40
{
 
41
  GTypeInterface g_iface;
 
42
 
 
43
  /* Signals */
 
44
  void         (*metadata) (GList *albums, GError *error);
 
45
 
 
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
};
 
53
 
 
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);
 
60
 
 
61
G_END_DECLS
 
62
 
 
63
#endif /* SJ_METADATA_H */