//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqhttp.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQHttpHeader.h>

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_contentLength(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQHttpHeader*) QtSupport::getQt(env, obj))->contentLength();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_contentType(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQHttpHeader*) QtSupport::getQt(env, obj))->contentType();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_hasContentLength(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQHttpHeader*) QtSupport::getQt(env, obj))->hasContentLength();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_hasContentType(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQHttpHeader*) QtSupport::getQt(env, obj))->hasContentType();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_hasKey(JNIEnv* env, jobject obj, jstring key)
{
static TQString* _qstring_key = 0;
	jboolean xret = (jboolean) ((TQHttpHeader*) QtSupport::getQt(env, obj))->hasKey((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQHttpHeader*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_keys(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TQHttpHeader*) QtSupport::getQt(env, obj))->keys();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_majorVersion(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQHttpHeader*) QtSupport::getQt(env, obj))->majorVersion();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_minorVersion(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQHttpHeader*) QtSupport::getQt(env, obj))->minorVersion();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_removeValue(JNIEnv* env, jobject obj, jstring key)
{
static TQString* _qstring_key = 0;
	((TQHttpHeader*) QtSupport::getQt(env, obj))->removeValue((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_setContentLength(JNIEnv* env, jobject obj, jint len)
{
	((TQHttpHeader*) QtSupport::getQt(env, obj))->setContentLength((int) len);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_setContentType(JNIEnv* env, jobject obj, jstring type)
{
static TQString* _qstring_type = 0;
	((TQHttpHeader*) QtSupport::getQt(env, obj))->setContentType((const TQString&)*(TQString*) QtSupport::toTQString(env, type, &_qstring_type));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_setValue(JNIEnv* env, jobject obj, jstring key, jstring value)
{
static TQString* _qstring_key = 0;
static TQString* _qstring_value = 0;
	((TQHttpHeader*) QtSupport::getQt(env, obj))->setValue((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key), (const TQString&)*(TQString*) QtSupport::toTQString(env, value, &_qstring_value));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_toString(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQHttpHeader*) QtSupport::getQt(env, obj))->toString();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QHttpHeader_value(JNIEnv* env, jobject obj, jstring key)
{
	TQString  _qstring;
static TQString* _qstring_key = 0;
	_qstring = ((TQHttpHeader*) QtSupport::getQt(env, obj))->value((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key));
	return QtSupport::fromTQString(env, &_qstring);
}

