summaryrefslogtreecommitdiff
path: root/src/keyman-service.h
diff options
context:
space:
mode:
authorglasseyes <dglassey@gmail.com>2019-01-04 23:58:46 +0700
committerglasseyes <dglassey@gmail.com>2019-01-04 23:58:46 +0700
commit0bb2eda66dff5dcbe9d3f53e2612e63c0e3d73fa (patch)
tree74d36ed666ec7c80bdcf2d96d1bd6807eaea8943 /src/keyman-service.h
New upstream version 11.0.103
Diffstat (limited to 'src/keyman-service.h')
-rw-r--r--src/keyman-service.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/src/keyman-service.h b/src/keyman-service.h
new file mode 100644
index 0000000..d71def1
--- /dev/null
+++ b/src/keyman-service.h
@@ -0,0 +1,69 @@
+/* vim:set et sts=4: */
+
+/*
+ * KMFL Input Method for IBUS (The Input Bus)
+ *
+ * Copyright (C) 2018 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>
+
+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 (void);
+
+// 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);
+
+
+G_END_DECLS
+
+#endif /* __KM_SERVICE_H__ */