diff options
Diffstat (limited to 'server/src/database.h')
-rw-r--r-- | server/src/database.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/server/src/database.h b/server/src/database.h index 5a82d67..396dda4 100644 --- a/server/src/database.h +++ b/server/src/database.h @@ -72,6 +72,27 @@ public: else return ""; } + void addFieldname(std::string name, std::string description) + { + if(!dao) return; + dao->addFieldname(name, description); + } + + void delFieldname(std::string name) + { + if(!dao) return; + dao->delFieldname(name); + } + + std::vector<Fieldname> getFieldnames() + { + if(!dao) { + std::vector<Fieldname> fieldnames; + return fieldnames; + } + return dao->getFieldnames(); + } + private: PracroDAO *dao; }; |