Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
* Copyright (C) 2010 Intel, Inc |
3 |
|
|
* Copyright (C) 2016 Endless, Inc |
4 |
|
|
* |
5 |
|
|
* This program is free software; you can redistribute it and/or modify |
6 |
|
|
* it under the terms of the GNU General Public License as published by |
7 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
8 |
|
|
* (at your option) any later version. |
9 |
|
|
* |
10 |
|
|
* This program is distributed in the hope that it will be useful, |
11 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
|
|
* GNU General Public License for more details. |
14 |
|
|
* |
15 |
|
|
* You should have received a copy of the GNU General Public License |
16 |
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>. |
17 |
|
|
* |
18 |
|
|
* Author: Thomas Wood <thomas.wood@intel.com> |
19 |
|
|
* Georges Basile Stavracas Neto <georges.stavracas@gmail.com> |
20 |
|
|
* |
21 |
|
|
*/ |
22 |
|
|
|
23 |
|
|
#pragma once |
24 |
|
|
|
25 |
|
|
#include <glib-object.h> |
26 |
|
|
|
27 |
|
|
#include "cc-keyboard-item.h" |
28 |
|
|
|
29 |
|
|
G_BEGIN_DECLS |
30 |
|
|
|
31 |
|
|
#define CC_TYPE_KEYBOARD_MANAGER (cc_keyboard_manager_get_type ()) |
32 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcKeyboardManager, cc_keyboard_manager, CC, KEYBOARD_MANAGER, GObject) |
33 |
|
|
|
34 |
|
|
CcKeyboardManager* cc_keyboard_manager_new (void); |
35 |
|
|
|
36 |
|
|
void cc_keyboard_manager_load_shortcuts (CcKeyboardManager *self); |
37 |
|
|
|
38 |
|
|
CcKeyboardItem* cc_keyboard_manager_create_custom_shortcut (CcKeyboardManager *self); |
39 |
|
|
|
40 |
|
|
void cc_keyboard_manager_add_custom_shortcut (CcKeyboardManager *self, |
41 |
|
|
CcKeyboardItem *item); |
42 |
|
|
|
43 |
|
|
void cc_keyboard_manager_remove_custom_shortcut (CcKeyboardManager *self, |
44 |
|
|
CcKeyboardItem *item); |
45 |
|
|
|
46 |
|
|
CcKeyboardItem* cc_keyboard_manager_get_collision (CcKeyboardManager *self, |
47 |
|
|
CcKeyboardItem *item, |
48 |
|
|
CcKeyCombo *combo); |
49 |
|
|
|
50 |
|
|
void cc_keyboard_manager_reset_shortcut (CcKeyboardManager *self, |
51 |
|
|
CcKeyboardItem *item); |
52 |
|
|
|
53 |
|
|
G_END_DECLS |
54 |
|
|
|
55 |
|
|
|