com_trolltech_qt_xml1.h
266 lines
| 16.6 KiB
| text/x-c
|
CLexer
florianlink
|
r110 | #include <PythonQt.h> | ||
#include <QObject> | ||||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qiodevice.h> | ||||
#include <qlist.h> | ||||
#include <qtextcodec.h> | ||||
#include <qvector.h> | ||||
#include <qxmlstream.h> | ||||
class PythonQtWrapper_QXmlStreamAttribute : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QXmlStreamAttribute* new_QXmlStreamAttribute(); | ||||
QXmlStreamAttribute* new_QXmlStreamAttribute(const QString& namespaceUri, const QString& name, const QString& value); | ||||
QXmlStreamAttribute* new_QXmlStreamAttribute(const QString& qualifiedName, const QString& value); | ||||
QXmlStreamAttribute* new_QXmlStreamAttribute(const QXmlStreamAttribute& arg__1); | ||||
void delete_QXmlStreamAttribute(QXmlStreamAttribute* obj) { delete obj; } | ||||
florianlink
|
r128 | bool isDefault(QXmlStreamAttribute* theWrappedObject) const; | ||
QStringRef name(QXmlStreamAttribute* theWrappedObject) const; | ||||
florianlink
|
r120 | QStringRef namespaceUri(QXmlStreamAttribute* theWrappedObject) const; | ||
bool __ne__(QXmlStreamAttribute* theWrappedObject, const QXmlStreamAttribute& other) const; | ||||
bool __eq__(QXmlStreamAttribute* theWrappedObject, const QXmlStreamAttribute& other) const; | ||||
florianlink
|
r128 | QStringRef prefix(QXmlStreamAttribute* theWrappedObject) const; | ||
QStringRef qualifiedName(QXmlStreamAttribute* theWrappedObject) const; | ||||
QStringRef value(QXmlStreamAttribute* theWrappedObject) const; | ||||
florianlink
|
r110 | }; | ||
class PythonQtWrapper_QXmlStreamAttributes : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QXmlStreamAttributes* new_QXmlStreamAttributes(); | ||||
QXmlStreamAttributes* new_QXmlStreamAttributes(const QXmlStreamAttributes& other) { | ||||
florianlink
|
r186 | QXmlStreamAttributes* a = new QXmlStreamAttributes(); | ||
florianlink
|
r110 | *((QXmlStreamAttributes*)a) = other; | ||
return a; } | ||||
void delete_QXmlStreamAttributes(QXmlStreamAttributes* obj) { delete obj; } | ||||
void append(QXmlStreamAttributes* theWrappedObject, const QString& namespaceUri, const QString& name, const QString& value); | ||||
florianlink
|
r128 | void append(QXmlStreamAttributes* theWrappedObject, const QString& qualifiedName, const QString& value); | ||
void append(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& attribute); | ||||
florianlink
|
r120 | const QXmlStreamAttribute* at(QXmlStreamAttributes* theWrappedObject, int i) const; | ||
florianlink
|
r110 | int capacity(QXmlStreamAttributes* theWrappedObject) const; | ||
florianlink
|
r128 | void clear(QXmlStreamAttributes* theWrappedObject); | ||
bool contains(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t) const; | ||||
int count(QXmlStreamAttributes* theWrappedObject) const; | ||||
florianlink
|
r110 | int count(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t) const; | ||
bool empty(QXmlStreamAttributes* theWrappedObject) const; | ||||
bool endsWith(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t) const; | ||||
florianlink
|
r128 | QVector<QXmlStreamAttribute >* fill(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t, int size); | ||
florianlink
|
r110 | const QXmlStreamAttribute* first(QXmlStreamAttributes* theWrappedObject) const; | ||
QVector<QXmlStreamAttribute > static_QXmlStreamAttributes_fromList(const QList<QXmlStreamAttribute >& list); | ||||
florianlink
|
r128 | bool hasAttribute(QXmlStreamAttributes* theWrappedObject, const QString& namespaceUri, const QString& name) const; | ||
bool hasAttribute(QXmlStreamAttributes* theWrappedObject, const QString& qualifiedName) const; | ||||
florianlink
|
r110 | int indexOf(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t, int from) const; | ||
bool isEmpty(QXmlStreamAttributes* theWrappedObject) const; | ||||
florianlink
|
r186 | bool isSharedWith(QXmlStreamAttributes* theWrappedObject, const QVector<QXmlStreamAttribute >& other) const; | ||
florianlink
|
r128 | const QXmlStreamAttribute* last(QXmlStreamAttributes* theWrappedObject) const; | ||
int lastIndexOf(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t, int from) const; | ||||
florianlink
|
r110 | QVector<QXmlStreamAttribute > mid(QXmlStreamAttributes* theWrappedObject, int pos, int length) const; | ||
florianlink
|
r128 | bool __ne__(QXmlStreamAttributes* theWrappedObject, const QVector<QXmlStreamAttribute >& v) const; | ||
florianlink
|
r120 | bool __eq__(QXmlStreamAttributes* theWrappedObject, const QVector<QXmlStreamAttribute >& v) const; | ||
void prepend(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t); | ||||
florianlink
|
r128 | void remove(QXmlStreamAttributes* theWrappedObject, int i); | ||
florianlink
|
r110 | void remove(QXmlStreamAttributes* theWrappedObject, int i, int n); | ||
florianlink
|
r120 | void replace(QXmlStreamAttributes* theWrappedObject, int i, const QXmlStreamAttribute& t); | ||
florianlink
|
r128 | void reserve(QXmlStreamAttributes* theWrappedObject, int size); | ||
florianlink
|
r110 | void resize(QXmlStreamAttributes* theWrappedObject, int size); | ||
florianlink
|
r128 | void setSharable(QXmlStreamAttributes* theWrappedObject, bool sharable); | ||
int size(QXmlStreamAttributes* theWrappedObject) const; | ||||
florianlink
|
r110 | void squeeze(QXmlStreamAttributes* theWrappedObject); | ||
bool startsWith(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t) const; | ||||
florianlink
|
r186 | void swap(QXmlStreamAttributes* theWrappedObject, QVector<QXmlStreamAttribute >& other); | ||
florianlink
|
r110 | QList<QXmlStreamAttribute > toList(QXmlStreamAttributes* theWrappedObject) const; | ||
florianlink
|
r128 | QStringRef value(QXmlStreamAttributes* theWrappedObject, const QString& namespaceUri, const QString& name) const; | ||
QStringRef value(QXmlStreamAttributes* theWrappedObject, const QString& qualifiedName) const; | ||||
florianlink
|
r110 | }; | ||
class PythonQtWrapper_QXmlStreamEntityDeclaration : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QXmlStreamEntityDeclaration* new_QXmlStreamEntityDeclaration(); | ||||
QXmlStreamEntityDeclaration* new_QXmlStreamEntityDeclaration(const QXmlStreamEntityDeclaration& arg__1); | ||||
void delete_QXmlStreamEntityDeclaration(QXmlStreamEntityDeclaration* obj) { delete obj; } | ||||
florianlink
|
r128 | QStringRef name(QXmlStreamEntityDeclaration* theWrappedObject) const; | ||
florianlink
|
r110 | QStringRef notationName(QXmlStreamEntityDeclaration* theWrappedObject) const; | ||
florianlink
|
r128 | bool __ne__(QXmlStreamEntityDeclaration* theWrappedObject, const QXmlStreamEntityDeclaration& other) const; | ||
florianlink
|
r120 | bool __eq__(QXmlStreamEntityDeclaration* theWrappedObject, const QXmlStreamEntityDeclaration& other) const; | ||
florianlink
|
r128 | QStringRef publicId(QXmlStreamEntityDeclaration* theWrappedObject) const; | ||
florianlink
|
r120 | QStringRef systemId(QXmlStreamEntityDeclaration* theWrappedObject) const; | ||
florianlink
|
r128 | QStringRef value(QXmlStreamEntityDeclaration* theWrappedObject) const; | ||
florianlink
|
r110 | }; | ||
class PythonQtWrapper_QXmlStreamNamespaceDeclaration : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QXmlStreamNamespaceDeclaration* new_QXmlStreamNamespaceDeclaration(); | ||||
QXmlStreamNamespaceDeclaration* new_QXmlStreamNamespaceDeclaration(const QString& prefix, const QString& namespaceUri); | ||||
QXmlStreamNamespaceDeclaration* new_QXmlStreamNamespaceDeclaration(const QXmlStreamNamespaceDeclaration& arg__1); | ||||
void delete_QXmlStreamNamespaceDeclaration(QXmlStreamNamespaceDeclaration* obj) { delete obj; } | ||||
QStringRef namespaceUri(QXmlStreamNamespaceDeclaration* theWrappedObject) const; | ||||
florianlink
|
r128 | bool __ne__(QXmlStreamNamespaceDeclaration* theWrappedObject, const QXmlStreamNamespaceDeclaration& other) const; | ||
florianlink
|
r120 | bool __eq__(QXmlStreamNamespaceDeclaration* theWrappedObject, const QXmlStreamNamespaceDeclaration& other) const; | ||
florianlink
|
r128 | QStringRef prefix(QXmlStreamNamespaceDeclaration* theWrappedObject) const; | ||
florianlink
|
r110 | }; | ||
class PythonQtWrapper_QXmlStreamNotationDeclaration : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QXmlStreamNotationDeclaration* new_QXmlStreamNotationDeclaration(); | ||||
QXmlStreamNotationDeclaration* new_QXmlStreamNotationDeclaration(const QXmlStreamNotationDeclaration& arg__1); | ||||
void delete_QXmlStreamNotationDeclaration(QXmlStreamNotationDeclaration* obj) { delete obj; } | ||||
florianlink
|
r128 | QStringRef name(QXmlStreamNotationDeclaration* theWrappedObject) const; | ||
florianlink
|
r120 | bool __ne__(QXmlStreamNotationDeclaration* theWrappedObject, const QXmlStreamNotationDeclaration& other) const; | ||
bool __eq__(QXmlStreamNotationDeclaration* theWrappedObject, const QXmlStreamNotationDeclaration& other) const; | ||||
QStringRef publicId(QXmlStreamNotationDeclaration* theWrappedObject) const; | ||||
florianlink
|
r128 | QStringRef systemId(QXmlStreamNotationDeclaration* theWrappedObject) const; | ||
florianlink
|
r110 | }; | ||
class PythonQtWrapper_QXmlStreamReader : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(Error TokenType ReadElementTextBehaviour ) | ||||
enum Error{ | ||||
NoError = QXmlStreamReader::NoError, UnexpectedElementError = QXmlStreamReader::UnexpectedElementError, CustomError = QXmlStreamReader::CustomError, NotWellFormedError = QXmlStreamReader::NotWellFormedError, PrematureEndOfDocumentError = QXmlStreamReader::PrematureEndOfDocumentError}; | ||||
enum TokenType{ | ||||
NoToken = QXmlStreamReader::NoToken, Invalid = QXmlStreamReader::Invalid, StartDocument = QXmlStreamReader::StartDocument, EndDocument = QXmlStreamReader::EndDocument, StartElement = QXmlStreamReader::StartElement, EndElement = QXmlStreamReader::EndElement, Characters = QXmlStreamReader::Characters, Comment = QXmlStreamReader::Comment, DTD = QXmlStreamReader::DTD, EntityReference = QXmlStreamReader::EntityReference, ProcessingInstruction = QXmlStreamReader::ProcessingInstruction}; | ||||
enum ReadElementTextBehaviour{ | ||||
ErrorOnUnexpectedElement = QXmlStreamReader::ErrorOnUnexpectedElement, IncludeChildElements = QXmlStreamReader::IncludeChildElements, SkipChildElements = QXmlStreamReader::SkipChildElements}; | ||||
public slots: | ||||
QXmlStreamReader* new_QXmlStreamReader(); | ||||
QXmlStreamReader* new_QXmlStreamReader(QIODevice* device); | ||||
QXmlStreamReader* new_QXmlStreamReader(const QByteArray& data); | ||||
QXmlStreamReader* new_QXmlStreamReader(const QString& data); | ||||
void delete_QXmlStreamReader(QXmlStreamReader* obj) { delete obj; } | ||||
florianlink
|
r128 | void addData(QXmlStreamReader* theWrappedObject, const QByteArray& data); | ||
void addData(QXmlStreamReader* theWrappedObject, const QString& data); | ||||
void addExtraNamespaceDeclaration(QXmlStreamReader* theWrappedObject, const QXmlStreamNamespaceDeclaration& extraNamespaceDeclaraction); | ||||
florianlink
|
r120 | void addExtraNamespaceDeclarations(QXmlStreamReader* theWrappedObject, const QVector<QXmlStreamNamespaceDeclaration >& extraNamespaceDeclaractions); | ||
florianlink
|
r128 | bool atEnd(QXmlStreamReader* theWrappedObject) const; | ||
QXmlStreamAttributes attributes(QXmlStreamReader* theWrappedObject) const; | ||||
qint64 characterOffset(QXmlStreamReader* theWrappedObject) const; | ||||
florianlink
|
r110 | void clear(QXmlStreamReader* theWrappedObject); | ||
florianlink
|
r128 | qint64 columnNumber(QXmlStreamReader* theWrappedObject) const; | ||
florianlink
|
r120 | QIODevice* device(QXmlStreamReader* theWrappedObject) const; | ||
florianlink
|
r128 | QStringRef documentEncoding(QXmlStreamReader* theWrappedObject) const; | ||
QStringRef documentVersion(QXmlStreamReader* theWrappedObject) const; | ||||
florianlink
|
r110 | QStringRef dtdName(QXmlStreamReader* theWrappedObject) const; | ||
QStringRef dtdPublicId(QXmlStreamReader* theWrappedObject) const; | ||||
florianlink
|
r128 | QStringRef dtdSystemId(QXmlStreamReader* theWrappedObject) const; | ||
QVector<QXmlStreamEntityDeclaration > entityDeclarations(QXmlStreamReader* theWrappedObject) const; | ||||
florianlink
|
r110 | QXmlStreamEntityResolver* entityResolver(QXmlStreamReader* theWrappedObject) const; | ||
florianlink
|
r128 | QXmlStreamReader::Error error(QXmlStreamReader* theWrappedObject) const; | ||
QString errorString(QXmlStreamReader* theWrappedObject) const; | ||||
bool hasError(QXmlStreamReader* theWrappedObject) const; | ||||
bool isCDATA(QXmlStreamReader* theWrappedObject) const; | ||||
bool isCharacters(QXmlStreamReader* theWrappedObject) const; | ||||
bool isComment(QXmlStreamReader* theWrappedObject) const; | ||||
bool isDTD(QXmlStreamReader* theWrappedObject) const; | ||||
bool isEndDocument(QXmlStreamReader* theWrappedObject) const; | ||||
florianlink
|
r120 | bool isEndElement(QXmlStreamReader* theWrappedObject) const; | ||
florianlink
|
r110 | bool isEntityReference(QXmlStreamReader* theWrappedObject) const; | ||
florianlink
|
r120 | bool isProcessingInstruction(QXmlStreamReader* theWrappedObject) const; | ||
florianlink
|
r128 | bool isStandaloneDocument(QXmlStreamReader* theWrappedObject) const; | ||
bool isStartDocument(QXmlStreamReader* theWrappedObject) const; | ||||
florianlink
|
r120 | bool isStartElement(QXmlStreamReader* theWrappedObject) const; | ||
florianlink
|
r128 | bool isWhitespace(QXmlStreamReader* theWrappedObject) const; | ||
qint64 lineNumber(QXmlStreamReader* theWrappedObject) const; | ||||
florianlink
|
r120 | QStringRef name(QXmlStreamReader* theWrappedObject) const; | ||
florianlink
|
r128 | QVector<QXmlStreamNamespaceDeclaration > namespaceDeclarations(QXmlStreamReader* theWrappedObject) const; | ||
bool namespaceProcessing(QXmlStreamReader* theWrappedObject) const; | ||||
QStringRef namespaceUri(QXmlStreamReader* theWrappedObject) const; | ||||
florianlink
|
r120 | QVector<QXmlStreamNotationDeclaration > notationDeclarations(QXmlStreamReader* theWrappedObject) const; | ||
florianlink
|
r128 | QStringRef prefix(QXmlStreamReader* theWrappedObject) const; | ||
QStringRef processingInstructionData(QXmlStreamReader* theWrappedObject) const; | ||||
QStringRef processingInstructionTarget(QXmlStreamReader* theWrappedObject) const; | ||||
QStringRef qualifiedName(QXmlStreamReader* theWrappedObject) const; | ||||
void raiseError(QXmlStreamReader* theWrappedObject, const QString& message = QString()); | ||||
QString readElementText(QXmlStreamReader* theWrappedObject); | ||||
QString readElementText(QXmlStreamReader* theWrappedObject, QXmlStreamReader::ReadElementTextBehaviour behaviour); | ||||
QXmlStreamReader::TokenType readNext(QXmlStreamReader* theWrappedObject); | ||||
bool readNextStartElement(QXmlStreamReader* theWrappedObject); | ||||
void setDevice(QXmlStreamReader* theWrappedObject, QIODevice* device); | ||||
void setEntityResolver(QXmlStreamReader* theWrappedObject, QXmlStreamEntityResolver* resolver); | ||||
void setNamespaceProcessing(QXmlStreamReader* theWrappedObject, bool arg__1); | ||||
florianlink
|
r110 | void skipCurrentElement(QXmlStreamReader* theWrappedObject); | ||
florianlink
|
r128 | QStringRef text(QXmlStreamReader* theWrappedObject) const; | ||
QString tokenString(QXmlStreamReader* theWrappedObject) const; | ||||
QXmlStreamReader::TokenType tokenType(QXmlStreamReader* theWrappedObject) const; | ||||
florianlink
|
r110 | }; | ||
class PythonQtWrapper_QXmlStreamWriter : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QXmlStreamWriter* new_QXmlStreamWriter(); | ||||
QXmlStreamWriter* new_QXmlStreamWriter(QByteArray* array); | ||||
QXmlStreamWriter* new_QXmlStreamWriter(QIODevice* device); | ||||
void delete_QXmlStreamWriter(QXmlStreamWriter* obj) { delete obj; } | ||||
florianlink
|
r128 | bool autoFormatting(QXmlStreamWriter* theWrappedObject) const; | ||
florianlink
|
r110 | int autoFormattingIndent(QXmlStreamWriter* theWrappedObject) const; | ||
QTextCodec* codec(QXmlStreamWriter* theWrappedObject) const; | ||||
florianlink
|
r128 | QIODevice* device(QXmlStreamWriter* theWrappedObject) const; | ||
florianlink
|
r186 | bool hasError(QXmlStreamWriter* theWrappedObject) const; | ||
florianlink
|
r128 | void setAutoFormatting(QXmlStreamWriter* theWrappedObject, bool arg__1); | ||
void setAutoFormattingIndent(QXmlStreamWriter* theWrappedObject, int spacesOrTabs); | ||||
void setCodec(QXmlStreamWriter* theWrappedObject, QTextCodec* codec); | ||||
void setCodec(QXmlStreamWriter* theWrappedObject, const char* codecName); | ||||
void setDevice(QXmlStreamWriter* theWrappedObject, QIODevice* device); | ||||
void writeAttribute(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& name, const QString& value); | ||||
florianlink
|
r110 | void writeAttribute(QXmlStreamWriter* theWrappedObject, const QString& qualifiedName, const QString& value); | ||
florianlink
|
r128 | void writeAttribute(QXmlStreamWriter* theWrappedObject, const QXmlStreamAttribute& attribute); | ||
florianlink
|
r120 | void writeAttributes(QXmlStreamWriter* theWrappedObject, const QXmlStreamAttributes& attributes); | ||
florianlink
|
r110 | void writeCDATA(QXmlStreamWriter* theWrappedObject, const QString& text); | ||
void writeCharacters(QXmlStreamWriter* theWrappedObject, const QString& text); | ||||
florianlink
|
r128 | void writeComment(QXmlStreamWriter* theWrappedObject, const QString& text); | ||
void writeCurrentToken(QXmlStreamWriter* theWrappedObject, const QXmlStreamReader& reader); | ||||
void writeDTD(QXmlStreamWriter* theWrappedObject, const QString& dtd); | ||||
void writeDefaultNamespace(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri); | ||||
florianlink
|
r120 | void writeEmptyElement(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& name); | ||
florianlink
|
r128 | void writeEmptyElement(QXmlStreamWriter* theWrappedObject, const QString& qualifiedName); | ||
void writeEndDocument(QXmlStreamWriter* theWrappedObject); | ||||
void writeEndElement(QXmlStreamWriter* theWrappedObject); | ||||
void writeEntityReference(QXmlStreamWriter* theWrappedObject, const QString& name); | ||||
void writeNamespace(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& prefix = QString()); | ||||
florianlink
|
r120 | void writeProcessingInstruction(QXmlStreamWriter* theWrappedObject, const QString& target, const QString& data = QString()); | ||
florianlink
|
r128 | void writeStartDocument(QXmlStreamWriter* theWrappedObject); | ||
void writeStartDocument(QXmlStreamWriter* theWrappedObject, const QString& version); | ||||
void writeStartDocument(QXmlStreamWriter* theWrappedObject, const QString& version, bool standalone); | ||||
void writeStartElement(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& name); | ||||
void writeStartElement(QXmlStreamWriter* theWrappedObject, const QString& qualifiedName); | ||||
void writeTextElement(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& name, const QString& text); | ||||
void writeTextElement(QXmlStreamWriter* theWrappedObject, const QString& qualifiedName, const QString& text); | ||||
florianlink
|
r110 | }; | ||