2
An object to collect the various DBusmenu objects that exist
5
Copyright 2011 Canonical Ltd.
8
Ted Gould <ted@canonical.com>
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.
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.
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/>.
23
#ifndef __DBUSMENU_COLLECTOR_H__
24
#define __DBUSMENU_COLLECTOR_H__
27
#include <glib-object.h>
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))
38
typedef struct _DbusmenuCollector DbusmenuCollector;
39
typedef struct _DbusmenuCollectorClass DbusmenuCollectorClass;
40
typedef struct _DbusmenuCollectorPrivate DbusmenuCollectorPrivate;
41
typedef struct _DbusmenuCollectorFound DbusmenuCollectorFound;
43
struct _DbusmenuCollectorClass {
44
GObjectClass parent_class;
47
struct _DbusmenuCollector {
50
DbusmenuCollectorPrivate * priv;
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);
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);