summaryrefslogtreecommitdiff
path: root/src/backend/db_sqlite.h
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-02-26 17:04:26 -0500
committerLouie S <louie@example.com>2024-02-26 17:04:26 -0500
commitbdb594ada83058ae35edb5edf01703afa203e593 (patch)
treeba901a1da8bcd7cffc377cd5566b0afa28e0bff7 /src/backend/db_sqlite.h
parent3ef9931e59ef38d9bbf045b07a4dbab2fd52e3f5 (diff)
Loading groups from db
Diffstat (limited to 'src/backend/db_sqlite.h')
-rw-r--r--src/backend/db_sqlite.h9
1 files changed, 7 insertions, 2 deletions
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 <QString>
#include <QStringList>
+#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<Group *> loadGroups();
+ QList<Entry *> loadEntries();
+ QList<Rule *> 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