2
* Copyright (C) 2008-2009 Nick Schermer <nick@xfce.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
#ifndef __PANEL_DBUS_SERVICE_H__
20
#define __PANEL_DBUS_SERVICE_H__
23
#include <common/panel-dbus.h>
25
typedef struct _PanelDBusServiceClass PanelDBusServiceClass;
26
typedef struct _PanelDBusService PanelDBusService;
28
#define PANEL_TYPE_DBUS_SERVICE (panel_dbus_service_get_type ())
29
#define PANEL_DBUS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PANEL_TYPE_DBUS_SERVICE, PanelDBusService))
30
#define PANEL_DBUS_CLASS_SERVICE(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANEL_TYPE_DBUS_SERVICE, PanelDBusServiceClass))
31
#define PANEL_IS_DBUS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PANEL_TYPE_DBUS_SERVICE))
32
#define PANEL_IS_DBUS_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANEL_TYPE_DBUS_SERVICE))
33
#define PANEL_DBUS_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANEL_TYPE_DBUS_SERVICE, PanelDBusServiceClass))
37
GType panel_dbus_service_get_type (void) G_GNUC_CONST;
39
PanelDBusService *panel_dbus_service_get (void);
41
gboolean panel_dbus_service_is_owner (PanelDBusService *service);
43
void panel_dbus_service_exit_panel (gboolean restart);
45
gboolean panel_dbus_service_get_restart (void);
49
#endif /* !__PANEL_DBUS_SERVICE_H__ */