1 /* 2 * This file is part of GtkHotkey. 3 * Copyright Mikkel Kamstrup Erlandsen, March, 2008 4 * 5 * GtkHotkey is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU Lesser General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * GtkHotkey 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 Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public License 16 * along with GtkHotkey. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #if !defined (__GTK_HOTKEY_H__) && !defined (GTK_HOTKEY_COMPILATION) 20 #error "Only <gtkhotkey.h> can be included directly." 21 #endif 22 23 #ifndef __GTK_HOTKEY_ERROR_H__ 24 #define __GTK_HOTKEY_ERROR_H__ 25 26 #include <glib.h> 27 28 G_BEGIN_DECLS 29 30 /** 31 * GTK_HOTKEY_LISTENER_ERROR: 32 * 33 * Error domain for #GtkHotkeyListener. 34 */ 35 #define GTK_HOTKEY_LISTENER_ERROR gtk_hotkey_listener_error_quark() 36 GQuark gtk_hotkey_listener_error_quark (void); 37 38 /** 39 * GTK_HOTKEY_REGISTRY_ERROR: 40 * 41 * Error domain for #GtkHotkeyRegistry. 42 */ 43 #define GTK_HOTKEY_REGISTRY_ERROR gtk_hotkey_registry_error_quark() 44 GQuark gtk_hotkey_registry_error_quark (void); 45 46 /** 47 * GtkHotkeyListenerError: 48 * @GTK_HOTKEY_LISTENER_ERROR_BIND: An error occurred when binding a hotkey with 49 * the listener 50 * @GTK_HOTKEY_LISTENER_ERROR_UNBIND: An error occurred when unbinding a hotkey 51 * with the listener 52 * 53 * Error codes for #GError<!-- -->s related to #GtkHotkeyListener<!-- -->s 54 */ 55 typedef enum 56 { 57 GTK_HOTKEY_LISTENER_ERROR_BIND, 58 GTK_HOTKEY_LISTENER_ERROR_UNBIND, 59 } GtkHotkeyListenerError; 60 61 /** 62 * GtkHotkeyRegistryError: 63 * @GTK_HOTKEY_REGISTRY_ERROR_UNKNOWN_APP: The application which is the involved 64 * in the transaction has not registered 65 * any hotkeys 66 * @GTK_HOTKEY_REGISTRY_ERROR_UNKNOWN_KEY: The hotkey key-id (the identifier that 67 * identifies the hotkey among those 68 * belonging to an application) is not 69 * known. 70 * @GTK_HOTKEY_REGISTRY_ERROR_MALFORMED_MEDIUM: The medium from which to read 71 * or write is in an unrecoverable 72 * state. For example a file 73 * containing syntax errors 74 * @GTK_HOTKEY_REGISTRY_ERROR_IO: There was some problem with the actual io 75 * operation. Missing file permissions, disk full, 76 * etc. 77 * @GTK_HOTKEY_REGISTRY_ERROR_UNKNOWN: Unexpected and uncharacterized error 78 * @GTK_HOTKEY_REGISTRY_ERROR_BAD_SIGNATURE: The hotkey signature is not valid. 79 * See #GtkHotkeyInfo:signature. 80 * @GTK_HOTKEY_REGISTRY_ERROR_MISSING_APP: A #GtkHotkeyInfo is referring an 81 * application via its #GtkHotkeyInfo:app-info 82 * property, but the application can not 83 * be found. 84 * 85 * Error codes for #GError<!-- -->s related to #GtkHotkeyRegistry<!-- -->s 86 */ 87 typedef enum 88 { 89 GTK_HOTKEY_REGISTRY_ERROR_UNKNOWN_APP, 90 GTK_HOTKEY_REGISTRY_ERROR_UNKNOWN_KEY, 91 GTK_HOTKEY_REGISTRY_ERROR_MALFORMED_MEDIUM, 92 GTK_HOTKEY_REGISTRY_ERROR_IO, 93 GTK_HOTKEY_REGISTRY_ERROR_UNKNOWN, 94 GTK_HOTKEY_REGISTRY_ERROR_BAD_SIGNATURE, 95 GTK_HOTKEY_REGISTRY_ERROR_MISSING_APP, 96 } GtkHotkeyRegistryError; 97 98 G_END_DECLS 99 100 #endif /* __GTK_HOTKEY_ERROR_H__ */ 101