X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/blobdiff_plain/6df32f20316aab78c979f50ff17798cc6dd7e9e0..080dc7d603d45ba0662aa731418993ddd45b5fe8:/src/mvc/room.h diff --git a/src/mvc/room.h b/src/mvc/room.h index f10b8be..c65539f 100644 --- a/src/mvc/room.h +++ b/src/mvc/room.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2010 Ixonos Plc. + * Copyright (C) 2011-2024 Philipp Spitzer, gregor herrmann, Stefan Stahl * * This file is part of ConfClerk. * @@ -20,7 +21,7 @@ #ifndef ROOM_H_ #define ROOM_H_ -#include +#include "ormrecord.h" class Room : public OrmRecord { @@ -34,14 +35,6 @@ public: void setId(int id) { setValue("id", id); } QString name() const { return value("name").toString(); } void setName(const QString & type) { setValue("name", type); } - // TODO: make naming consistent - either "picture" or "map" - QVariant map() const { return value("picture"); } - bool hasMap() const - { - // empty strings also treasted as NULL, - // as storing NULLs requires rewrite of storing code and DB scheme - return !isNull("picture") and !value("picture").toString().isEmpty(); - } int insert(); public: static QList getAll();