1/****************************************************************************
2**
3** Copyright (C) 2016 The Qt Company Ltd.
4** Contact: https://www.qt.io/licensing/
5**
6** This file is part of the test suite of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:GPL-EXCEPT$
9** Commercial License Usage
10** Licensees holding valid commercial Qt licenses may use this file in
11** accordance with the commercial license agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and The Qt Company. For licensing terms
14** and conditions see https://www.qt.io/terms-conditions. For further
15** information use the contact form at https://www.qt.io/contact-us.
16**
17** GNU General Public License Usage
18** Alternatively, this file may be used under the terms of the GNU
19** General Public License version 3 as published by the Free Software
20** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21** included in the packaging of this file. Please review the following
22** information to ensure the GNU General Public License requirements will
23** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24**
25** $QT_END_LICENSE$
26**
27****************************************************************************/
28
29#ifndef PatternistSDK_Global_H
30#define PatternistSDK_Global_H
31
32#include <QString>
33
34#include <private/qitem_p.h>
35#include <private/qnamepool_p.h>
36
37/**
38 * @short Contains testing utilities for Patternist, interfacing W3C's XQuery Test Suite.
39 *
40 * @see <a href="http://www.w3.org/XML/Query/test-suite/">XML Query Test Suite</a>
41 * @author Frans Englich <frans.englich@nokia.com>
42 */
43QT_BEGIN_NAMESPACE
44
45namespace QPatternistSDK
46{
47 /**
48 * @short Contains global constants.
49 *
50 * @ingroup PatternistSDK
51 * @author Frans Englich <frans.englich@nokia.com>
52 */
53 class Global
54 {
55 public:
56
57 /**
58 * The namespace which the XQTS test case catalog(specified by Catalog.xsd)
59 * is in. The namespace is: <tt>http://www.w3.org/2005/02/query-test-XQTSCatalog</tt>
60 */
61 static const QString xqtsCatalogNS;
62
63 /**
64 * The namespace which the XQTS test results collection(specified by XQTSResult.xsd)
65 * is in. The namespace is: <tt>http://www.w3.org/2005/02/query-test-XQTSResult</tt>
66 */
67 static const QString xqtsResultNS;
68
69 /**
70 * The organization which created PatternistSDK. It say something
71 * in the direction of "Patternist Team", and is used for QSettings and the like.
72 */
73 static const QString organizationName;
74
75 /**
76 * The namespace which W3C's XSL-T test suite resides in.
77 */
78 static const QString xsltsCatalogNS;
79
80 /**
81 * The version of PatternistSDK. The value has currently no other
82 * meaning than that larger means older. This version information is supplied to
83 * QMainWindow::restoreState() and QMainWindow::saveState().
84 */
85 static const qint16 versionNumber;
86
87 /**
88 * Parses the lexical space of @c xs:boolean,
89 * with the exception that the empty string is considered @c false.
90 */
91 static bool readBoolean(const QString &lexicalSpace);
92
93 static QPatternist::NamePool::Ptr namePool();
94 static QXmlNamePool namePoolAsPublic();
95 };
96}
97
98QT_END_NAMESPACE
99
100#endif
101// vim: et:ts=4:sw=4:sts=4
102

source code of qtxmlpatterns/tests/auto/xmlpatternssdk/Global.h