diff options
Diffstat (limited to 'src/database/db-interface.vala')
-rw-r--r-- | src/database/db-interface.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/database/db-interface.vala b/src/database/db-interface.vala index 2a6603f..63a0148 100644 --- a/src/database/db-interface.vala +++ b/src/database/db-interface.vala @@ -52,7 +52,8 @@ public interface Database : Object { public abstract bool user_exists(int user) throws DBusError, IOError, DatabaseError; public abstract bool user_equals(UserInfo u) throws DBusError, IOError, DatabaseError; public abstract int64 get_timestamp_of_last_purchase() throws DBusError, IOError; - public abstract Category[] get_category_list() throws DBusError, IOError; + public abstract Category[] get_category_list() throws DBusError, IOError, DatabaseError; + public abstract int add_category(string name) throws DBusError, IOError, DatabaseError; public abstract Supplier[] get_supplier_list() throws DBusError, IOError; public abstract Supplier get_supplier(int id) throws DBusError, IOError; public abstract void add_supplier(string name, string postal_code, string city, string street, string phone, string website) throws DBusError, IOError, DatabaseError; |