aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2014-04-04 16:00:04 +1300
committerWilliam Hua <william.hua@canonical.com>2014-04-04 16:00:04 +1300
commit202d1631f69e473c162c62d5e29b2ac1212390f1 (patch)
tree85538efe8f13f71c22b1390ade3411cbbad28486
parentddb87c4d8bbe8011c743e2706a681ae7d30bb2c4 (diff)
downloadayatana-indicator-keyboard-202d1631f69e473c162c62d5e29b2ac1212390f1.tar.gz
ayatana-indicator-keyboard-202d1631f69e473c162c62d5e29b2ac1212390f1.tar.bz2
ayatana-indicator-keyboard-202d1631f69e473c162c62d5e29b2ac1212390f1.zip
Add u-s-d keyboard plugin private interface.
-rw-r--r--lib/Makefile.am17
-rw-r--r--lib/keyboard-plugin.vala23
2 files changed, 32 insertions, 8 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 30ad790d..a19016d9 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -6,14 +6,15 @@ AM_VALAFLAGS = --enable-experimental-non-null \
--metadatadir $(top_srcdir)/deps \
--vapidir $(top_srcdir)/deps
-indicator_keyboard_service_SOURCES = main.vala \
- source.vala \
- common.vala \
- ibus-menu.vala \
- ibus-panel.vala \
- indicator-menu.vala \
- window-stack.vala \
- unity-session.vala \
+indicator_keyboard_service_SOURCES = main.vala \
+ source.vala \
+ common.vala \
+ ibus-menu.vala \
+ ibus-panel.vala \
+ indicator-menu.vala \
+ keyboard-plugin.vala \
+ window-stack.vala \
+ unity-session.vala \
unity-greeter.vala
indicator_keyboard_service_VALAFLAGS = $(AM_VALAFLAGS) \
--pkg gee-1.0 \
diff --git a/lib/keyboard-plugin.vala b/lib/keyboard-plugin.vala
new file mode 100644
index 00000000..5ee8ea24
--- /dev/null
+++ b/lib/keyboard-plugin.vala
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2014 Canonical Ltd.
+ *
+ * This program 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, version 3 of the License.
+ *
+ * This program 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 program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors: William Hua <william.hua@canonical.com>
+ */
+
+[DBus (name="com.canonical.SettingsDaemon.Keyboard.Private")]
+public interface KeyboardPlugin : Object {
+
+ public abstract void activate_input_source (uint index) throws IOError;
+}