~ubuntu-branches/ubuntu/trusty/hud/trusty-updates

« back to all changes in this revision

Viewing changes to src/menumodel-collector.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-01-20 19:43:59 UTC
  • mfrom: (1.1.26)
  • Revision ID: package-import@ubuntu.com-20140120194359-jxxxqtd4ql9elvpf
Tags: 13.10.1+14.04.20140120-0ubuntu1
* New rebuild forced
* Automatic snapshot from revision 362

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright © 2012 Canonical Ltd.
3
 
 *
4
 
 * This program is free software: you can redistribute it and/or modify it
5
 
 * 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, but
9
 
 * WITHOUT ANY WARRANTY; without even the implied warranties of
10
 
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
 
 * PURPOSE.  See the GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License along
14
 
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 *
16
 
 * Author: Ryan Lortie <desrt@desrt.ca>
17
 
 */
18
 
 
19
 
#ifndef __HUD_MENU_MODEL_COLLECTOR_H__
20
 
#define __HUD_MENU_MODEL_COLLECTOR_H__
21
 
 
22
 
#include <gio/gio.h>
23
 
 
24
 
#include "window-info.h"
25
 
#include "source.h"
26
 
 
27
 
#define HUD_TYPE_MENU_MODEL_COLLECTOR                       (hud_menu_model_collector_get_type ())
28
 
#define HUD_MENU_MODEL_COLLECTOR(inst)                      (G_TYPE_CHECK_INSTANCE_CAST ((inst),                     \
29
 
                                                             HUD_TYPE_MENU_MODEL_COLLECTOR,                          \
30
 
                                                             HudMenuModelCollector))
31
 
#define HUD_IS_MENU_MODEL_COLLECTOR(inst)                   (G_TYPE_CHECK_INSTANCE_TYPE ((inst),                     \
32
 
                                                             HUD_TYPE_MENU_MODEL_COLLECTOR))
33
 
 
34
 
#define HUD_MENU_MODEL_DEFAULT_DEPTH   10
35
 
 
36
 
typedef struct _HudMenuModelCollector                       HudMenuModelCollector;
37
 
 
38
 
GType                   hud_menu_model_collector_get_type               (void);
39
 
 
40
 
HudMenuModelCollector * hud_menu_model_collector_new                    (const gchar *application_id,
41
 
                                                                         const gchar *icon,
42
 
                                                                         guint        penalty,
43
 
                                                                         const gchar *export_path,
44
 
                                                                         HudSourceItemType type);
45
 
 
46
 
void                    hud_menu_model_collector_add_window             (HudMenuModelCollector * collector,
47
 
                                                                         const gchar *unique_bus_name,
48
 
                                                                         const gchar *app_menu_object_path,
49
 
                                                                         const gchar *menubar_object_path,
50
 
                                                                         const gchar *application_object_path,
51
 
                                                                         const gchar *window_object_path,
52
 
                                                                         const gchar *unity_object_path);
53
 
 
54
 
void                    hud_menu_model_collector_add_endpoint           (HudMenuModelCollector * collector,
55
 
                                                                         const gchar *prefix,
56
 
                                                                         const gchar *bus_name,
57
 
                                                                         const gchar *menu_path,
58
 
                                                                         const gchar *action_path);
59
 
 
60
 
void                    hud_menu_model_collector_add_model              (HudMenuModelCollector * collector,
61
 
                                                                         GMenuModel *   model,
62
 
                                                                         const gchar *  prefix,
63
 
                                                                         guint          recurse);
64
 
 
65
 
void                    hud_menu_model_collector_add_actions            (HudMenuModelCollector * collector,
66
 
                                                                         GActionGroup *   group,
67
 
                                                                         const gchar *    prefix);
68
 
 
69
 
#define HUD_TYPE_MODEL_ITEM                       (hud_model_item_get_type ())
70
 
#define HUD_MODEL_ITEM(inst)                      (G_TYPE_CHECK_INSTANCE_CAST ((inst),    \
71
 
                                                   HUD_TYPE_MODEL_ITEM,                   \
72
 
                                                   HudModelItem))
73
 
#define HUD_IS_MODEL_ITEM(inst)                   (G_TYPE_CHECK_INSTANCE_TYPE ((inst),    \
74
 
                                                   HUD_TYPE_MODEL_ITEM))
75
 
 
76
 
typedef struct _HudModelItem                       HudModelItem;
77
 
 
78
 
GType                   hud_model_item_get_type                         (void);
79
 
gboolean                hud_model_item_is_parameterized                 (HudModelItem *         item);
80
 
void                    hud_model_item_activate_parameterized           (HudModelItem *         item,
81
 
                                                                         guint32                timestamp,
82
 
                                                                         const gchar **         base_action,
83
 
                                                                         const gchar **         action_path,
84
 
                                                                         const gchar **         model_path,
85
 
                                                                         gint *                 section);
86
 
 
87
 
#endif /* __HUD_MENU_MODEL_COLLECTOR_H__ */