forked from keymanapp/keyman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keyman-service.h
72 lines (56 loc) · 2.35 KB
/
keyman-service.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* vim:set et sts=4: */
/*
* Keyman Input Method for IBUS (The Input Bus)
*
* Copyright (C) 2018-2023 SIL International
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*
*/
/*
This file is based on work from Mousetweaks
Copyright © 2007-2010 Gerd Kohlberger <gerdko gmail com>
*/
#ifndef __KM_SERVICE_H__
#define __KM_SERVICE_H__
#include <glib-object.h>
#include <ibus.h>
G_BEGIN_DECLS
#define KEYMAN_DBUS_NAME "com.Keyman"
#define KEYMAN_DBUS_IFACE "com.Keyman"
#define KEYMAN_DBUS_PATH "/com/Keyman/IBus"
#define KM_TYPE_SERVICE (km_service_get_type ())
#define KM_SERVICE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), KM_TYPE_SERVICE, KeymanService))
#define KM_IS_SERVICE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), KM_TYPE_SERVICE))
typedef GObjectClass KeymanServiceClass;
typedef struct _KeymanService KeymanService;
typedef struct _KeymanServicePrivate KeymanServicePrivate;
struct _KeymanService
{
GObject parent;
KeymanServicePrivate *priv;
};
GType km_service_get_type (void) G_GNUC_CONST;
KeymanService * km_service_get_default (IBusEngine *keyman);
// const gchar * km_service_get_ldmlfile(KeymanService *service);
void km_service_set_ldmlfile(KeymanService *service,
const gchar *xml);
// const gchar * km_service_get_name (KeymanService *service);
void km_service_set_name (KeymanService *service,
const gchar *name);
void km_service_send_text (KeymanService *service,
const gchar *text);
G_END_DECLS
#endif /* __KM_SERVICE_H__ */