diff options
Diffstat (limited to 'qtjava/javalib/qtjava/QDomDocument.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QDomDocument.cpp | 308 |
1 files changed, 154 insertions, 154 deletions
diff --git a/qtjava/javalib/qtjava/QDomDocument.cpp b/qtjava/javalib/qtjava/QDomDocument.cpp index f3f93887..2e1f1b54 100644 --- a/qtjava/javalib/qtjava/QDomDocument.cpp +++ b/qtjava/javalib/qtjava/QDomDocument.cpp @@ -4,97 +4,97 @@ #include <tqcstring.h> #include <qtjava/QtSupport.h> -#include <qtjava/QDomDocument.h> +#include <qtjava/TQDomDocument.h> -class QDomDocumentJBridge : public QDomDocument +class TQDomDocumentJBridge : public TQDomDocument { public: - QDomDocumentJBridge() : TQDomDocument() {}; - QDomDocumentJBridge(const TQString& arg1) : TQDomDocument(arg1) {}; - QDomDocumentJBridge(const TQDomDocumentType& arg1) : TQDomDocument(arg1) {}; - QDomDocumentJBridge(const TQDomDocument& arg1) : TQDomDocument(arg1) {}; - ~QDomDocumentJBridge() {QtSupport::qtKeyDeleted(this);} + TQDomDocumentJBridge() : TTQDomDocument() {}; + TQDomDocumentJBridge(const TTQString& arg1) : TTQDomDocument(arg1) {}; + TQDomDocumentJBridge(const TTQDomDocumentType& arg1) : TTQDomDocument(arg1) {}; + TQDomDocumentJBridge(const TTQDomDocument& arg1) : TTQDomDocument(arg1) {}; + ~TQDomDocumentJBridge() {QtSupport::qtKeyDeleted(this);} }; JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_createAttributeNS(JNIEnv* env, jobject obj, jstring nsURI, jstring qName) { -static TQString* _qstring_nsURI = 0; -static TQString* _qstring_qName = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomAttr(((TQDomDocument*) QtSupport::getQt(env, obj))->createAttributeNS((const TQString&)*(TQString*) QtSupport::toQString(env, nsURI, &_qstring_nsURI), (const TQString&)*(TQString*) QtSupport::toQString(env, qName, &_qstring_qName))), "org.kde.qt.TQDomAttr", TRUE); +static TTQString* _qstring_nsURI = 0; +static TTQString* _qstring_qName = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomAttr(((TTQDomDocument*) QtSupport::getQt(env, obj))->createAttributeNS((const TTQString&)*(TTQString*) QtSupport::toTQString(env, nsURI, &_qstring_nsURI), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, qName, &_qstring_qName))), "org.kde.qt.TTQDomAttr", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_createAttribute(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomAttr(((TQDomDocument*) QtSupport::getQt(env, obj))->createAttribute((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name))), "org.kde.qt.TQDomAttr", TRUE); +static TTQString* _qstring_name = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomAttr(((TTQDomDocument*) QtSupport::getQt(env, obj))->createAttribute((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name))), "org.kde.qt.TTQDomAttr", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_createCDATASection(JNIEnv* env, jobject obj, jstring data) { -static TQString* _qstring_data = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomCDATASection(((TQDomDocument*) QtSupport::getQt(env, obj))->createCDATASection((const TQString&)*(TQString*) QtSupport::toQString(env, data, &_qstring_data))), "org.kde.qt.TQDomCDATASection", TRUE); +static TTQString* _qstring_data = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomCDATASection(((TTQDomDocument*) QtSupport::getQt(env, obj))->createCDATASection((const TTQString&)*(TTQString*) QtSupport::toTQString(env, data, &_qstring_data))), "org.kde.qt.TTQDomCDATASection", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_createComment(JNIEnv* env, jobject obj, jstring data) { -static TQString* _qstring_data = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomComment(((TQDomDocument*) QtSupport::getQt(env, obj))->createComment((const TQString&)*(TQString*) QtSupport::toQString(env, data, &_qstring_data))), "org.kde.qt.TQDomComment", TRUE); +static TTQString* _qstring_data = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomComment(((TTQDomDocument*) QtSupport::getQt(env, obj))->createComment((const TTQString&)*(TTQString*) QtSupport::toTQString(env, data, &_qstring_data))), "org.kde.qt.TTQDomComment", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_createDocumentFragment(JNIEnv* env, jobject obj) { - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomDocumentFragment(((TQDomDocument*) QtSupport::getQt(env, obj))->createDocumentFragment()), "org.kde.qt.TQDomDocumentFragment", TRUE); + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomDocumentFragment(((TTQDomDocument*) QtSupport::getQt(env, obj))->createDocumentFragment()), "org.kde.qt.TTQDomDocumentFragment", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_createElementNS(JNIEnv* env, jobject obj, jstring nsURI, jstring qName) { -static TQString* _qstring_nsURI = 0; -static TQString* _qstring_qName = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomElement(((TQDomDocument*) QtSupport::getQt(env, obj))->createElementNS((const TQString&)*(TQString*) QtSupport::toQString(env, nsURI, &_qstring_nsURI), (const TQString&)*(TQString*) QtSupport::toQString(env, qName, &_qstring_qName))), "org.kde.qt.TQDomElement", TRUE); +static TTQString* _qstring_nsURI = 0; +static TTQString* _qstring_qName = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomElement(((TTQDomDocument*) QtSupport::getQt(env, obj))->createElementNS((const TTQString&)*(TTQString*) QtSupport::toTQString(env, nsURI, &_qstring_nsURI), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, qName, &_qstring_qName))), "org.kde.qt.TTQDomElement", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_createElement(JNIEnv* env, jobject obj, jstring tagName) { -static TQString* _qstring_tagName = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomElement(((TQDomDocument*) QtSupport::getQt(env, obj))->createElement((const TQString&)*(TQString*) QtSupport::toQString(env, tagName, &_qstring_tagName))), "org.kde.qt.TQDomElement", TRUE); +static TTQString* _qstring_tagName = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomElement(((TTQDomDocument*) QtSupport::getQt(env, obj))->createElement((const TTQString&)*(TTQString*) QtSupport::toTQString(env, tagName, &_qstring_tagName))), "org.kde.qt.TTQDomElement", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_createEntityReference(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomEntityReference(((TQDomDocument*) QtSupport::getQt(env, obj))->createEntityReference((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name))), "org.kde.qt.TQDomEntityReference", TRUE); +static TTQString* _qstring_name = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomEntityReference(((TTQDomDocument*) QtSupport::getQt(env, obj))->createEntityReference((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name))), "org.kde.qt.TTQDomEntityReference", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_createProcessingInstruction(JNIEnv* env, jobject obj, jstring target, jstring data) { -static TQString* _qstring_target = 0; -static TQString* _qstring_data = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomProcessingInstruction(((TQDomDocument*) QtSupport::getQt(env, obj))->createProcessingInstruction((const TQString&)*(TQString*) QtSupport::toQString(env, target, &_qstring_target), (const TQString&)*(TQString*) QtSupport::toQString(env, data, &_qstring_data))), "org.kde.qt.TQDomProcessingInstruction", TRUE); +static TTQString* _qstring_target = 0; +static TTQString* _qstring_data = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomProcessingInstruction(((TTQDomDocument*) QtSupport::getQt(env, obj))->createProcessingInstruction((const TTQString&)*(TTQString*) QtSupport::toTQString(env, target, &_qstring_target), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, data, &_qstring_data))), "org.kde.qt.TTQDomProcessingInstruction", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_createTextNode(JNIEnv* env, jobject obj, jstring data) { -static TQString* _qstring_data = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomText(((TQDomDocument*) QtSupport::getQt(env, obj))->createTextNode((const TQString&)*(TQString*) QtSupport::toQString(env, data, &_qstring_data))), "org.kde.qt.TQDomText", TRUE); +static TTQString* _qstring_data = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomText(((TTQDomDocument*) QtSupport::getQt(env, obj))->createTextNode((const TTQString&)*(TTQString*) QtSupport::toTQString(env, data, &_qstring_data))), "org.kde.qt.TTQDomText", TRUE); return xret; } @@ -108,49 +108,49 @@ Java_org_kde_qt_QDomDocument_dispose(JNIEnv* env, jobject obj) JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_doctype(JNIEnv* env, jobject obj) { - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomDocumentType(((TQDomDocument*) QtSupport::getQt(env, obj))->doctype()), "org.kde.qt.TQDomDocumentType", TRUE); + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomDocumentType(((TTQDomDocument*) QtSupport::getQt(env, obj))->doctype()), "org.kde.qt.TTQDomDocumentType", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_documentElement(JNIEnv* env, jobject obj) { - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomElement(((TQDomDocument*) QtSupport::getQt(env, obj))->documentElement()), "org.kde.qt.TQDomElement", TRUE); + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomElement(((TTQDomDocument*) QtSupport::getQt(env, obj))->documentElement()), "org.kde.qt.TTQDomElement", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_elementById(JNIEnv* env, jobject obj, jstring elementId) { -static TQString* _qstring_elementId = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomElement(((TQDomDocument*) QtSupport::getQt(env, obj))->elementById((const TQString&)*(TQString*) QtSupport::toQString(env, elementId, &_qstring_elementId))), "org.kde.qt.TQDomElement", TRUE); +static TTQString* _qstring_elementId = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomElement(((TTQDomDocument*) QtSupport::getQt(env, obj))->elementById((const TTQString&)*(TTQString*) QtSupport::toTQString(env, elementId, &_qstring_elementId))), "org.kde.qt.TTQDomElement", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_elementsByTagNameNS(JNIEnv* env, jobject obj, jstring nsURI, jstring localName) { - TQDomNodeList _qlist; -static TQString* _qstring_nsURI = 0; -static TQString* _qstring_localName = 0; - _qlist = ((TQDomDocument*) QtSupport::getQt(env, obj))->elementsByTagNameNS((const TQString&)*(TQString*) QtSupport::toQString(env, nsURI, &_qstring_nsURI), (const TQString&)*(TQString*) QtSupport::toQString(env, localName, &_qstring_localName)); - return (jobject) QtSupport::arrayWithQDomNodeList(env, (TQDomNodeList*) &_qlist); + TTQDomNodeList _qlist; +static TTQString* _qstring_nsURI = 0; +static TTQString* _qstring_localName = 0; + _qlist = ((TTQDomDocument*) QtSupport::getQt(env, obj))->elementsByTagNameNS((const TTQString&)*(TTQString*) QtSupport::toTQString(env, nsURI, &_qstring_nsURI), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, localName, &_qstring_localName)); + return (jobject) QtSupport::arrayWithTQDomNodeList(env, (TTQDomNodeList*) &_qlist); } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_elementsByTagName(JNIEnv* env, jobject obj, jstring tagname) { - TQDomNodeList _qlist; -static TQString* _qstring_tagname = 0; - _qlist = ((TQDomDocument*) QtSupport::getQt(env, obj))->elementsByTagName((const TQString&)*(TQString*) QtSupport::toQString(env, tagname, &_qstring_tagname)); - return (jobject) QtSupport::arrayWithQDomNodeList(env, (TQDomNodeList*) &_qlist); + TTQDomNodeList _qlist; +static TTQString* _qstring_tagname = 0; + _qlist = ((TTQDomDocument*) QtSupport::getQt(env, obj))->elementsByTagName((const TTQString&)*(TTQString*) QtSupport::toTQString(env, tagname, &_qstring_tagname)); + return (jobject) QtSupport::arrayWithTQDomNodeList(env, (TTQDomNodeList*) &_qlist); } JNIEXPORT void JNICALL Java_org_kde_qt_QDomDocument_finalize(JNIEnv* env, jobject obj) { if (QtSupport::allocatedInJavaWorld(env, obj)) { - delete (TQDomDocument*)QtSupport::getQt(env, obj); + delete (TTQDomDocument*)QtSupport::getQt(env, obj); QtSupport::setQt(env, obj, 0); } return; @@ -159,14 +159,14 @@ Java_org_kde_qt_QDomDocument_finalize(JNIEnv* env, jobject obj) JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_implementation(JNIEnv* env, jobject obj) { - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomImplementation(((TQDomDocument*) QtSupport::getQt(env, obj))->implementation()), "org.kde.qt.TQDomImplementation", TRUE); + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomImplementation(((TTQDomDocument*) QtSupport::getQt(env, obj))->implementation()), "org.kde.qt.TTQDomImplementation", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QDomDocument_importNode(JNIEnv* env, jobject obj, jobject importedNode, jboolean deep) { - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomDocument*) QtSupport::getQt(env, obj))->importNode((const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, importedNode), (bool) deep)), "org.kde.qt.TQDomNode", TRUE); + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQDomNode(((TTQDomDocument*) QtSupport::getQt(env, obj))->importNode((const TTQDomNode&)*(const TTQDomNode*) QtSupport::getQt(env, importedNode), (bool) deep)), "org.kde.qt.TTQDomNode", TRUE); return xret; } @@ -179,46 +179,46 @@ Java_org_kde_qt_QDomDocument_isDisposed(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_isDocument(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->isDocument(); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->isDocument(); return xret; } JNIEXPORT void JNICALL -Java_org_kde_qt_QDomDocument_newQDomDocument__(JNIEnv* env, jobject obj) +Java_org_kde_qt_QDomDocument_newTQDomDocument__(JNIEnv* env, jobject obj) { if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new QDomDocumentJBridge()); + QtSupport::setQt(env, obj, new TQDomDocumentJBridge()); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; } JNIEXPORT void JNICALL -Java_org_kde_qt_QDomDocument_newQDomDocument__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) +Java_org_kde_qt_QDomDocument_newTQDomDocument__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; +static TTQString* _qstring_name = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new QDomDocumentJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name))); + QtSupport::setQt(env, obj, new TQDomDocumentJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; } JNIEXPORT void JNICALL -Java_org_kde_qt_QDomDocument_newQDomDocument__Lorg_kde_qt_QDomDocumentType_2(JNIEnv* env, jobject obj, jobject doctype) +Java_org_kde_qt_QDomDocument_newTQDomDocument__Lorg_kde_qt_QDomDocumentType_2(JNIEnv* env, jobject obj, jobject doctype) { if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new QDomDocumentJBridge((const TQDomDocumentType&)*(const TQDomDocumentType*) QtSupport::getQt(env, doctype))); + QtSupport::setQt(env, obj, new TQDomDocumentJBridge((const TTQDomDocumentType&)*(const TTQDomDocumentType*) QtSupport::getQt(env, doctype))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; } JNIEXPORT void JNICALL -Java_org_kde_qt_QDomDocument_newQDomDocument__Lorg_kde_qt_QDomDocument_2(JNIEnv* env, jobject obj, jobject x) +Java_org_kde_qt_QDomDocument_newTQDomDocument__Lorg_kde_qt_QDomDocument_2(JNIEnv* env, jobject obj, jobject x) { if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new QDomDocumentJBridge((const TQDomDocument&)*(const TQDomDocument*) QtSupport::getQt(env, x))); + QtSupport::setQt(env, obj, new TQDomDocumentJBridge((const TTQDomDocument&)*(const TTQDomDocument*) QtSupport::getQt(env, x))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -227,36 +227,36 @@ Java_org_kde_qt_QDomDocument_newQDomDocument__Lorg_kde_qt_QDomDocument_2(JNIEnv* JNIEXPORT jint JNICALL Java_org_kde_qt_QDomDocument_nodeType(JNIEnv* env, jobject obj) { - jint xret = (jint) ((TQDomDocument*) QtSupport::getQt(env, obj))->nodeType(); + jint xret = (jint) ((TTQDomDocument*) QtSupport::getQt(env, obj))->nodeType(); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text) { -static TQCString* _qcstring_text = 0; - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toQCString(env, text, &_qcstring_text)); +static TTQCString* _qcstring_text = 0; + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, text, &_qcstring_text)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jstring text, jobject errorMsg) { -static TQCString* _qcstring_text = 0; -static TQString* _qstring_errorMsg = 0; - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toQCString(env, text, &_qcstring_text), (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); +static TTQCString* _qcstring_text = 0; +static TTQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2Ljava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jstring text, jobject errorMsg, jintArray errorLine) { -static TQCString* _qcstring_text = 0; -static TQString* _qstring_errorMsg = 0; +static TTQCString* _qcstring_text = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toQCString(env, text, &_qcstring_text), (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); return xret; } @@ -264,12 +264,12 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2Ljava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jstring text, jobject errorMsg, jintArray errorLine, jintArray errorColumn) { -static TQCString* _qcstring_text = 0; -static TQString* _qstring_errorMsg = 0; +static TTQCString* _qcstring_text = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toQCString(env, text, &_qcstring_text), (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); return xret; @@ -278,29 +278,29 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring text, jboolean namespaceProcessing) { -static TQCString* _qcstring_text = 0; - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toQCString(env, text, &_qcstring_text), (bool) namespaceProcessing); +static TTQCString* _qcstring_text = 0; + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (bool) namespaceProcessing); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2ZLjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jstring text, jboolean namespaceProcessing, jobject errorMsg) { -static TQCString* _qcstring_text = 0; -static TQString* _qstring_errorMsg = 0; - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toQCString(env, text, &_qcstring_text), (bool) namespaceProcessing, (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); +static TTQCString* _qcstring_text = 0; +static TTQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (bool) namespaceProcessing, (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2ZLjava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jstring text, jboolean namespaceProcessing, jobject errorMsg, jintArray errorLine) { -static TQCString* _qcstring_text = 0; -static TQString* _qstring_errorMsg = 0; +static TTQCString* _qcstring_text = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toQCString(env, text, &_qcstring_text), (bool) namespaceProcessing, (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (bool) namespaceProcessing, (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); return xret; } @@ -308,12 +308,12 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Ljava_lang_String_2ZLjava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jstring text, jboolean namespaceProcessing, jobject errorMsg, jintArray errorLine, jintArray errorColumn) { -static TQCString* _qcstring_text = 0; -static TQString* _qstring_errorMsg = 0; +static TTQCString* _qcstring_text = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQCString&)*(TQCString*) QtSupport::toQCString(env, text, &_qcstring_text), (bool) namespaceProcessing, (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQCString&)*(TTQCString*) QtSupport::toTQCString(env, text, &_qcstring_text), (bool) namespaceProcessing, (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); return xret; @@ -322,26 +322,26 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jobject dev) { - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev)); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((TTQIODevice*) QtSupport::getQt(env, dev)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject dev, jobject errorMsg) { -static TQString* _qstring_errorMsg = 0; - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); +static TTQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((TTQIODevice*) QtSupport::getQt(env, dev), (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jobject dev, jobject errorMsg, jintArray errorLine) { -static TQString* _qstring_errorMsg = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((TTQIODevice*) QtSupport::getQt(env, dev), (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); return xret; } @@ -349,11 +349,11 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jobject dev, jobject errorMsg, jintArray errorLine, jintArray errorColumn) { -static TQString* _qstring_errorMsg = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((TTQIODevice*) QtSupport::getQt(env, dev), (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); return xret; @@ -362,26 +362,26 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2Z(JNIEnv* env, jobject obj, jobject dev, jboolean namespaceProcessing) { - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (bool) namespaceProcessing); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((TTQIODevice*) QtSupport::getQt(env, dev), (bool) namespaceProcessing); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2ZLjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject dev, jboolean namespaceProcessing, jobject errorMsg) { -static TQString* _qstring_errorMsg = 0; - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (bool) namespaceProcessing, (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); +static TTQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((TTQIODevice*) QtSupport::getQt(env, dev), (bool) namespaceProcessing, (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2ZLjava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jobject dev, jboolean namespaceProcessing, jobject errorMsg, jintArray errorLine) { -static TQString* _qstring_errorMsg = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (bool) namespaceProcessing, (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((TTQIODevice*) QtSupport::getQt(env, dev), (bool) namespaceProcessing, (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); return xret; } @@ -389,11 +389,11 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QIODeviceInterface_2ZLjava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jobject dev, jboolean namespaceProcessing, jobject errorMsg, jintArray errorLine, jintArray errorColumn) { -static TQString* _qstring_errorMsg = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQIODevice*) QtSupport::getQt(env, dev), (bool) namespaceProcessing, (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((TTQIODevice*) QtSupport::getQt(env, dev), (bool) namespaceProcessing, (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); return xret; @@ -402,26 +402,26 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QXmlInputSource_2Lorg_kde_qt_QXmlReader_2(JNIEnv* env, jobject obj, jobject source, jobject reader) { - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQXmlInputSource*) QtSupport::getQt(env, source), (TQXmlReader*) QtSupport::getQt(env, reader)); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((TTQXmlInputSource*) QtSupport::getQt(env, source), (TTQXmlReader*) QtSupport::getQt(env, reader)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QXmlInputSource_2Lorg_kde_qt_QXmlReader_2Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject source, jobject reader, jobject errorMsg) { -static TQString* _qstring_errorMsg = 0; - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQXmlInputSource*) QtSupport::getQt(env, source), (TQXmlReader*) QtSupport::getQt(env, reader), (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); +static TTQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((TTQXmlInputSource*) QtSupport::getQt(env, source), (TTQXmlReader*) QtSupport::getQt(env, reader), (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QXmlInputSource_2Lorg_kde_qt_QXmlReader_2Ljava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jobject source, jobject reader, jobject errorMsg, jintArray errorLine) { -static TQString* _qstring_errorMsg = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQXmlInputSource*) QtSupport::getQt(env, source), (TQXmlReader*) QtSupport::getQt(env, reader), (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((TTQXmlInputSource*) QtSupport::getQt(env, source), (TTQXmlReader*) QtSupport::getQt(env, reader), (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); return xret; } @@ -429,11 +429,11 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent__Lorg_kde_qt_QXmlInputSource_2Lorg_kde_qt_QXmlReader_2Ljava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jobject source, jobject reader, jobject errorMsg, jintArray errorLine, jintArray errorColumn) { -static TQString* _qstring_errorMsg = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((TQXmlInputSource*) QtSupport::getQt(env, source), (TQXmlReader*) QtSupport::getQt(env, reader), (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((TTQXmlInputSource*) QtSupport::getQt(env, source), (TTQXmlReader*) QtSupport::getQt(env, reader), (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); return xret; @@ -442,29 +442,29 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent___3B(JNIEnv* env, jobject obj, jbyteArray text) { -static TQByteArray* _qbyteArray_text = 0; - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, text, &_qbyteArray_text)); +static TTQByteArray* _qbyteArray_text = 0; + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent___3BLjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jbyteArray text, jobject errorMsg) { -static TQByteArray* _qbyteArray_text = 0; -static TQString* _qstring_errorMsg = 0; - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, text, &_qbyteArray_text), (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); +static TTQByteArray* _qbyteArray_text = 0; +static TTQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent___3BLjava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jbyteArray text, jobject errorMsg, jintArray errorLine) { -static TQByteArray* _qbyteArray_text = 0; -static TQString* _qstring_errorMsg = 0; +static TTQByteArray* _qbyteArray_text = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, text, &_qbyteArray_text), (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); return xret; } @@ -472,12 +472,12 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent___3BLjava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jbyteArray text, jobject errorMsg, jintArray errorLine, jintArray errorColumn) { -static TQByteArray* _qbyteArray_text = 0; -static TQString* _qstring_errorMsg = 0; +static TTQByteArray* _qbyteArray_text = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, text, &_qbyteArray_text), (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); return xret; @@ -486,29 +486,29 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent___3BZ(JNIEnv* env, jobject obj, jbyteArray text, jboolean namespaceProcessing) { -static TQByteArray* _qbyteArray_text = 0; - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, text, &_qbyteArray_text), (bool) namespaceProcessing); +static TTQByteArray* _qbyteArray_text = 0; + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (bool) namespaceProcessing); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent___3BZLjava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jbyteArray text, jboolean namespaceProcessing, jobject errorMsg) { -static TQByteArray* _qbyteArray_text = 0; -static TQString* _qstring_errorMsg = 0; - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, text, &_qbyteArray_text), (bool) namespaceProcessing, (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); +static TTQByteArray* _qbyteArray_text = 0; +static TTQString* _qstring_errorMsg = 0; + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (bool) namespaceProcessing, (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent___3BZLjava_lang_StringBuffer_2_3I(JNIEnv* env, jobject obj, jbyteArray text, jboolean namespaceProcessing, jobject errorMsg, jintArray errorLine) { -static TQByteArray* _qbyteArray_text = 0; -static TQString* _qstring_errorMsg = 0; +static TTQByteArray* _qbyteArray_text = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, text, &_qbyteArray_text), (bool) namespaceProcessing, (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (bool) namespaceProcessing, (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); return xret; } @@ -516,12 +516,12 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QDomDocument_setContent___3BZLjava_lang_StringBuffer_2_3I_3I(JNIEnv* env, jobject obj, jbyteArray text, jboolean namespaceProcessing, jobject errorMsg, jintArray errorLine, jintArray errorColumn) { -static TQByteArray* _qbyteArray_text = 0; -static TQString* _qstring_errorMsg = 0; +static TTQByteArray* _qbyteArray_text = 0; +static TTQString* _qstring_errorMsg = 0; int* _int_errorLine = QtSupport::toIntPtr(env, errorLine); int* _int_errorColumn = QtSupport::toIntPtr(env, errorColumn); - jboolean xret = (jboolean) ((TQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, text, &_qbyteArray_text), (bool) namespaceProcessing, (TQString*) QtSupport::toQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); - QtSupport::fromQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); + jboolean xret = (jboolean) ((TTQDomDocument*) QtSupport::getQt(env, obj))->setContent((const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, text, &_qbyteArray_text), (bool) namespaceProcessing, (TTQString*) QtSupport::toTQStringFromStringBuffer(env, errorMsg, &_qstring_errorMsg), (int*) _int_errorLine, (int*) _int_errorColumn); + QtSupport::fromTQStringToStringBuffer(env, _qstring_errorMsg, errorMsg); env->SetIntArrayRegion(errorLine, 0, 1, (jint *) _int_errorLine); env->SetIntArrayRegion(errorColumn, 0, 1, (jint *) _int_errorColumn); return xret; @@ -530,32 +530,32 @@ static TQString* _qstring_errorMsg = 0; JNIEXPORT jstring JNICALL Java_org_kde_qt_QDomDocument_toCString__(JNIEnv* env, jobject obj) { - TQCString _qstring; - _qstring = ((TQDomDocument*) QtSupport::getQt(env, obj))->toCString(); - return QtSupport::fromQCString(env, &_qstring); + TTQCString _qstring; + _qstring = ((TTQDomDocument*) QtSupport::getQt(env, obj))->toCString(); + return QtSupport::fromTQCString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_qt_QDomDocument_toCString__I(JNIEnv* env, jobject obj, jint arg1) { - TQCString _qstring; - _qstring = ((TQDomDocument*) QtSupport::getQt(env, obj))->toCString((int) arg1); - return QtSupport::fromQCString(env, &_qstring); + TTQCString _qstring; + _qstring = ((TTQDomDocument*) QtSupport::getQt(env, obj))->toCString((int) arg1); + return QtSupport::fromTQCString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_qt_QDomDocument_toString__(JNIEnv* env, jobject obj) { - TQString _qstring; - _qstring = ((TQDomDocument*) QtSupport::getQt(env, obj))->toString(); - return QtSupport::fromQString(env, &_qstring); + TTQString _qstring; + _qstring = ((TTQDomDocument*) QtSupport::getQt(env, obj))->toString(); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_qt_QDomDocument_toString__I(JNIEnv* env, jobject obj, jint arg1) { - TQString _qstring; - _qstring = ((TQDomDocument*) QtSupport::getQt(env, obj))->toString((int) arg1); - return QtSupport::fromQString(env, &_qstring); + TTQString _qstring; + _qstring = ((TTQDomDocument*) QtSupport::getQt(env, obj))->toString((int) arg1); + return QtSupport::fromTQString(env, &_qstring); } |