]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/mvc/conference.cpp
store URL's for conferences
[toast/confclerk.git] / src / mvc / conference.cpp
index b08a2480fe3a4166c91cccb648d7ec8e9d282fe9..23c4cc204c536418897f1efdb9f2691e124eb0d3 100644 (file)
@@ -29,7 +29,8 @@ QSqlRecord const Conference::sColumns = Conference::toRecord(QList<QSqlField>()
     << QSqlField("days", QVariant::Int)
     << QSqlField("day_change", QVariant::Int)
     << QSqlField("timeslot_duration", QVariant::Int)
-    << QSqlField("active", QVariant::Bool));
+    << QSqlField("active", QVariant::Bool)
+    << QSqlField("url", QVariant::String));
 
 QString const Conference::sTableName = QString("conference");
 
@@ -57,6 +58,10 @@ int Conference::activeConference()
     while(query.next())
         activeConfs.append(query.record().value("id").toInt());
 
+    qDebug() << __PRETTY_FUNCTION__
+        << "activeConfs.count()" << activeConfs.count()
+        ;
+
     if(activeConfs.count()==0) // no active DB
         return 1;
     else // even if there are more active confs, the first from the list is confidered active