initial
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# Automatically generated configuration for PyQt5.QtXmlPatterns.
|
||||
|
||||
sip-version = "6.8.6"
|
||||
sip-abi-version = "12.15"
|
||||
module-tags = ["Qt_5_15_14", "WS_X11"]
|
||||
module-disabled-features = []
|
||||
@@ -0,0 +1,62 @@
|
||||
// QtXmlPatternsmod.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
%Module(name=PyQt5.QtXmlPatterns, keyword_arguments="Optional", use_limited_api=True)
|
||||
|
||||
%Import QtCore/QtCoremod.sip
|
||||
%Import QtNetwork/QtNetworkmod.sip
|
||||
|
||||
%Copying
|
||||
Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
|
||||
This file is part of PyQt5.
|
||||
|
||||
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 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.
|
||||
|
||||
If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
then you may purchase a commercial license. For more information contact
|
||||
info@riverbankcomputing.com.
|
||||
|
||||
This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
%End
|
||||
|
||||
%DefaultSupertype sip.simplewrapper
|
||||
|
||||
%Include qabstractmessagehandler.sip
|
||||
%Include qabstracturiresolver.sip
|
||||
%Include qabstractxmlnodemodel.sip
|
||||
%Include qabstractxmlreceiver.sip
|
||||
%Include qsimplexmlnodemodel.sip
|
||||
%Include qsourcelocation.sip
|
||||
%Include qxmlformatter.sip
|
||||
%Include qxmlname.sip
|
||||
%Include qxmlnamepool.sip
|
||||
%Include qxmlquery.sip
|
||||
%Include qxmlresultitems.sip
|
||||
%Include qxmlschema.sip
|
||||
%Include qxmlschemavalidator.sip
|
||||
%Include qxmlserializer.sip
|
||||
@@ -0,0 +1,65 @@
|
||||
// qabstractmessagehandler.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QAbstractMessageHandler : public QObject
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qabstractmessagehandler.h>
|
||||
%End
|
||||
|
||||
%ConvertToSubClassCode
|
||||
static struct class_graph {
|
||||
const char *name;
|
||||
sipTypeDef **type;
|
||||
int yes, no;
|
||||
} graph[] = {
|
||||
{sipName_QAbstractUriResolver, &sipType_QAbstractUriResolver, -1, 1},
|
||||
{sipName_QAbstractMessageHandler, &sipType_QAbstractMessageHandler, -1, -1},
|
||||
};
|
||||
|
||||
int i = 0;
|
||||
|
||||
sipType = NULL;
|
||||
|
||||
do
|
||||
{
|
||||
struct class_graph *cg = &graph[i];
|
||||
|
||||
if (cg->name != NULL && sipCpp->inherits(cg->name))
|
||||
{
|
||||
sipType = *cg->type;
|
||||
i = cg->yes;
|
||||
}
|
||||
else
|
||||
i = cg->no;
|
||||
}
|
||||
while (i >= 0);
|
||||
%End
|
||||
|
||||
public:
|
||||
QAbstractMessageHandler(QObject *parent /TransferThis/ = 0);
|
||||
virtual ~QAbstractMessageHandler();
|
||||
void message(QtMsgType type, const QString &description, const QUrl &identifier = QUrl(), const QSourceLocation &sourceLocation = QSourceLocation());
|
||||
|
||||
protected:
|
||||
virtual void handleMessage(QtMsgType type, const QString &description, const QUrl &identifier, const QSourceLocation &sourceLocation) = 0;
|
||||
};
|
||||
@@ -0,0 +1,33 @@
|
||||
// qabstracturiresolver.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QAbstractUriResolver : public QObject
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qabstracturiresolver.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
QAbstractUriResolver(QObject *parent /TransferThis/ = 0);
|
||||
virtual ~QAbstractUriResolver();
|
||||
virtual QUrl resolve(const QUrl &relative, const QUrl &baseURI) const = 0;
|
||||
};
|
||||
@@ -0,0 +1,131 @@
|
||||
// qabstractxmlnodemodel.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QXmlNodeModelIndex
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qabstractxmlnodemodel.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
QXmlNodeModelIndex();
|
||||
QXmlNodeModelIndex(const QXmlNodeModelIndex &other);
|
||||
bool operator==(const QXmlNodeModelIndex &other) const;
|
||||
bool operator!=(const QXmlNodeModelIndex &other) const;
|
||||
|
||||
enum NodeKind
|
||||
{
|
||||
Attribute,
|
||||
Comment,
|
||||
Document,
|
||||
Element,
|
||||
Namespace,
|
||||
ProcessingInstruction,
|
||||
Text,
|
||||
};
|
||||
|
||||
enum DocumentOrder
|
||||
{
|
||||
Precedes,
|
||||
Is,
|
||||
Follows,
|
||||
};
|
||||
|
||||
qint64 data() const;
|
||||
SIP_PYOBJECT internalPointer() const;
|
||||
%MethodCode
|
||||
sipRes = reinterpret_cast<PyObject *>(sipCpp->internalPointer());
|
||||
|
||||
if (!sipRes)
|
||||
sipRes = Py_None;
|
||||
|
||||
Py_INCREF(sipRes);
|
||||
%End
|
||||
|
||||
const QAbstractXmlNodeModel *model() const;
|
||||
qint64 additionalData() const;
|
||||
bool isNull() const;
|
||||
long __hash__() const;
|
||||
%MethodCode
|
||||
sipRes = qHash(*sipCpp);
|
||||
%End
|
||||
};
|
||||
|
||||
class QAbstractXmlNodeModel
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qabstractxmlnodemodel.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
enum SimpleAxis
|
||||
{
|
||||
Parent,
|
||||
FirstChild,
|
||||
PreviousSibling,
|
||||
NextSibling,
|
||||
};
|
||||
|
||||
QAbstractXmlNodeModel();
|
||||
virtual ~QAbstractXmlNodeModel();
|
||||
virtual QUrl baseUri(const QXmlNodeModelIndex &ni) const = 0;
|
||||
virtual QUrl documentUri(const QXmlNodeModelIndex &ni) const = 0;
|
||||
virtual QXmlNodeModelIndex::NodeKind kind(const QXmlNodeModelIndex &ni) const = 0;
|
||||
virtual QXmlNodeModelIndex::DocumentOrder compareOrder(const QXmlNodeModelIndex &ni1, const QXmlNodeModelIndex &ni2) const = 0;
|
||||
virtual QXmlNodeModelIndex root(const QXmlNodeModelIndex &n) const = 0;
|
||||
virtual QXmlName name(const QXmlNodeModelIndex &ni) const = 0;
|
||||
virtual QString stringValue(const QXmlNodeModelIndex &n) const = 0;
|
||||
virtual QVariant typedValue(const QXmlNodeModelIndex &n) const = 0;
|
||||
virtual QVector<QXmlName> namespaceBindings(const QXmlNodeModelIndex &n) const = 0;
|
||||
virtual QXmlNodeModelIndex elementById(const QXmlName &NCName) const = 0;
|
||||
virtual QVector<QXmlNodeModelIndex> nodesByIdref(const QXmlName &NCName) const = 0;
|
||||
QSourceLocation sourceLocation(const QXmlNodeModelIndex &index) const;
|
||||
|
||||
protected:
|
||||
virtual QXmlNodeModelIndex nextFromSimpleAxis(QAbstractXmlNodeModel::SimpleAxis axis, const QXmlNodeModelIndex &origin) const = 0;
|
||||
virtual QVector<QXmlNodeModelIndex> attributes(const QXmlNodeModelIndex &element) const = 0;
|
||||
QXmlNodeModelIndex createIndex(qint64 data) const;
|
||||
QXmlNodeModelIndex createIndex(qint64 data, qint64 additionalData) const;
|
||||
QXmlNodeModelIndex createIndex(SIP_PYOBJECT pointer, qint64 additionalData = 0) const [QXmlNodeModelIndex (void *pointer, qint64 additionalData = 0)];
|
||||
|
||||
private:
|
||||
QAbstractXmlNodeModel(const QAbstractXmlNodeModel &);
|
||||
};
|
||||
|
||||
class QXmlItem
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qabstractxmlnodemodel.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
QXmlItem();
|
||||
QXmlItem(const QXmlItem &other);
|
||||
QXmlItem(const QXmlNodeModelIndex &node);
|
||||
QXmlItem(const QVariant &atomicValue);
|
||||
~QXmlItem();
|
||||
bool isNull() const;
|
||||
bool isNode() const;
|
||||
bool isAtomicValue() const;
|
||||
QVariant toAtomicValue() const;
|
||||
QXmlNodeModelIndex toNodeModelIndex() const;
|
||||
};
|
||||
@@ -0,0 +1,47 @@
|
||||
// qabstractxmlreceiver.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QAbstractXmlReceiver
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qabstractxmlreceiver.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
QAbstractXmlReceiver();
|
||||
virtual ~QAbstractXmlReceiver();
|
||||
virtual void startElement(const QXmlName &name) = 0;
|
||||
virtual void endElement() = 0;
|
||||
virtual void attribute(const QXmlName &name, const QStringRef &value) = 0;
|
||||
virtual void comment(const QString &value) = 0;
|
||||
virtual void characters(const QStringRef &value) = 0;
|
||||
virtual void startDocument() = 0;
|
||||
virtual void endDocument() = 0;
|
||||
virtual void processingInstruction(const QXmlName &target, const QString &value) = 0;
|
||||
virtual void atomicValue(const QVariant &value) = 0;
|
||||
virtual void namespaceBinding(const QXmlName &name) = 0;
|
||||
virtual void startOfSequence() = 0;
|
||||
virtual void endOfSequence() = 0;
|
||||
|
||||
private:
|
||||
QAbstractXmlReceiver(const QAbstractXmlReceiver &);
|
||||
};
|
||||
@@ -0,0 +1,38 @@
|
||||
// qsimplexmlnodemodel.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QSimpleXmlNodeModel : public QAbstractXmlNodeModel
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qsimplexmlnodemodel.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
QSimpleXmlNodeModel(const QXmlNamePool &namePool);
|
||||
virtual ~QSimpleXmlNodeModel();
|
||||
virtual QUrl baseUri(const QXmlNodeModelIndex &node) const;
|
||||
QXmlNamePool &namePool() const;
|
||||
virtual QVector<QXmlName> namespaceBindings(const QXmlNodeModelIndex &) const;
|
||||
virtual QString stringValue(const QXmlNodeModelIndex &node) const;
|
||||
virtual QXmlNodeModelIndex elementById(const QXmlName &id) const;
|
||||
virtual QVector<QXmlNodeModelIndex> nodesByIdref(const QXmlName &idref) const;
|
||||
};
|
||||
@@ -0,0 +1,47 @@
|
||||
// qsourcelocation.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QSourceLocation
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qsourcelocation.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
QSourceLocation();
|
||||
QSourceLocation(const QSourceLocation &other);
|
||||
QSourceLocation(const QUrl &u, int line = -1, int column = -1);
|
||||
~QSourceLocation();
|
||||
bool operator==(const QSourceLocation &other) const;
|
||||
bool operator!=(const QSourceLocation &other) const;
|
||||
qint64 column() const;
|
||||
void setColumn(qint64 newColumn);
|
||||
qint64 line() const;
|
||||
void setLine(qint64 newLine);
|
||||
QUrl uri() const;
|
||||
void setUri(const QUrl &newUri);
|
||||
bool isNull() const;
|
||||
long __hash__() const;
|
||||
%MethodCode
|
||||
sipRes = qHash(*sipCpp);
|
||||
%End
|
||||
};
|
||||
@@ -0,0 +1,44 @@
|
||||
// qxmlformatter.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QXmlFormatter : public QXmlSerializer
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qxmlformatter.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
QXmlFormatter(const QXmlQuery &query, QIODevice *outputDevice);
|
||||
virtual void characters(const QStringRef &value);
|
||||
virtual void comment(const QString &value);
|
||||
virtual void startElement(const QXmlName &name);
|
||||
virtual void endElement();
|
||||
virtual void attribute(const QXmlName &name, const QStringRef &value);
|
||||
virtual void processingInstruction(const QXmlName &name, const QString &value);
|
||||
virtual void atomicValue(const QVariant &value);
|
||||
virtual void startDocument();
|
||||
virtual void endDocument();
|
||||
virtual void startOfSequence();
|
||||
virtual void endOfSequence();
|
||||
int indentationDepth() const;
|
||||
void setIndentationDepth(int depth);
|
||||
};
|
||||
@@ -0,0 +1,48 @@
|
||||
// qxmlname.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QXmlName
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qxmlname.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
QXmlName();
|
||||
QXmlName(QXmlNamePool &namePool, const QString &localName, const QString &namespaceUri = QString(), const QString &prefix = QString());
|
||||
%If (Qt_5_9_0 -)
|
||||
QXmlName(const QXmlName &other);
|
||||
%End
|
||||
QString namespaceUri(const QXmlNamePool &query) const;
|
||||
QString prefix(const QXmlNamePool &query) const;
|
||||
QString localName(const QXmlNamePool &query) const;
|
||||
QString toClarkName(const QXmlNamePool &query) const;
|
||||
bool operator==(const QXmlName &other) const;
|
||||
bool operator!=(const QXmlName &other) const;
|
||||
bool isNull() const;
|
||||
static bool isNCName(const QString &candidate);
|
||||
static QXmlName fromClarkName(const QString &clarkName, const QXmlNamePool &namePool);
|
||||
long __hash__() const;
|
||||
%MethodCode
|
||||
sipRes = qHash(*sipCpp);
|
||||
%End
|
||||
};
|
||||
@@ -0,0 +1,33 @@
|
||||
// qxmlnamepool.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QXmlNamePool
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qxmlnamepool.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
QXmlNamePool();
|
||||
QXmlNamePool(const QXmlNamePool &other);
|
||||
~QXmlNamePool();
|
||||
};
|
||||
@@ -0,0 +1,126 @@
|
||||
// qxmlquery.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QXmlQuery
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qxmlquery.h>
|
||||
%End
|
||||
|
||||
%TypeCode
|
||||
// Needed by the evaluateToStringList() %MethodCode.
|
||||
#include <qstringlist.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
enum QueryLanguage
|
||||
{
|
||||
XQuery10,
|
||||
XSLT20,
|
||||
};
|
||||
|
||||
QXmlQuery();
|
||||
QXmlQuery(const QXmlQuery &other);
|
||||
QXmlQuery(const QXmlNamePool &np);
|
||||
QXmlQuery(QXmlQuery::QueryLanguage queryLanguage, const QXmlNamePool &pool = QXmlNamePool());
|
||||
~QXmlQuery();
|
||||
void setMessageHandler(QAbstractMessageHandler *messageHandler /KeepReference/);
|
||||
QAbstractMessageHandler *messageHandler() const;
|
||||
void setQuery(const QString &sourceCode, const QUrl &documentUri = QUrl());
|
||||
void setQuery(QIODevice *sourceCode, const QUrl &documentUri = QUrl());
|
||||
void setQuery(const QUrl &queryURI, const QUrl &baseUri = QUrl());
|
||||
QXmlNamePool namePool() const;
|
||||
void bindVariable(const QXmlName &name, const QXmlItem &value);
|
||||
void bindVariable(const QXmlName &name, QIODevice *);
|
||||
void bindVariable(const QXmlName &name, const QXmlQuery &query);
|
||||
void bindVariable(const QString &localName, const QXmlItem &value);
|
||||
void bindVariable(const QString &localName, QIODevice *);
|
||||
void bindVariable(const QString &localName, const QXmlQuery &query);
|
||||
bool isValid() const;
|
||||
void evaluateTo(QXmlResultItems *result) const;
|
||||
bool evaluateTo(QAbstractXmlReceiver *callback) const;
|
||||
SIP_PYOBJECT evaluateToStringList() const /TypeHint="QStringList"/;
|
||||
%MethodCode
|
||||
static const sipTypeDef *sipType_QStringList = 0;
|
||||
|
||||
if (!sipType_QStringList)
|
||||
sipType_QStringList = sipFindType("QStringList");
|
||||
|
||||
bool ok;
|
||||
QStringList *result = new QStringList;
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
ok = sipCpp->evaluateTo(result);
|
||||
Py_END_ALLOW_THREADS
|
||||
|
||||
if (ok)
|
||||
{
|
||||
sipRes = sipConvertFromNewType(result, sipType_QStringList, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
delete result;
|
||||
sipRes = Py_None;
|
||||
Py_INCREF(Py_None);
|
||||
}
|
||||
%End
|
||||
|
||||
bool evaluateTo(QIODevice *target) const;
|
||||
SIP_PYOBJECT evaluateToString() const /TypeHint="QString"/;
|
||||
%MethodCode
|
||||
static const sipTypeDef *sipType_QStringList = 0;
|
||||
|
||||
if (!sipType_QStringList)
|
||||
sipType_QStringList = sipFindType("QStringList");
|
||||
|
||||
bool ok;
|
||||
QString *result = new QString;
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
ok = sipCpp->evaluateTo(result);
|
||||
Py_END_ALLOW_THREADS
|
||||
|
||||
if (ok)
|
||||
{
|
||||
sipRes = sipConvertFromNewType(result, sipType_QString, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
delete result;
|
||||
sipRes = Py_None;
|
||||
Py_INCREF(Py_None);
|
||||
}
|
||||
%End
|
||||
|
||||
void setUriResolver(const QAbstractUriResolver *resolver /KeepReference/);
|
||||
const QAbstractUriResolver *uriResolver() const;
|
||||
void setFocus(const QXmlItem &item);
|
||||
bool setFocus(const QUrl &documentURI);
|
||||
bool setFocus(QIODevice *document);
|
||||
bool setFocus(const QString &focus);
|
||||
void setInitialTemplateName(const QXmlName &name);
|
||||
void setInitialTemplateName(const QString &name);
|
||||
QXmlName initialTemplateName() const;
|
||||
void setNetworkAccessManager(QNetworkAccessManager *newManager /KeepReference/);
|
||||
QNetworkAccessManager *networkAccessManager() const;
|
||||
QXmlQuery::QueryLanguage queryLanguage() const;
|
||||
};
|
||||
@@ -0,0 +1,38 @@
|
||||
// qxmlresultitems.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QXmlResultItems
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qxmlresultitems.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
QXmlResultItems();
|
||||
virtual ~QXmlResultItems();
|
||||
bool hasError() const;
|
||||
QXmlItem next();
|
||||
QXmlItem current() const;
|
||||
|
||||
private:
|
||||
QXmlResultItems(const QXmlResultItems &);
|
||||
};
|
||||
@@ -0,0 +1,50 @@
|
||||
// qxmlschema.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QXmlSchema
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qxmlschema.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
QXmlSchema();
|
||||
QXmlSchema(const QXmlSchema &other);
|
||||
|
||||
private:
|
||||
QXmlSchema &operator=(const QXmlSchema &);
|
||||
|
||||
public:
|
||||
~QXmlSchema();
|
||||
bool load(const QUrl &source) /ReleaseGIL/;
|
||||
bool load(QIODevice *source, const QUrl &documentUri = QUrl()) /ReleaseGIL/;
|
||||
bool load(const QByteArray &data, const QUrl &documentUri = QUrl());
|
||||
bool isValid() const;
|
||||
QXmlNamePool namePool() const;
|
||||
QUrl documentUri() const;
|
||||
void setMessageHandler(QAbstractMessageHandler *handler /KeepReference/);
|
||||
QAbstractMessageHandler *messageHandler() const;
|
||||
void setUriResolver(const QAbstractUriResolver *resolver /KeepReference/);
|
||||
const QAbstractUriResolver *uriResolver() const;
|
||||
void setNetworkAccessManager(QNetworkAccessManager *networkmanager /KeepReference/);
|
||||
QNetworkAccessManager *networkAccessManager() const;
|
||||
};
|
||||
@@ -0,0 +1,59 @@
|
||||
// qxmlschemavalidator.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QXmlSchemaValidator
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qxmlschemavalidator.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
QXmlSchemaValidator();
|
||||
QXmlSchemaValidator(const QXmlSchema &schema);
|
||||
~QXmlSchemaValidator();
|
||||
void setSchema(const QXmlSchema &schema);
|
||||
bool validate(const QUrl &source) const /ReleaseGIL/;
|
||||
bool validate(QIODevice *source, const QUrl &documentUri = QUrl()) const /ReleaseGIL/;
|
||||
bool validate(const QByteArray &data, const QUrl &documentUri = QUrl()) const;
|
||||
QXmlNamePool namePool() const;
|
||||
QXmlSchema schema() const;
|
||||
%MethodCode
|
||||
// For reasons we don't quite understand QXmlSchema's copy ctor has to be
|
||||
// private as far as sip is concerned - otherwise we get compiler errors.
|
||||
// However that means that sip generates the wrong code here, because it
|
||||
// doesn't realise it can take a copy of the result.
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
sipRes = new QXmlSchema(sipCpp->schema());
|
||||
Py_END_ALLOW_THREADS
|
||||
%End
|
||||
|
||||
void setMessageHandler(QAbstractMessageHandler *handler /KeepReference/);
|
||||
QAbstractMessageHandler *messageHandler() const;
|
||||
void setUriResolver(const QAbstractUriResolver *resolver /KeepReference/);
|
||||
const QAbstractUriResolver *uriResolver() const;
|
||||
void setNetworkAccessManager(QNetworkAccessManager *networkmanager /KeepReference/);
|
||||
QNetworkAccessManager *networkAccessManager() const;
|
||||
|
||||
private:
|
||||
QXmlSchemaValidator(const QXmlSchemaValidator &);
|
||||
};
|
||||
@@ -0,0 +1,46 @@
|
||||
// qxmlserializer.sip generated by MetaSIP
|
||||
//
|
||||
// This file is part of the QtXmlPatterns Python extension module.
|
||||
//
|
||||
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
//
|
||||
// This file is part of PyQt5.
|
||||
//
|
||||
// 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 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.
|
||||
//
|
||||
// If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
// then you may purchase a commercial license. For more information contact
|
||||
// info@riverbankcomputing.com.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
class QXmlSerializer : public QAbstractXmlReceiver
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <qxmlserializer.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
QXmlSerializer(const QXmlQuery &query, QIODevice *outputDevice);
|
||||
virtual void namespaceBinding(const QXmlName &nb);
|
||||
virtual void characters(const QStringRef &value);
|
||||
virtual void comment(const QString &value);
|
||||
virtual void startElement(const QXmlName &name);
|
||||
virtual void endElement();
|
||||
virtual void attribute(const QXmlName &name, const QStringRef &value);
|
||||
virtual void processingInstruction(const QXmlName &name, const QString &value);
|
||||
virtual void atomicValue(const QVariant &value);
|
||||
virtual void startDocument();
|
||||
virtual void endDocument();
|
||||
virtual void startOfSequence();
|
||||
virtual void endOfSequence();
|
||||
QIODevice *outputDevice() const;
|
||||
void setCodec(const QTextCodec *codec /KeepReference/);
|
||||
const QTextCodec *codec() const;
|
||||
};
|
||||
Reference in New Issue
Block a user