- Timestamp:
- 04/22/10 17:34:03 (13 years ago)
- Branches:
- master, qt5
- Children:
- 66428e7
- Parents:
- c8c414f
- Location:
- src/sql
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sql/schedulexmlparser.cpp
rc8c414f rf299a08 32 32 } 33 33 34 intScheduleXmlParser::parseData(const QByteArray &aData, const QString& url)34 void ScheduleXmlParser::parseData(const QByteArray &aData, const QString& url) 35 35 { 36 36 QDomDocument document; … … 38 38 if (!document.setContent (aData, false, &xml_error)) { 39 39 error_message("Could not parse schedule: " + xml_error); 40 return -1;40 return; 41 41 } 42 42 … … 156 156 } // schedule element 157 157 SqlEngine::commitTransaction(); 158 emit parsingScheduleEnd(conference_title); 159 160 return confId; 158 if (!conference_title.isNull()) { 159 emit parsingScheduleEnd(conference_title); 160 } else { 161 error_message("Could not parse schedule"); 162 } 161 163 } 162 164 -
src/sql/schedulexmlparser.h
rc8c414f rf299a08 29 29 30 30 public slots: 31 int parseData(const QByteArray &aData, const QString& url); // returns 'confId' of parsed conference schedule31 void parseData(const QByteArray &aData, const QString& url); 32 32 33 33 signals:
Note: See TracChangeset
for help on using the changeset viewer.