summaryrefslogtreecommitdiffstats
path: root/tests/auto/xml/sax/qxmlsimplereader/parser/parser.h
diff options
context:
space:
mode:
authorJo Asplin <jo.asplin@nokia.com>2011-09-06 10:01:38 +0200
committerJo Asplin <jo.asplin@nokia.com>2011-09-06 10:31:40 +0200
commit665e4ec0ec959a12a6b66cdd0533bd40b29cd56d (patch)
tree98dd4ebb79d76067c3ec6dca15455e29fa35baae /tests/auto/xml/sax/qxmlsimplereader/parser/parser.h
parent48ba459580c9e4ce28dbb2c3ce433175148da5a1 (diff)
Moved xml autotests into new directory structure
Task-number: QTBUG-21260 Change-Id: I7bc30227d4e71e8783f274dbfa758399dca546d4 Reviewed-on: http://codereview.qt.nokia.com/4146 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests/auto/xml/sax/qxmlsimplereader/parser/parser.h')
-rw-r--r--tests/auto/xml/sax/qxmlsimplereader/parser/parser.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/tests/auto/xml/sax/qxmlsimplereader/parser/parser.h b/tests/auto/xml/sax/qxmlsimplereader/parser/parser.h
new file mode 100644
index 0000000000..e3d95ce811
--- /dev/null
+++ b/tests/auto/xml/sax/qxmlsimplereader/parser/parser.h
@@ -0,0 +1,64 @@
+/****************************************************************************
+**
+** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** GNU Lesser General Public License Usage
+** This file may be used under the terms of the GNU Lesser General Public
+** License version 2.1 as published by the Free Software Foundation and
+** appearing in the file LICENSE.LGPL included in the packaging of this
+** file. Please review the following information to ensure the GNU Lesser
+** General Public License version 2.1 requirements will be met:
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU General
+** Public License version 3.0 as published by the Free Software Foundation
+** and appearing in the file LICENSE.GPL included in the packaging of this
+** file. Please review the following information to ensure the GNU General
+** Public License version 3.0 requirements will be met:
+** http://www.gnu.org/copyleft/gpl.html.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+#ifndef PARSER_H
+#define PARSER_H
+
+#include <qfile.h>
+#include <qstring.h>
+#include <qxml.h>
+
+class ContentHandler;
+
+class Parser : public QXmlSimpleReader
+{
+ public:
+ Parser();
+ ~Parser();
+
+ bool parseFile(QFile *file);
+ QString result() const;
+ QString errorMsg() const;
+
+ private:
+ ContentHandler *handler;
+};
+
+#endif