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/QHttpResponseHeader.cpp

107 lines
3.3 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqhttp.h>
#include <qtjava/QtSupport.h>
#include <qtjava/QHttpResponseHeader.h>
class TQHttpResponseHeaderJBridge : public TQHttpResponseHeader
{
public:
TQHttpResponseHeaderJBridge() : TQHttpResponseHeader() {};
TQHttpResponseHeaderJBridge(const TQHttpResponseHeader& arg1) : TQHttpResponseHeader(arg1) {};
bool protected_parseLine(const TQString& arg1,int arg2) {
return (bool) TQHttpResponseHeader::parseLine(arg1,arg2);
}
~TQHttpResponseHeaderJBridge() {QtSupport::qtKeyDeleted(this);}
};
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttpResponseHeader_dispose(JNIEnv* env, jobject obj)
{
Java_org_kde_qt_QHttpResponseHeader_finalize(env, obj);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttpResponseHeader_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj)) {
delete (TQHttpResponseHeader*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QHttpResponseHeader_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttpResponseHeader_majorVersion(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TQHttpResponseHeader*) QtSupport::getQt(env, obj))->majorVersion();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttpResponseHeader_minorVersion(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TQHttpResponseHeader*) QtSupport::getQt(env, obj))->minorVersion();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttpResponseHeader_newTQHttpResponseHeader__(JNIEnv* env, jobject obj)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQHttpResponseHeaderJBridge());
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QHttpResponseHeader_newTQHttpResponseHeader__Lorg_kde_qt_QHttpResponseHeader_2(JNIEnv* env, jobject obj, jobject header)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQHttpResponseHeaderJBridge((const TQHttpResponseHeader&)*(const TQHttpResponseHeader*) QtSupport::getQt(env, header)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QHttpResponseHeader_parseLine(JNIEnv* env, jobject obj, jstring line, jint number)
{
static TQString* _qstring_line = 0;
jboolean xret = (jboolean) ((TQHttpResponseHeaderJBridge*) QtSupport::getQt(env, obj))->protected_parseLine((const TQString&)*(TQString*) QtSupport::toTQString(env, line, &_qstring_line), (int) number);
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QHttpResponseHeader_reasonPhrase(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((TQHttpResponseHeader*) QtSupport::getQt(env, obj))->reasonPhrase();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jint JNICALL
Java_org_kde_qt_QHttpResponseHeader_statusCode(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TQHttpResponseHeader*) QtSupport::getQt(env, obj))->statusCode();
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QHttpResponseHeader_toString(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((TQHttpResponseHeader*) QtSupport::getQt(env, obj))->toString();
return QtSupport::fromTQString(env, &_qstring);
}