Lomiri Action API
manager.h
1/*
2 * Copyright © 2012 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of either or both of the following licences:
6 *
7 * 1) the GNU Lesser General Public License version 3, as published by
8 * the Free Software Foundation; and/or
9 * 2) the GNU Lesser General Public License version 2.1, as published by
10 * the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranties of
14 * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the applicable version of the GNU Lesser General Public
16 * License for more details.
17 *
18 * You should have received a copy of both the GNU Lesser General Public
19 * License version 3 and version 2.1 along with this program. If not,
20 * see <http://www.gnu.org/licenses/>
21 *
22 * Author: Ted Gould <ted@canonical.com>
23 */
24
25#ifndef __HUD_MANAGER_H__
26#define __HUD_MANAGER_H__
27
28#include <glib-object.h>
29
30#include "action-publisher.h"
31
32G_BEGIN_DECLS
33
34#define HUD_TYPE_MANAGER (hud_manager_get_type ())
35#define HUD_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), HUD_TYPE_MANAGER, HudManager))
36#define HUD_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), HUD_TYPE_MANAGER, HudManagerClass))
37#define HUD_IS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HUD_TYPE_MANAGER))
38#define HUD_IS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), HUD_TYPE_MANAGER))
39#define HUD_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), HUD_TYPE_MANAGER, HudManagerClass))
40
46#define HUD_MANAGER_PROP_APPLICATION "application"
52#define HUD_MANAGER_PROP_APP_ID "app-id"
53
54typedef struct _HudManager HudManager;
57
65 GObjectClass parent_class;
66};
67
76 GObject parent;
77 HudManagerPrivate * priv;
78};
79
80GType hud_manager_get_type (void);
81
82HudManager * hud_manager_new (const gchar * application_id);
83
84HudManager * hud_manager_new_for_application (GApplication * application);
85
86void hud_manager_add_actions (HudManager * manager,
87 HudActionPublisher * pub);
88
89void hud_manager_remove_actions (HudManager * manager,
90 HudActionPublisher * pub);
91
92void hud_manager_switch_window_context (HudManager * manager,
93 HudActionPublisher * pub);
94
109G_END_DECLS
110
111#endif /* __HUD_MANAGER_H__ */
Definition: manager.h:64
Definition: manager.c:34
Definition: manager.h:75