diff options
Diffstat (limited to 'qtjava/javalib/qtjava/QSqlRecord.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QSqlRecord.cpp | 134 |
1 files changed, 67 insertions, 67 deletions
diff --git a/qtjava/javalib/qtjava/QSqlRecord.cpp b/qtjava/javalib/qtjava/QSqlRecord.cpp index e0e6536b..8309f0de 100644 --- a/qtjava/javalib/qtjava/QSqlRecord.cpp +++ b/qtjava/javalib/qtjava/QSqlRecord.cpp @@ -6,64 +6,64 @@ #include <tqvariant.h> #include <qtjava/QtSupport.h> -#include <qtjava/QSqlRecord.h> +#include <qtjava/TQSqlRecord.h> -class QSqlRecordJBridge : public QSqlRecord +class TQSqlRecordJBridge : public TQSqlRecord { public: - QSqlRecordJBridge() : TQSqlRecord() {}; - QSqlRecordJBridge(const TQSqlRecord& arg1) : TQSqlRecord(arg1) {}; + TQSqlRecordJBridge() : TTQSqlRecord() {}; + TQSqlRecordJBridge(const TTQSqlRecord& arg1) : TTQSqlRecord(arg1) {}; void public_clear() { - TQSqlRecord::clear(); + TTQSqlRecord::clear(); return; } void public_clearValues() { - TQSqlRecord::clearValues(); + TTQSqlRecord::clearValues(); return; } - ~QSqlRecordJBridge() {QtSupport::qtKeyDeleted(this);} + ~TQSqlRecordJBridge() {QtSupport::qtKeyDeleted(this);} }; JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_append(JNIEnv* env, jobject obj, jobject field) { - ((TQSqlRecord*) QtSupport::getQt(env, obj))->append((const TQSqlField&)*(const TQSqlField*) QtSupport::getQt(env, field)); + ((TTQSqlRecord*) QtSupport::getQt(env, obj))->append((const TTQSqlField&)*(const TTQSqlField*) QtSupport::getQt(env, field)); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_clearValues__(JNIEnv* env, jobject obj) { - ((QSqlRecordJBridge*) QtSupport::getQt(env, obj))->public_clearValues(); + ((TQSqlRecordJBridge*) QtSupport::getQt(env, obj))->public_clearValues(); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_clearValues__Z(JNIEnv* env, jobject obj, jboolean nullify) { - ((TQSqlRecord*) QtSupport::getQt(env, obj))->clearValues((bool) nullify); + ((TTQSqlRecord*) QtSupport::getQt(env, obj))->clearValues((bool) nullify); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_clear(JNIEnv* env, jobject obj) { - ((QSqlRecordJBridge*) QtSupport::getQt(env, obj))->public_clear(); + ((TQSqlRecordJBridge*) QtSupport::getQt(env, obj))->public_clear(); return; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QSqlRecord_contains(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; - jboolean xret = (jboolean) ((TQSqlRecord*) QtSupport::getQt(env, obj))->contains((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name)); +static TTQString* _qstring_name = 0; + jboolean xret = (jboolean) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->contains((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); return xret; } JNIEXPORT jint JNICALL Java_org_kde_qt_QSqlRecord_count(JNIEnv* env, jobject obj) { - jint xret = (jint) ((TQSqlRecord*) QtSupport::getQt(env, obj))->count(); + jint xret = (jint) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->count(); return xret; } @@ -77,23 +77,23 @@ Java_org_kde_qt_QSqlRecord_dispose(JNIEnv* env, jobject obj) JNIEXPORT jstring JNICALL Java_org_kde_qt_QSqlRecord_fieldName(JNIEnv* env, jobject obj, jint i) { - TQString _qstring; - _qstring = ((TQSqlRecord*) QtSupport::getQt(env, obj))->fieldName((int) i); - return QtSupport::fromQString(env, &_qstring); + TTQString _qstring; + _qstring = ((TTQSqlRecord*) QtSupport::getQt(env, obj))->fieldName((int) i); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSqlRecord_field__I(JNIEnv* env, jobject obj, jint i) { - jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlRecord*) QtSupport::getQt(env, obj))->field((int) i), "org.kde.qt.TQSqlField"); + jobject xret = QtSupport::objectForQtKey(env, (void*)((TTQSqlRecord*) QtSupport::getQt(env, obj))->field((int) i), "org.kde.qt.TTQSqlField"); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSqlRecord_field__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlRecord*) QtSupport::getQt(env, obj))->field((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name)), "org.kde.qt.TQSqlField"); +static TTQString* _qstring_name = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((TTQSqlRecord*) QtSupport::getQt(env, obj))->field((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)), "org.kde.qt.TTQSqlField"); return xret; } @@ -101,7 +101,7 @@ JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_finalize(JNIEnv* env, jobject obj) { if (QtSupport::allocatedInJavaWorld(env, obj)) { - delete (TQSqlRecord*)QtSupport::getQt(env, obj); + delete (TTQSqlRecord*)QtSupport::getQt(env, obj); QtSupport::setQt(env, obj, 0); } return; @@ -110,7 +110,7 @@ Java_org_kde_qt_QSqlRecord_finalize(JNIEnv* env, jobject obj) JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_insert(JNIEnv* env, jobject obj, jint pos, jobject field) { - ((TQSqlRecord*) QtSupport::getQt(env, obj))->insert((int) pos, (const TQSqlField&)*(const TQSqlField*) QtSupport::getQt(env, field)); + ((TTQSqlRecord*) QtSupport::getQt(env, obj))->insert((int) pos, (const TTQSqlField&)*(const TTQSqlField*) QtSupport::getQt(env, field)); return; } @@ -123,55 +123,55 @@ Java_org_kde_qt_QSqlRecord_isDisposed(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_qt_QSqlRecord_isEmpty(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQSqlRecord*) QtSupport::getQt(env, obj))->isEmpty(); + jboolean xret = (jboolean) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->isEmpty(); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QSqlRecord_isGenerated__I(JNIEnv* env, jobject obj, jint i) { - jboolean xret = (jboolean) ((TQSqlRecord*) QtSupport::getQt(env, obj))->isGenerated((int) i); + jboolean xret = (jboolean) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->isGenerated((int) i); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QSqlRecord_isGenerated__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; - jboolean xret = (jboolean) ((TQSqlRecord*) QtSupport::getQt(env, obj))->isGenerated((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name)); +static TTQString* _qstring_name = 0; + jboolean xret = (jboolean) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->isGenerated((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QSqlRecord_isNull__I(JNIEnv* env, jobject obj, jint i) { - jboolean xret = (jboolean) ((TQSqlRecord*) QtSupport::getQt(env, obj))->isNull((int) i); + jboolean xret = (jboolean) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->isNull((int) i); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QSqlRecord_isNull__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; - jboolean xret = (jboolean) ((TQSqlRecord*) QtSupport::getQt(env, obj))->isNull((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name)); +static TTQString* _qstring_name = 0; + jboolean xret = (jboolean) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->isNull((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); return xret; } JNIEXPORT void JNICALL -Java_org_kde_qt_QSqlRecord_newQSqlRecord__(JNIEnv* env, jobject obj) +Java_org_kde_qt_QSqlRecord_newTQSqlRecord__(JNIEnv* env, jobject obj) { if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new QSqlRecordJBridge()); + QtSupport::setQt(env, obj, new TQSqlRecordJBridge()); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; } JNIEXPORT void JNICALL -Java_org_kde_qt_QSqlRecord_newQSqlRecord__Lorg_kde_qt_QSqlRecord_2(JNIEnv* env, jobject obj, jobject other) +Java_org_kde_qt_QSqlRecord_newTQSqlRecord__Lorg_kde_qt_QSqlRecord_2(JNIEnv* env, jobject obj, jobject other) { if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new QSqlRecordJBridge((const TQSqlRecord&)*(const TQSqlRecord*) QtSupport::getQt(env, other))); + QtSupport::setQt(env, obj, new TQSqlRecordJBridge((const TTQSqlRecord&)*(const TTQSqlRecord*) QtSupport::getQt(env, other))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -180,119 +180,119 @@ Java_org_kde_qt_QSqlRecord_newQSqlRecord__Lorg_kde_qt_QSqlRecord_2(JNIEnv* env, JNIEXPORT jint JNICALL Java_org_kde_qt_QSqlRecord_position(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; - jint xret = (jint) ((TQSqlRecord*) QtSupport::getQt(env, obj))->position((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name)); +static TTQString* _qstring_name = 0; + jint xret = (jint) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->position((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); return xret; } JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_remove(JNIEnv* env, jobject obj, jint pos) { - ((TQSqlRecord*) QtSupport::getQt(env, obj))->remove((int) pos); + ((TTQSqlRecord*) QtSupport::getQt(env, obj))->remove((int) pos); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_setGenerated__IZ(JNIEnv* env, jobject obj, jint i, jboolean generated) { - ((TQSqlRecord*) QtSupport::getQt(env, obj))->setGenerated((int) i, (bool) generated); + ((TTQSqlRecord*) QtSupport::getQt(env, obj))->setGenerated((int) i, (bool) generated); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_setGenerated__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring name, jboolean generated) { -static TQString* _qstring_name = 0; - ((TQSqlRecord*) QtSupport::getQt(env, obj))->setGenerated((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name), (bool) generated); +static TTQString* _qstring_name = 0; + ((TTQSqlRecord*) QtSupport::getQt(env, obj))->setGenerated((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name), (bool) generated); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_setNull__I(JNIEnv* env, jobject obj, jint i) { - ((TQSqlRecord*) QtSupport::getQt(env, obj))->setNull((int) i); + ((TTQSqlRecord*) QtSupport::getQt(env, obj))->setNull((int) i); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_setNull__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; - ((TQSqlRecord*) QtSupport::getQt(env, obj))->setNull((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name)); +static TTQString* _qstring_name = 0; + ((TTQSqlRecord*) QtSupport::getQt(env, obj))->setNull((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_setValue__ILorg_kde_qt_QVariant_2(JNIEnv* env, jobject obj, jint i, jobject val) { - ((TQSqlRecord*) QtSupport::getQt(env, obj))->setValue((int) i, (const TQVariant&)*(const TQVariant*) QtSupport::getQt(env, val)); + ((TTQSqlRecord*) QtSupport::getQt(env, obj))->setValue((int) i, (const TTQVariant&)*(const TTQVariant*) QtSupport::getQt(env, val)); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_setValue__Ljava_lang_String_2Lorg_kde_qt_QVariant_2(JNIEnv* env, jobject obj, jstring name, jobject val) { -static TQString* _qstring_name = 0; - ((TQSqlRecord*) QtSupport::getQt(env, obj))->setValue((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name), (const TQVariant&)*(const TQVariant*) QtSupport::getQt(env, val)); +static TTQString* _qstring_name = 0; + ((TTQSqlRecord*) QtSupport::getQt(env, obj))->setValue((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TTQVariant&)*(const TTQVariant*) QtSupport::getQt(env, val)); return; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSqlRecord_toStringList__(JNIEnv* env, jobject obj) { - TQStringList _qlist; - _qlist = ((TQSqlRecord*) QtSupport::getQt(env, obj))->toStringList(); - return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist); + TTQStringList _qlist; + _qlist = ((TTQSqlRecord*) QtSupport::getQt(env, obj))->toStringList(); + return (jobject) QtSupport::arrayWithTQStringList(env, (TTQStringList*) &_qlist); } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSqlRecord_toStringList__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix) { - TQStringList _qlist; -static TQString* _qstring_prefix = 0; - _qlist = ((TQSqlRecord*) QtSupport::getQt(env, obj))->toStringList((const TQString&)*(TQString*) QtSupport::toQString(env, prefix, &_qstring_prefix)); - return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist); + TTQStringList _qlist; +static TTQString* _qstring_prefix = 0; + _qlist = ((TTQSqlRecord*) QtSupport::getQt(env, obj))->toStringList((const TTQString&)*(TTQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix)); + return (jobject) QtSupport::arrayWithTQStringList(env, (TTQStringList*) &_qlist); } JNIEXPORT jstring JNICALL Java_org_kde_qt_QSqlRecord_toString__(JNIEnv* env, jobject obj) { - TQString _qstring; - _qstring = ((TQSqlRecord*) QtSupport::getQt(env, obj))->toString(); - return QtSupport::fromQString(env, &_qstring); + TTQString _qstring; + _qstring = ((TTQSqlRecord*) QtSupport::getQt(env, obj))->toString(); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_qt_QSqlRecord_toString__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix) { - TQString _qstring; -static TQString* _qstring_prefix = 0; - _qstring = ((TQSqlRecord*) QtSupport::getQt(env, obj))->toString((const TQString&)*(TQString*) QtSupport::toQString(env, prefix, &_qstring_prefix)); - return QtSupport::fromQString(env, &_qstring); + TTQString _qstring; +static TTQString* _qstring_prefix = 0; + _qstring = ((TTQSqlRecord*) QtSupport::getQt(env, obj))->toString((const TTQString&)*(TTQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix)); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_qt_QSqlRecord_toString__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix, jstring sep) { - TQString _qstring; -static TQString* _qstring_prefix = 0; -static TQString* _qstring_sep = 0; - _qstring = ((TQSqlRecord*) QtSupport::getQt(env, obj))->toString((const TQString&)*(TQString*) QtSupport::toQString(env, prefix, &_qstring_prefix), (const TQString&)*(TQString*) QtSupport::toQString(env, sep, &_qstring_sep)); - return QtSupport::fromQString(env, &_qstring); + TTQString _qstring; +static TTQString* _qstring_prefix = 0; +static TTQString* _qstring_sep = 0; + _qstring = ((TTQSqlRecord*) QtSupport::getQt(env, obj))->toString((const TTQString&)*(TTQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, sep, &_qstring_sep)); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSqlRecord_value__I(JNIEnv* env, jobject obj, jint i) { - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((TQSqlRecord*) QtSupport::getQt(env, obj))->value((int) i)), "org.kde.qt.TQVariant", TRUE); + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQVariant(((TTQSqlRecord*) QtSupport::getQt(env, obj))->value((int) i)), "org.kde.qt.TTQVariant", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSqlRecord_value__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((TQSqlRecord*) QtSupport::getQt(env, obj))->value((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name))), "org.kde.qt.TQVariant", TRUE); +static TTQString* _qstring_name = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQVariant(((TTQSqlRecord*) QtSupport::getQt(env, obj))->value((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name))), "org.kde.qt.TTQVariant", TRUE); return xret; } |