diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-01-03 05:34:53 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-01-03 05:34:53 +0800 |
commit | c13881a0251b12e7c0d9bfc02a30d3d2b413725c (patch) | |
tree | abc13b4b5ed11544526f4c1242528a4d0d196c6f /src/ephy-dbus.h | |
parent | 6dabfeeef03a5890d0ebffab4382ade94f6b7c32 (diff) | |
download | gsoc2013-epiphany-c13881a0251b12e7c0d9bfc02a30d3d2b413725c.tar.gz gsoc2013-epiphany-c13881a0251b12e7c0d9bfc02a30d3d2b413725c.tar.zst gsoc2013-epiphany-c13881a0251b12e7c0d9bfc02a30d3d2b413725c.zip |
R data/GNOME_Epiphany_Automation.server.in: A data/epiphany-service.xml: A
2006-01-02 Christian Persch <chpe@cvs.gnome.org>
* Makefile.am:
* autogen.sh:
* configure.ac:
R data/GNOME_Epiphany_Automation.server.in:
* data/Makefile.am:
A data/epiphany-service.xml:
A data/org.gnome.Epiphany.service.in:
* doc/reference/Makefile.am:
R idl/.cvsignore:
R idl/EphyAutomation.idl:
R idl/Makefile.am:
* lib/Makefile.am:
R lib/ephy-dbus.c:
R lib/ephy-dbus.h:
* lib/ephy-file-helpers.c: (ephy_file_launch_application):
* src/Makefile.am:
A src/ephy-activation.c:
A src/ephy-activation.h:
A src/ephy-dbus.c:
A src/ephy-dbus.h:
* src/ephy-main.c: (main):
* src/ephy-shell.c: (ephy_shell_init), (open_urls),
(dbus_g_proxy_finalized_cb), (ephy_shell_startup),
(ephy_shell_dispose):
Bonobo is dead; long live the Bonobos!
Patch by Gustavo Gama, bug #322463.
Diffstat (limited to 'src/ephy-dbus.h')
-rw-r--r-- | src/ephy-dbus.h | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/src/ephy-dbus.h b/src/ephy-dbus.h new file mode 100644 index 000000000..eb6b64d83 --- /dev/null +++ b/src/ephy-dbus.h @@ -0,0 +1,94 @@ +/* + * Copyright (C) 2004 Jean-François rameau + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ + */ + +#ifndef EPHY_DBUS_H +#define EPHY_DBUS_H + +#include <glib-object.h> + +/* Yes, we know that DBUS API isn't stable yet */ +#define DBUS_API_SUBJECT_TO_CHANGE +#include <dbus/dbus-glib.h> +#include <dbus/dbus-glib-lowlevel.h> + +G_BEGIN_DECLS + +/* Epiphany's DBUS ids */ +#define DBUS_EPHY_SERVICE "org.gnome.Epiphany" +#define DBUS_EPHY_PATH "/org/gnome/Epiphany" +#define DBUS_EPHY_INTERFACE "org.gnome.Epiphany" + +/* NetworkManager's DBUS ids */ +#define DBUS_NETWORK_MANAGER_SERVICE "org.freedesktop.NetworkManager" +#define DBUS_NETWORK_MANAGER_PATH "/org/freedesktop/NetworkManager" +#define DBUS_NETWORK_MANAGER_INTERFACE "org.freedesktop.NetworkManager" + +#define EPHY_TYPE_DBUS (ephy_dbus_get_type ()) +#define EPHY_DBUS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_DBUS, EphyDbus)) +#define EPHY_DBUS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_DBUS, EphyDbusClass)) +#define EPHY_IS_DBUS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_DBUS)) +#define EPHY_IS_DBUS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_DBUS)) +#define EPHY_DBUS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_DBUS, EphyDbusClass)) + +typedef struct _EphyDbus EphyDbus; +typedef struct _EphyDbusPrivate EphyDbusPrivate; +typedef struct _EphyDbusClass EphyDbusClass; + +typedef enum +{ + EPHY_DBUS_SESSION, + EPHY_DBUS_SYSTEM +} EphyDbusBus; + +struct _EphyDbus +{ + GObject parent; + gboolean is_session_service_owner; + + /*< private >*/ + EphyDbusPrivate *priv; +}; + +struct _EphyDbusClass +{ + GObjectClass parent_class; + + /* Signals */ + void (* connected) (EphyDbus *dbus, + EphyDbusBus kind); + void (* disconnected) (EphyDbus *dbus, + EphyDbusBus kind); +}; + +GType ephy_dbus_get_type (void); + +void ephy_dbus_startup (EphyDbus *dbus); + +void ephy_dbus_shutdown (EphyDbus *dbus); + +DBusGConnection *ephy_dbus_get_bus (EphyDbus *dbus, + EphyDbusBus kind); + +DBusGProxy *ephy_dbus_get_proxy (EphyDbus *dbus, + EphyDbusBus kind); + +G_END_DECLS + +#endif /* !EPHY_DBUS_H */ |