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

« back to all changes in this revision

Viewing changes to remote/bonobo/rb-remote-bonobo.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
 *  arch-tag: Header for Rhythmbox Bonobo remoting
 
3
 *
 
4
 *  Copyright (C) 2004 Colin Walters <walters@verbum.org>
 
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, or (at your option)
 
9
 *  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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
19
 *  
 
20
 */
 
21
 
 
22
#ifndef __RB_REMOTE_BONOBO_H
 
23
#define __RB_REMOTE_BONOBO_H
 
24
 
 
25
#include "bonobo/Rhythmbox.h"
 
26
#include "rb-remote-proxy.h"
 
27
 
 
28
#include <bonobo/bonobo-control.h>
 
29
#include <bonobo/bonobo-object.h>
 
30
 
 
31
G_BEGIN_DECLS
 
32
 
 
33
#define RB_REMOTE_BONOBO_OAFIID "OAFIID:GNOME_Rhythmbox"
 
34
#define RB_FACTORY_OAFIID "OAFIID:GNOME_Rhythmbox_Factory"
 
35
 
 
36
#define RB_TYPE_REMOTE_BONOBO (rb_remote_bonobo_get_type ())
 
37
#define RB_REMOTE_BONOBO(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_REMOTE_BONOBO, RBRemoteBonobo))
 
38
#define RB_REMOTE_BONOBO_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_REMOTE_BONOBO, RBRemoteBonoboClass))
 
39
#define RB_IS_REMOTE_BONOBO(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_REMOTE_BONOBO))
 
40
#define RB_IS_REMOTE_BONOBO_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_REMOTE_BONOBO))
 
41
#define RB_REMOTE_BONOBO_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_REMOTE_BONOBO, RBRemoteBonoboClass))
 
42
 
 
43
typedef struct RBRemoteBonoboPrivate RBRemoteBonoboPrivate;
 
44
 
 
45
typedef struct
 
46
{
 
47
        BonoboObject parent;
 
48
 
 
49
        RBRemoteBonoboPrivate *priv;
 
50
} RBRemoteBonobo;
 
51
 
 
52
typedef struct
 
53
{
 
54
        BonoboObjectClass parent_class;
 
55
 
 
56
        POA_GNOME_Rhythmbox__epv epv;
 
57
} RBRemoteBonoboClass;
 
58
 
 
59
typedef enum
 
60
{
 
61
        RB_REMOTE_BONOBO_ERROR_SERVICE_UNAVAILABLE,
 
62
        RB_REMOTE_BONOBO_ERROR_ACQUISITION_FAILURE,
 
63
        RB_REMOTE_BONOBO_ERROR_ACTIVATION_FAILURE
 
64
} RBRemoteBonoboError;
 
65
 
 
66
#define RB_REMOTE_BONOBO_ERROR rb_remote_bonobo_error_quark ()
 
67
 
 
68
GQuark rb_remote_bonobo_error_quark (void);
 
69
 
 
70
GType rb_remote_bonobo_get_type (void);
 
71
 
 
72
void  rb_remote_bonobo_preinit (void);
 
73
 
 
74
 
 
75
RBRemoteBonobo * rb_remote_bonobo_new (void);
 
76
 
 
77
gboolean rb_remote_bonobo_activate (RBRemoteBonobo *bonobo);
 
78
 
 
79
gboolean rb_remote_bonobo_acquire (RBRemoteBonobo *bonobo,
 
80
                                   RBRemoteProxy *proxy,
 
81
                                   GError **error);
 
82
 
 
83
G_END_DECLS
 
84
 
 
85
#endif /* __RB_REMOTE_BONOBO_H */