From bdb594ada83058ae35edb5edf01703afa203e593 Mon Sep 17 00:00:00 2001 From: Louie S Date: Mon, 26 Feb 2024 17:04:26 -0500 Subject: Loading groups from db --- src/backend/db_sqlite.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/backend/db_sqlite.h') diff --git a/src/backend/db_sqlite.h b/src/backend/db_sqlite.h index 8563223..6e94fdd 100644 --- a/src/backend/db_sqlite.h +++ b/src/backend/db_sqlite.h @@ -4,6 +4,10 @@ #include #include +#include "../entry.h" +#include "../group.h" +#include "../rule.h" + namespace BackendDB { const QStringList create_table_queries = { "CREATE TABLE groups (" @@ -35,9 +39,10 @@ namespace BackendDB { ")" }; - QString getDBPath(); void init(); - void load(); + QList loadGroups(); + QList loadEntries(); + QList loadRules(); void insertGroup(int new_group); // param datatype TBD void insertEntry(int new_entry); // param datatype TBD void insertRule(int new_rule); // param datatype TBD -- cgit