2
* Copyright (C) 2010 Canonical Ltd
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 3 as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Authored by: Neil Jagdish Patel <neil.patel@canonical.com>
19
#ifndef _PANEL_SERVICE_H_
20
#define _PANEL_SERVICE_H_
22
#include <glib-object.h>
26
#define PANEL_TYPE_SERVICE (panel_service_get_type ())
28
#define PANEL_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
29
PANEL_TYPE_SERVICE, PanelService))
31
#define PANEL_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
32
PANEL_TYPE_SERVICE, PanelServiceClass))
34
#define PANEL_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
37
#define PANEL_IS_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
40
#define PANEL_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
41
PANEL_TYPE_SERVICE, PanelServiceClass))
43
typedef struct _PanelService PanelService;
44
typedef struct _PanelServiceClass PanelServiceClass;
45
typedef struct _PanelServicePrivate PanelServicePrivate;
51
PanelServicePrivate *priv;
54
struct _PanelServiceClass
56
GObjectClass parent_class;
59
void (*_view_padding1) (void);
60
void (*_view_padding2) (void);
61
void (*_view_padding3) (void);
62
void (*_view_padding4) (void);
63
void (*_view_padding5) (void);
64
void (*_view_padding6) (void);
67
GType panel_service_get_type (void) G_GNUC_CONST;
69
PanelService * panel_service_get_default ();
71
GVariant * panel_service_sync (PanelService *self);
73
GVariant * panel_service_sync_one (PanelService *self,
74
const gchar *indicator_id);
76
void panel_service_show_entry (PanelService *self,
77
const gchar *entry_id,
83
void panel_service_get_last_xy (PanelService *self,
89
#endif /* _PANEL_SERVICE_H_ */