IIdentityCardStore interface and LocalFlatFileStore class implemented
authorPete Fotheringham <pete.fotheringham@codethink.co.uk>
Thu, 8 Dec 2011 13:33:18 +0000 (13:33 +0000)
committerPete Fotheringham <pete.fotheringham@codethink.co.uk>
Thu, 8 Dec 2011 13:33:18 +0000 (13:33 +0000)
src/moonshot-idcard-store.vala [new file with mode: 0644]
src/moonshot-local-flat-file-store.vala [new file with mode: 0644]

diff --git a/src/moonshot-idcard-store.vala b/src/moonshot-idcard-store.vala
new file mode 100644 (file)
index 0000000..0bfe40c
--- /dev/null
@@ -0,0 +1,8 @@
+public interface IIdentityCardStore : Object {
+     // Methods
+     public abstract void add_card(IdCard card);
+     public abstract void remove_card(IdCard card);
+     public abstract SList<IdCard> get_card_list(); 
+     public signal void CardListChanged();
+}
+
diff --git a/src/moonshot-local-flat-file-store.vala b/src/moonshot-local-flat-file-store.vala
new file mode 100644 (file)
index 0000000..1d2caa7
--- /dev/null
@@ -0,0 +1,15 @@
+
+public class LocalFlatFileStore : Object, IIdentityCardStore {
+     private SList<IdCard> id_card_list;
+
+     public void add_card(IdCard card) {
+     }
+
+     public void remove_card(IdCard card) {
+     }
+
+     public SList<IdCard> get_card_list() {
+          return id_card_list.copy(); 
+     }
+ }
+