summaryrefslogtreecommitdiff
path: root/libcaribou/row-model.vala
diff options
context:
space:
mode:
authorEitan Isaacson <eitan@monotonous.org>2011-04-27 20:32:35 -0700
committerEitan Isaacson <eitan@monotonous.org>2011-05-02 10:18:49 -0700
commit6294dab42aec83a4e9edd314544903a67152b7fb (patch)
treee44d70f016e22510032935816be3d58014bb847c /libcaribou/row-model.vala
parent1242c1ea37f30109609c041de3572f5b900a2a3b (diff)
downloadcaribou-6294dab42aec83a4e9edd314544903a67152b7fb.tar.gz
libcaribou: Implemented CaribouKeyboardModel.
Diffstat (limited to 'libcaribou/row-model.vala')
-rw-r--r--libcaribou/row-model.vala22
1 files changed, 22 insertions, 0 deletions
diff --git a/libcaribou/row-model.vala b/libcaribou/row-model.vala
new file mode 100644
index 0000000..de4456c
--- /dev/null
+++ b/libcaribou/row-model.vala
@@ -0,0 +1,22 @@
+namespace Caribou {
+ public class RowModel : GLib.Object {
+
+ List<KeyModel> keys;
+
+ public RowModel () {
+ keys = new List<KeyModel> ();
+ }
+
+ public void add_key (KeyModel key) {
+ keys.append (key);
+ }
+
+ public KeyModel get_key (uint index) {
+ return keys.nth (index).data;
+ }
+
+ public unowned List<weak KeyModel> get_keys () {
+ return keys;
+ }
+ }
+}