- if ( mRoomName.isEmpty() )
- {
- QSqlQuery query;
- // TODO: conference ID isn't used here
- query.prepare("SELECT name FROM room WHERE id = :roomId");
- query.bindValue(":roomId", roomId());
- query.exec();
- // TODO: handle qeury error
- //qDebug() << query.lastError();
- if(query.next())
- mRoomName = query.record().value("name").toString();
- else
- mRoomName = QString("not-available");
- }
- return mRoomName;
-}
-
-int Event::roomId()
-{
- if ( mRoomId == 0 )