You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/qtjava/javalib/qtjava/TQXmlInputSource.cpp

162 lines
5.4 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqxml.h>
#include <tqstring.h>
#include <tqfile.h>
#include <tqtextstream.h>
#include <tqcstring.h>
#include <qtjava/QtSupport.h>
#include <qtjava/TQXmlInputSource.h>
class TQXmlInputSourceJBridge : public TQXmlInputSource
{
public:
TQXmlInputSourceJBridge() : TQXmlInputSource() {};
TQXmlInputSourceJBridge(TQIODevice* arg1) : TQXmlInputSource(arg1) {};
TQXmlInputSourceJBridge(TQFile& arg1) : TQXmlInputSource(arg1) {};
TQXmlInputSourceJBridge(TQTextStream& arg1) : TQXmlInputSource(arg1) {};
void public_fetchData() {
TQXmlInputSource::fetchData();
return;
}
void public_reset() {
TQXmlInputSource::reset();
return;
}
TQString protected_fromRawData(const TQByteArray& arg1,bool arg2) {
return (TQString) TQXmlInputSource::fromRawData(arg1,arg2);
}
TQString protected_fromRawData(const TQByteArray& arg1) {
return (TQString) TQXmlInputSource::fromRawData(arg1);
}
~TQXmlInputSourceJBridge() {QtSupport::qtKeyDeleted(this);}
};
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_data(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((TQXmlInputSource*) QtSupport::getQt(env, obj))->data();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_dispose(JNIEnv* env, jobject obj)
{
Java_org_trinitydesktop_qt_QXmlInputSource_finalize(env, obj);
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_fetchData(JNIEnv* env, jobject obj)
{
((TQXmlInputSourceJBridge*) QtSupport::getQt(env, obj))->public_fetchData();
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj)) {
delete (TQXmlInputSource*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_fromRawData___3B(JNIEnv* env, jobject obj, jbyteArray data)
{
TQString _qstring;
static TQByteArray* _qbyteArray_data = 0;
_qstring = ((TQXmlInputSourceJBridge*) QtSupport::getQt(env, obj))->protected_fromRawData((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_fromRawData___3BZ(JNIEnv* env, jobject obj, jbyteArray data, jboolean beginning)
{
TQString _qstring;
static TQByteArray* _qbyteArray_data = 0;
_qstring = ((TQXmlInputSourceJBridge*) QtSupport::getQt(env, obj))->protected_fromRawData((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (bool) beginning);
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_newTQXmlInputSource__(JNIEnv* env, jobject obj)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQXmlInputSourceJBridge());
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_newTQXmlInputSource__Lorg_trinitydesktop_qt_QFile_2(JNIEnv* env, jobject obj, jobject file)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQXmlInputSourceJBridge((TQFile&)*(TQFile*) QtSupport::getQt(env, file)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_newTQXmlInputSource__Lorg_trinitydesktop_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jobject dev)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQXmlInputSourceJBridge((TQIODevice*) QtSupport::getQt(env, dev)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_newTQXmlInputSource__Lorg_trinitydesktop_qt_QTextStream_2(JNIEnv* env, jobject obj, jobject stream)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQXmlInputSourceJBridge((TQTextStream&)*(TQTextStream*) QtSupport::getQt(env, stream)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT jchar JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_next(JNIEnv* env, jobject obj)
{
TQChar _qchar;
_qchar = ((TQXmlInputSource*) QtSupport::getQt(env, obj))->next();
return (jchar) QtSupport::fromTQChar(env, (TQChar*) &_qchar);
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_reset(JNIEnv* env, jobject obj)
{
((TQXmlInputSourceJBridge*) QtSupport::getQt(env, obj))->public_reset();
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_setData__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring dat)
{
static TQString* _qstring_dat = 0;
((TQXmlInputSource*) QtSupport::getQt(env, obj))->setData((const TQString&)*(TQString*) QtSupport::toTQString(env, dat, &_qstring_dat));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QXmlInputSource_setData___3B(JNIEnv* env, jobject obj, jbyteArray dat)
{
static TQByteArray* _qbyteArray_dat = 0;
((TQXmlInputSource*) QtSupport::getQt(env, obj))->setData((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, dat, &_qbyteArray_dat));
return;
}