/*
* Copyright (C) 2010 Ixonos Plc.
- * Copyright (C) 2011 Philipp Spitzer, gregor herrmann
+ * Copyright (C) 2011-2012 Philipp Spitzer, gregor herrmann, Stefan Stahl
*
* This file is part of ConfClerk.
*
{
QDomDocument document;
QString xml_error;
- if (!document.setContent (aData, false, &xml_error)) {
- error_message("Could not parse schedule: " + xml_error);
+ int xml_error_line;
+ int xml_error_column;
+ if (!document.setContent (aData, false, &xml_error, &xml_error_line, &xml_error_column)) {
+ error_message("Could not parse schedule: " + xml_error + " at line " + QString("%1").arg(xml_error_line) + " column " + QString("%1").arg(xml_error_column));
return;
}
QDomElement conferenceElement = scheduleElement.firstChildElement("conference");
if (!conferenceElement.isNull())
{
+ emit(parsingScheduleBegin());
QHash<QString,QString> conference;
conference["id"] = QString::number(0); // conference ID is assigned automatically, or obtained from the DB
conference["title"] = conferenceElement.firstChildElement("title").text();
SqlEngine::addConferenceToDB(conference);
confId = conference["id"].toInt();
conference_title = conference["title"];
- emit(parsingScheduleBegin());
}
// we need to get count of all events in order to emit 'progressStatus' signal