Changeset f299a08 for src/sql


Ignore:
Timestamp:
04/22/10 17:34:03 (12 years ago)
Author:
kirilma <kirilma@…>
Branches:
master, qt5
Children:
66428e7
Parents:
c8c414f
Message:

remove obsoleted code

also fix some types

Location:
src/sql
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sql/schedulexmlparser.cpp

    rc8c414f rf299a08  
    3232}
    3333
    34 int ScheduleXmlParser::parseData(const QByteArray &aData, const QString& url)
     34void ScheduleXmlParser::parseData(const QByteArray &aData, const QString& url)
    3535{
    3636    QDomDocument document;
     
    3838    if (!document.setContent (aData, false, &xml_error)) {
    3939        error_message("Could not parse schedule: " + xml_error);
    40         return -1;
     40        return;
    4141    }
    4242
     
    156156    } // schedule element
    157157    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    }
    161163}
    162164
  • src/sql/schedulexmlparser.h

    rc8c414f rf299a08  
    2929
    3030    public slots:
    31         int parseData(const QByteArray &aData, const QString& url); // returns 'confId' of parsed conference schedule
     31        void parseData(const QByteArray &aData, const QString& url);
    3232
    3333    signals:
Note: See TracChangeset for help on using the changeset viewer.