Ignore:
Timestamp:
04/15/10 14:01:48 (12 years ago)
Author:
kirilma <kirilma@…>
Branches:
master, qt5
Children:
f5b68a4
Parents:
be9b645
Message:

store URL's for conferences

  • use it at update
  • let user update the url before request
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/conference.h

    rbe9b645 rd06ae27  
    4949    int timeslotDuration() const { return value("timeslot_duration").toInt(); } // in seconds
    5050    bool isActive() const { return value("active").toBool(); }
     51    QString getUrl() const
     52    {
     53        QVariant val = value("url");
     54        qDebug() << __PRETTY_FUNCTION__ << val;
     55        if (val.isValid()) {
     56            return val.toString();
     57        } else {
     58            return QString();
     59        }
     60    }
    5161
    5262    void setId(int id) { setValue("id", id); }
     
    6171    void setTimeslotDuration(int timeslotDuration) { setValue("timeslot_duration", timeslotDuration); }
    6272    void setActive(bool active) { setValue("active", (int)((active))); }
     73    void setUrl(const QString& url) { setValue("url", url.isNull() ? QVariant() : url); }
    6374};
    6475
Note: See TracChangeset for help on using the changeset viewer.