X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/blobdiff_plain/508de3335b33f912a20b1228016ae0b165fc48be..080dc7d603d45ba0662aa731418993ddd45b5fe8:/src/mvc/room.h diff --git a/src/mvc/room.h b/src/mvc/room.h index b961458..c65539f 100644 --- a/src/mvc/room.h +++ b/src/mvc/room.h @@ -1,26 +1,27 @@ /* * Copyright (C) 2010 Ixonos Plc. + * Copyright (C) 2011-2024 Philipp Spitzer, gregor herrmann, Stefan Stahl * - * This file is part of fosdem-schedule. + * This file is part of ConfClerk. * - * fosdem-schedule is free software: you can redistribute it and/or modify it + * ConfClerk is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, either version 2 of the License, or (at your option) * any later version. * - * fosdem-schedule is distributed in the hope that it will be useful, but + * ConfClerk is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along with - * fosdem-schedule. If not, see . + * ConfClerk. If not, see . */ #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();