diff options
Diffstat (limited to 'qtjava/javalib/qtjava/QHttpRequestHeader.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QHttpRequestHeader.cpp | 185 |
1 files changed, 185 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/QHttpRequestHeader.cpp b/qtjava/javalib/qtjava/QHttpRequestHeader.cpp new file mode 100644 index 00000000..647841ca --- /dev/null +++ b/qtjava/javalib/qtjava/QHttpRequestHeader.cpp @@ -0,0 +1,185 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <qstring.h> +#include <qhttp.h> + +#include <qtjava/QtSupport.h> +#include <qtjava/QHttpRequestHeader.h> + +class QHttpRequestHeaderJBridge : public QHttpRequestHeader +{ +public: + QHttpRequestHeaderJBridge() : QHttpRequestHeader() {}; + QHttpRequestHeaderJBridge(const QString& arg1,const QString& arg2,int arg3,int arg4) : QHttpRequestHeader(arg1,arg2,arg3,arg4) {}; + QHttpRequestHeaderJBridge(const QString& arg1,const QString& arg2,int arg3) : QHttpRequestHeader(arg1,arg2,arg3) {}; + QHttpRequestHeaderJBridge(const QString& arg1,const QString& arg2) : QHttpRequestHeader(arg1,arg2) {}; + QHttpRequestHeaderJBridge(const QHttpRequestHeader& arg1) : QHttpRequestHeader(arg1) {}; + QHttpRequestHeaderJBridge(const QString& arg1) : QHttpRequestHeader(arg1) {}; + bool protected_parseLine(const QString& arg1,int arg2) { + return (bool) QHttpRequestHeader::parseLine(arg1,arg2); + } + ~QHttpRequestHeaderJBridge() {QtSupport::qtKeyDeleted(this);} +}; + +JNIEXPORT void JNICALL +Java_org_kde_qt_QHttpRequestHeader_dispose(JNIEnv* env, jobject obj) +{ + Java_org_kde_qt_QHttpRequestHeader_finalize(env, obj); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QHttpRequestHeader_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj)) { + delete (QHttpRequestHeader*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QHttpRequestHeader_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QHttpRequestHeader_majorVersion(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((QHttpRequestHeader*) QtSupport::getQt(env, obj))->majorVersion(); + return xret; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QHttpRequestHeader_method(JNIEnv* env, jobject obj) +{ + QString _qstring; + _qstring = ((QHttpRequestHeader*) QtSupport::getQt(env, obj))->method(); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QHttpRequestHeader_minorVersion(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((QHttpRequestHeader*) QtSupport::getQt(env, obj))->minorVersion(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QHttpRequestHeader_newQHttpRequestHeader__(JNIEnv* env, jobject obj) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new QHttpRequestHeaderJBridge()); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QHttpRequestHeader_newQHttpRequestHeader__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str) +{ +static QString* _qstring_str = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new QHttpRequestHeaderJBridge((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QHttpRequestHeader_newQHttpRequestHeader__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring method, jstring path) +{ +static QString* _qstring_method = 0; +static QString* _qstring_path = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new QHttpRequestHeaderJBridge((const QString&)*(QString*) QtSupport::toQString(env, method, &_qstring_method), (const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QHttpRequestHeader_newQHttpRequestHeader__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring method, jstring path, jint majorVer) +{ +static QString* _qstring_method = 0; +static QString* _qstring_path = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new QHttpRequestHeaderJBridge((const QString&)*(QString*) QtSupport::toQString(env, method, &_qstring_method), (const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path), (int) majorVer)); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QHttpRequestHeader_newQHttpRequestHeader__Ljava_lang_String_2Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring method, jstring path, jint majorVer, jint minorVer) +{ +static QString* _qstring_method = 0; +static QString* _qstring_path = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new QHttpRequestHeaderJBridge((const QString&)*(QString*) QtSupport::toQString(env, method, &_qstring_method), (const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path), (int) majorVer, (int) minorVer)); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QHttpRequestHeader_newQHttpRequestHeader__Lorg_kde_qt_QHttpRequestHeader_2(JNIEnv* env, jobject obj, jobject header) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new QHttpRequestHeaderJBridge((const QHttpRequestHeader&)*(const QHttpRequestHeader*) QtSupport::getQt(env, header))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QHttpRequestHeader_parseLine(JNIEnv* env, jobject obj, jstring line, jint number) +{ +static QString* _qstring_line = 0; + jboolean xret = (jboolean) ((QHttpRequestHeaderJBridge*) QtSupport::getQt(env, obj))->protected_parseLine((const QString&)*(QString*) QtSupport::toQString(env, line, &_qstring_line), (int) number); + return xret; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QHttpRequestHeader_path(JNIEnv* env, jobject obj) +{ + QString _qstring; + _qstring = ((QHttpRequestHeader*) QtSupport::getQt(env, obj))->path(); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QHttpRequestHeader_setRequest__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring method, jstring path) +{ +static QString* _qstring_method = 0; +static QString* _qstring_path = 0; + ((QHttpRequestHeader*) QtSupport::getQt(env, obj))->setRequest((const QString&)*(QString*) QtSupport::toQString(env, method, &_qstring_method), (const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QHttpRequestHeader_setRequest__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring method, jstring path, jint majorVer) +{ +static QString* _qstring_method = 0; +static QString* _qstring_path = 0; + ((QHttpRequestHeader*) QtSupport::getQt(env, obj))->setRequest((const QString&)*(QString*) QtSupport::toQString(env, method, &_qstring_method), (const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path), (int) majorVer); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QHttpRequestHeader_setRequest__Ljava_lang_String_2Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring method, jstring path, jint majorVer, jint minorVer) +{ +static QString* _qstring_method = 0; +static QString* _qstring_path = 0; + ((QHttpRequestHeader*) QtSupport::getQt(env, obj))->setRequest((const QString&)*(QString*) QtSupport::toQString(env, method, &_qstring_method), (const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path), (int) majorVer, (int) minorVer); + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QHttpRequestHeader_toString(JNIEnv* env, jobject obj) +{ + QString _qstring; + _qstring = ((QHttpRequestHeader*) QtSupport::getQt(env, obj))->toString(); + return QtSupport::fromQString(env, &_qstring); +} + |