diff options
Diffstat (limited to 'qtjava/javalib/qtjava/QSqlRecord.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QSqlRecord.cpp | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/qtjava/javalib/qtjava/QSqlRecord.cpp b/qtjava/javalib/qtjava/QSqlRecord.cpp index 8309f0de..10b1fdc2 100644 --- a/qtjava/javalib/qtjava/QSqlRecord.cpp +++ b/qtjava/javalib/qtjava/QSqlRecord.cpp @@ -11,14 +11,14 @@ class TQSqlRecordJBridge : public TQSqlRecord { public: - TQSqlRecordJBridge() : TTQSqlRecord() {}; - TQSqlRecordJBridge(const TTQSqlRecord& arg1) : TTQSqlRecord(arg1) {}; + TQSqlRecordJBridge() : TQSqlRecord() {}; + TQSqlRecordJBridge(const TQSqlRecord& arg1) : TQSqlRecord(arg1) {}; void public_clear() { - TTQSqlRecord::clear(); + TQSqlRecord::clear(); return; } void public_clearValues() { - TTQSqlRecord::clearValues(); + TQSqlRecord::clearValues(); return; } ~TQSqlRecordJBridge() {QtSupport::qtKeyDeleted(this);} @@ -27,7 +27,7 @@ public: JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_append(JNIEnv* env, jobject obj, jobject field) { - ((TTQSqlRecord*) QtSupport::getQt(env, obj))->append((const TTQSqlField&)*(const TTQSqlField*) QtSupport::getQt(env, field)); + ((TQSqlRecord*) QtSupport::getQt(env, obj))->append((const TQSqlField&)*(const TQSqlField*) QtSupport::getQt(env, field)); return; } @@ -41,7 +41,7 @@ Java_org_kde_qt_QSqlRecord_clearValues__(JNIEnv* env, jobject obj) JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_clearValues__Z(JNIEnv* env, jobject obj, jboolean nullify) { - ((TTQSqlRecord*) QtSupport::getQt(env, obj))->clearValues((bool) nullify); + ((TQSqlRecord*) QtSupport::getQt(env, obj))->clearValues((bool) nullify); return; } @@ -55,15 +55,15 @@ Java_org_kde_qt_QSqlRecord_clear(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_qt_QSqlRecord_contains(JNIEnv* env, jobject obj, jstring name) { -static TTQString* _qstring_name = 0; - jboolean xret = (jboolean) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->contains((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); +static TQString* _qstring_name = 0; + jboolean xret = (jboolean) ((TQSqlRecord*) QtSupport::getQt(env, obj))->contains((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)); return xret; } JNIEXPORT jint JNICALL Java_org_kde_qt_QSqlRecord_count(JNIEnv* env, jobject obj) { - jint xret = (jint) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->count(); + jint xret = (jint) ((TQSqlRecord*) 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) { - TTQString _qstring; - _qstring = ((TTQSqlRecord*) QtSupport::getQt(env, obj))->fieldName((int) i); + TQString _qstring; + _qstring = ((TQSqlRecord*) 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*)((TTQSqlRecord*) QtSupport::getQt(env, obj))->field((int) i), "org.kde.qt.TTQSqlField"); + jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlRecord*) QtSupport::getQt(env, obj))->field((int) i), "org.kde.qt.TQSqlField"); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSqlRecord_field__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) { -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"); +static TQString* _qstring_name = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlRecord*) QtSupport::getQt(env, obj))->field((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)), "org.kde.qt.TQSqlField"); 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 (TTQSqlRecord*)QtSupport::getQt(env, obj); + delete (TQSqlRecord*)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) { - ((TTQSqlRecord*) QtSupport::getQt(env, obj))->insert((int) pos, (const TTQSqlField&)*(const TTQSqlField*) QtSupport::getQt(env, field)); + ((TQSqlRecord*) QtSupport::getQt(env, obj))->insert((int) pos, (const TQSqlField&)*(const TQSqlField*) QtSupport::getQt(env, field)); return; } @@ -123,37 +123,37 @@ 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) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->isEmpty(); + jboolean xret = (jboolean) ((TQSqlRecord*) 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) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->isGenerated((int) i); + jboolean xret = (jboolean) ((TQSqlRecord*) 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 TTQString* _qstring_name = 0; - jboolean xret = (jboolean) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->isGenerated((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); +static TQString* _qstring_name = 0; + jboolean xret = (jboolean) ((TQSqlRecord*) QtSupport::getQt(env, obj))->isGenerated((const TQString&)*(TQString*) 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) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->isNull((int) i); + jboolean xret = (jboolean) ((TQSqlRecord*) 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 TTQString* _qstring_name = 0; - jboolean xret = (jboolean) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->isNull((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); +static TQString* _qstring_name = 0; + jboolean xret = (jboolean) ((TQSqlRecord*) QtSupport::getQt(env, obj))->isNull((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)); return xret; } @@ -171,7 +171,7 @@ JNIEXPORT void JNICALL 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 TQSqlRecordJBridge((const TTQSqlRecord&)*(const TTQSqlRecord*) QtSupport::getQt(env, other))); + QtSupport::setQt(env, obj, new TQSqlRecordJBridge((const TQSqlRecord&)*(const TQSqlRecord*) QtSupport::getQt(env, other))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -180,119 +180,119 @@ Java_org_kde_qt_QSqlRecord_newTQSqlRecord__Lorg_kde_qt_QSqlRecord_2(JNIEnv* env, JNIEXPORT jint JNICALL Java_org_kde_qt_QSqlRecord_position(JNIEnv* env, jobject obj, jstring name) { -static TTQString* _qstring_name = 0; - jint xret = (jint) ((TTQSqlRecord*) QtSupport::getQt(env, obj))->position((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); +static TQString* _qstring_name = 0; + jint xret = (jint) ((TQSqlRecord*) QtSupport::getQt(env, obj))->position((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)); return xret; } JNIEXPORT void JNICALL Java_org_kde_qt_QSqlRecord_remove(JNIEnv* env, jobject obj, jint pos) { - ((TTQSqlRecord*) QtSupport::getQt(env, obj))->remove((int) pos); + ((TQSqlRecord*) 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) { - ((TTQSqlRecord*) QtSupport::getQt(env, obj))->setGenerated((int) i, (bool) generated); + ((TQSqlRecord*) 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 TTQString* _qstring_name = 0; - ((TTQSqlRecord*) QtSupport::getQt(env, obj))->setGenerated((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name), (bool) generated); +static TQString* _qstring_name = 0; + ((TQSqlRecord*) QtSupport::getQt(env, obj))->setGenerated((const TQString&)*(TQString*) 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) { - ((TTQSqlRecord*) QtSupport::getQt(env, obj))->setNull((int) i); + ((TQSqlRecord*) 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 TTQString* _qstring_name = 0; - ((TTQSqlRecord*) QtSupport::getQt(env, obj))->setNull((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); +static TQString* _qstring_name = 0; + ((TQSqlRecord*) QtSupport::getQt(env, obj))->setNull((const TQString&)*(TQString*) 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) { - ((TTQSqlRecord*) QtSupport::getQt(env, obj))->setValue((int) i, (const TTQVariant&)*(const TTQVariant*) QtSupport::getQt(env, val)); + ((TQSqlRecord*) QtSupport::getQt(env, obj))->setValue((int) i, (const TQVariant&)*(const TQVariant*) 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 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)); +static TQString* _qstring_name = 0; + ((TQSqlRecord*) QtSupport::getQt(env, obj))->setValue((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQVariant&)*(const TQVariant*) QtSupport::getQt(env, val)); return; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSqlRecord_toStringList__(JNIEnv* env, jobject obj) { - TTQStringList _qlist; - _qlist = ((TTQSqlRecord*) QtSupport::getQt(env, obj))->toStringList(); - return (jobject) QtSupport::arrayWithTQStringList(env, (TTQStringList*) &_qlist); + TQStringList _qlist; + _qlist = ((TQSqlRecord*) QtSupport::getQt(env, obj))->toStringList(); + return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist); } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSqlRecord_toStringList__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix) { - 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); + TQStringList _qlist; +static TQString* _qstring_prefix = 0; + _qlist = ((TQSqlRecord*) QtSupport::getQt(env, obj))->toStringList((const TQString&)*(TQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix)); + return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist); } JNIEXPORT jstring JNICALL Java_org_kde_qt_QSqlRecord_toString__(JNIEnv* env, jobject obj) { - TTQString _qstring; - _qstring = ((TTQSqlRecord*) QtSupport::getQt(env, obj))->toString(); + TQString _qstring; + _qstring = ((TQSqlRecord*) 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) { - TTQString _qstring; -static TTQString* _qstring_prefix = 0; - _qstring = ((TTQSqlRecord*) QtSupport::getQt(env, obj))->toString((const TTQString&)*(TTQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix)); + TQString _qstring; +static TQString* _qstring_prefix = 0; + _qstring = ((TQSqlRecord*) QtSupport::getQt(env, obj))->toString((const TQString&)*(TQString*) 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) { - 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)); + TQString _qstring; +static TQString* _qstring_prefix = 0; +static TQString* _qstring_sep = 0; + _qstring = ((TQSqlRecord*) QtSupport::getQt(env, obj))->toString((const TQString&)*(TQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix), (const TQString&)*(TQString*) 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 TTQVariant(((TTQSqlRecord*) QtSupport::getQt(env, obj))->value((int) i)), "org.kde.qt.TTQVariant", TRUE); + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((TQSqlRecord*) QtSupport::getQt(env, obj))->value((int) i)), "org.kde.qt.TQVariant", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSqlRecord_value__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) { -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); +static TQString* _qstring_name = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((TQSqlRecord*) QtSupport::getQt(env, obj))->value((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name))), "org.kde.qt.TQVariant", TRUE); return xret; } |