/*
* Copyright (C) 2010 Ixonos Plc.
- * Copyright (C) 2011 Philipp Spitzer, gregor herrmann
+ * Copyright (C) 2011-2013 Philipp Spitzer, gregor herrmann, Stefan Stahl
*
* This file is part of ConfClerk.
*
#ifndef ROOM_H_
#define ROOM_H_
-#include <ormrecord.h>
+#include "ormrecord.h"
class Room : public OrmRecord<Room>
{
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<Room> getAll();