summaryrefslogtreecommitdiff
path: root/server/src/database.h
diff options
context:
space:
mode:
authordeva <deva>2009-07-10 09:59:41 +0000
committerdeva <deva>2009-07-10 09:59:41 +0000
commita619ccc300a00947207600e11fac848b7d37b26b (patch)
tree1fcfef3cdde2f176368b7a15f795a0ad5508687b /server/src/database.h
parentca32aba4df1b021b1acaa8f0650fa6a0cd7b9d80 (diff)
Fieldname queries added macrotool.
Diffstat (limited to 'server/src/database.h')
-rw-r--r--server/src/database.h21
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;
};