2
* arch-tag: Header for Rhythmbox Bonobo remoting
4
* Copyright (C) 2004 Colin Walters <walters@verbum.org>
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)
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.
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.
22
#ifndef __RB_REMOTE_BONOBO_H
23
#define __RB_REMOTE_BONOBO_H
25
#include "bonobo/Rhythmbox.h"
26
#include "rb-remote-proxy.h"
28
#include <bonobo/bonobo-control.h>
29
#include <bonobo/bonobo-object.h>
33
#define RB_REMOTE_BONOBO_OAFIID "OAFIID:GNOME_Rhythmbox"
34
#define RB_FACTORY_OAFIID "OAFIID:GNOME_Rhythmbox_Factory"
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))
43
typedef struct RBRemoteBonoboPrivate RBRemoteBonoboPrivate;
49
RBRemoteBonoboPrivate *priv;
54
BonoboObjectClass parent_class;
56
POA_GNOME_Rhythmbox__epv epv;
57
} RBRemoteBonoboClass;
61
RB_REMOTE_BONOBO_ERROR_SERVICE_UNAVAILABLE,
62
RB_REMOTE_BONOBO_ERROR_ACQUISITION_FAILURE,
63
RB_REMOTE_BONOBO_ERROR_ACTIVATION_FAILURE
64
} RBRemoteBonoboError;
66
#define RB_REMOTE_BONOBO_ERROR rb_remote_bonobo_error_quark ()
68
GQuark rb_remote_bonobo_error_quark (void);
70
GType rb_remote_bonobo_get_type (void);
72
void rb_remote_bonobo_preinit (void);
75
RBRemoteBonobo * rb_remote_bonobo_new (void);
77
gboolean rb_remote_bonobo_activate (RBRemoteBonobo *bonobo);
79
gboolean rb_remote_bonobo_acquire (RBRemoteBonobo *bonobo,
85
#endif /* __RB_REMOTE_BONOBO_H */