Diffstat (limited to 'noncore/apps/tableviewer/db/xmlsource.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/tableviewer/db/xmlsource.cpp | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/noncore/apps/tableviewer/db/xmlsource.cpp b/noncore/apps/tableviewer/db/xmlsource.cpp index 94fec36..4ca6aee 100644 --- a/noncore/apps/tableviewer/db/xmlsource.cpp +++ b/noncore/apps/tableviewer/db/xmlsource.cpp @@ -20,8 +20,14 @@ #include "xmlsource.h" -#include <qdict.h> -#include <stdlib.h> -#include <qtextstream.h> #include "../xmlencodeattr.h" +/* OPIE */ +#include <opie2/odebug.h> +using namespace Opie::Core; +/* QT */ +#include <qdict.h> +#include <qtextstream.h> + +/* STD */ +#include <stdlib.h> @@ -142,3 +148,3 @@ QString DBXmlHandler::errorProtocol() { - qWarning("Error reading file"); + owarn << "Error reading file" << oendl; return errorProt; @@ -174,3 +180,3 @@ bool DBXmlHandler::startElement(const QString&, const QString&, if (key.isEmpty()) { - qWarning("empty key name"); + owarn << "empty key name" << oendl; return FALSE; @@ -192,3 +198,3 @@ bool DBXmlHandler::startElement(const QString&, const QString&, /* invalid key, we failed */ - qWarning("Invalid key in record"); + owarn << "Invalid key in record" << oendl; return FALSE; @@ -198,3 +204,3 @@ bool DBXmlHandler::startElement(const QString&, const QString&, } - qWarning("Unable to determine tag type"); + owarn << "Unable to determine tag type" << oendl; return FALSE; @@ -227,3 +233,3 @@ bool DBXmlHandler::endElement(const QString&, const QString&, // should only get a 'endElement' from one of the above states. - qWarning("Invalid end tag"); + owarn << "Invalid end tag" << oendl; return FALSE; @@ -256,3 +262,3 @@ bool DBXmlHandler::characters(const QString& ch) - qWarning("Junk characters found... ignored"); + owarn << "Junk characters found... ignored" << oendl; return TRUE; @@ -272,3 +278,3 @@ bool DBXmlHandler::warning(const QXmlParseException& exception) - qWarning(errorProt); + owarn << errorProt << oendl; return QXmlDefaultHandler::fatalError(exception); @@ -283,3 +289,3 @@ bool DBXmlHandler::error(const QXmlParseException& exception) - qWarning(errorProt); + owarn << errorProt << oendl; return QXmlDefaultHandler::fatalError(exception); @@ -294,3 +300,3 @@ bool DBXmlHandler::fatalError(const QXmlParseException& exception) - qWarning(errorProt); + owarn << errorProt << oendl; return QXmlDefaultHandler::fatalError(exception); |