~jbicha/hud/build-depend-on-valac-not-gir

« back to all changes in this revision

Viewing changes to service/dbusmenu-collector.h

Merging the HUD into indicator-appmenu

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
An object to collect the various DBusmenu objects that exist
 
3
on dbus.
 
4
 
 
5
Copyright 2011 Canonical Ltd.
 
6
 
 
7
Authors:
 
8
    Ted Gould <ted@canonical.com>
 
9
 
 
10
This program is free software: you can redistribute it and/or modify it 
 
11
under the terms of the GNU General Public License version 3, as published 
 
12
by the Free Software Foundation.
 
13
 
 
14
This program is distributed in the hope that it will be useful, but 
 
15
WITHOUT ANY WARRANTY; without even the implied warranties of 
 
16
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
 
17
PURPOSE.  See the GNU General Public License for more details.
 
18
 
 
19
You should have received a copy of the GNU General Public License along 
 
20
with this program.  If not, see <http://www.gnu.org/licenses/>.
 
21
*/
 
22
 
 
23
#ifndef __DBUSMENU_COLLECTOR_H__
 
24
#define __DBUSMENU_COLLECTOR_H__
 
25
 
 
26
#include <glib.h>
 
27
#include <glib-object.h>
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
#define DBUSMENU_COLLECTOR_TYPE            (dbusmenu_collector_get_type ())
 
32
#define DBUSMENU_COLLECTOR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), DBUSMENU_COLLECTOR_TYPE, DbusmenuCollector))
 
33
#define DBUSMENU_COLLECTOR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), DBUSMENU_COLLECTOR_TYPE, DbusmenuCollectorClass))
 
34
#define IS_DBUSMENU_COLLECTOR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DBUSMENU_COLLECTOR_TYPE))
 
35
#define IS_DBUSMENU_COLLECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUSMENU_COLLECTOR_TYPE))
 
36
#define DBUSMENU_COLLECTOR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUSMENU_COLLECTOR_TYPE, DbusmenuCollectorClass))
 
37
 
 
38
typedef struct _DbusmenuCollector          DbusmenuCollector;
 
39
typedef struct _DbusmenuCollectorClass     DbusmenuCollectorClass;
 
40
typedef struct _DbusmenuCollectorPrivate   DbusmenuCollectorPrivate;
 
41
typedef struct _DbusmenuCollectorFound     DbusmenuCollectorFound;
 
42
 
 
43
struct _DbusmenuCollectorClass {
 
44
        GObjectClass parent_class;
 
45
};
 
46
 
 
47
struct _DbusmenuCollector {
 
48
        GObject parent;
 
49
 
 
50
        DbusmenuCollectorPrivate * priv;
 
51
};
 
52
 
 
53
GType dbusmenu_collector_get_type (void);
 
54
DbusmenuCollector * dbusmenu_collector_new (void);
 
55
GList * dbusmenu_collector_search (DbusmenuCollector * collector, const gchar * dbus_addr, const gchar * dbus_path, const gchar * search);
 
56
void dbusmenu_collector_execute (DbusmenuCollector * collector, const gchar * dbus_addr, const gchar * dbus_path, gint id, guint timestamp);
 
57
 
 
58
guint dbusmenu_collector_found_get_distance (DbusmenuCollectorFound * found);
 
59
const gchar * dbusmenu_collector_found_get_display (DbusmenuCollectorFound * found);
 
60
const gchar * dbusmenu_collector_found_get_db (DbusmenuCollectorFound * found);
 
61
void dbusmenu_collector_found_free (DbusmenuCollectorFound * found);
 
62
void dbusmenu_collector_found_list_free (GList * found_list);
 
63
const gchar *  dbusmenu_collector_found_get_indicator (DbusmenuCollectorFound * found);
 
64
const gchar * dbusmenu_collector_found_get_dbus_addr (DbusmenuCollectorFound * found);
 
65
const gchar * dbusmenu_collector_found_get_dbus_path (DbusmenuCollectorFound * found);
 
66
gint dbusmenu_collector_found_get_dbus_id (DbusmenuCollectorFound * found);
 
67
 
 
68
G_END_DECLS
 
69
 
 
70
#endif