~canonical-dx-team/unity/unity.fix-ql-losing-focus

« back to all changes in this revision

Viewing changes to services/panel-service.h

  • Committer: Neil Jagdish Patel
  • Date: 2010-11-11 18:51:08 UTC
  • mfrom: (572.1.58 unity-3.0)
  • Revision ID: neil.patel@canonical.com-20101111185108-71923a90txzvxbit
[merge] Unity 3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2010 Canonical Ltd
 
3
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
15
 *
 
16
 * Authored by: Neil Jagdish Patel <neil.patel@canonical.com>
 
17
 */
 
18
 
 
19
#ifndef _PANEL_SERVICE_H_
 
20
#define _PANEL_SERVICE_H_
 
21
 
 
22
#include <glib-object.h>
 
23
 
 
24
G_BEGIN_DECLS
 
25
 
 
26
#define PANEL_TYPE_SERVICE (panel_service_get_type ())
 
27
 
 
28
#define PANEL_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
 
29
        PANEL_TYPE_SERVICE, PanelService))
 
30
 
 
31
#define PANEL_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
 
32
        PANEL_TYPE_SERVICE, PanelServiceClass))
 
33
 
 
34
#define PANEL_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
 
35
        PANEL_TYPE_SERVICE))
 
36
 
 
37
#define PANEL_IS_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
 
38
        PANEL_TYPE_SERVICE))
 
39
 
 
40
#define PANEL_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
 
41
        PANEL_TYPE_SERVICE, PanelServiceClass))
 
42
 
 
43
typedef struct _PanelService        PanelService;
 
44
typedef struct _PanelServiceClass   PanelServiceClass;
 
45
typedef struct _PanelServicePrivate PanelServicePrivate;
 
46
 
 
47
struct _PanelService
 
48
{
 
49
  GObject              parent;
 
50
 
 
51
  PanelServicePrivate *priv;
 
52
};
 
53
 
 
54
struct _PanelServiceClass
 
55
{
 
56
  GObjectClass   parent_class;
 
57
 
 
58
  /*< private >*/
 
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);
 
65
};
 
66
 
 
67
GType          panel_service_get_type      (void) G_GNUC_CONST;
 
68
 
 
69
PanelService * panel_service_get_default   ();
 
70
 
 
71
GVariant     * panel_service_sync          (PanelService *self);
 
72
 
 
73
GVariant     * panel_service_sync_one      (PanelService *self,
 
74
                                            const gchar  *indicator_id);
 
75
 
 
76
void           panel_service_show_entry    (PanelService *self,
 
77
                                            const gchar  *entry_id,
 
78
                                            guint32       timestamp,
 
79
                                            gint32        x,
 
80
                                            gint32        y,
 
81
                                            gint32        button);
 
82
 
 
83
void           panel_service_get_last_xy   (PanelService  *self,
 
84
                                            gint          *x,
 
85
                                            gint          *y);
 
86
 
 
87
G_END_DECLS
 
88
 
 
89
#endif /* _PANEL_SERVICE_H_ */