//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstring.h>
#include <qstringlist.h>
#include <qhttp.h>

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QHttpHeader_contentType(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QHttpHeader*) QtSupport::getQt(env, obj))->contentType();
	return QtSupport::fromQString(env, &_qstring);
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QHttpHeader_hasKey(JNIEnv* env, jobject obj, jstring key)
{
static QString* _qstring_key = 0;
	jboolean xret = (jboolean) ((QHttpHeader*) QtSupport::getQt(env, obj))->hasKey((const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key));
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QHttpHeader_keys(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QHttpHeader*) QtSupport::getQt(env, obj))->keys();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QHttpHeader_removeValue(JNIEnv* env, jobject obj, jstring key)
{
static QString* _qstring_key = 0;
	((QHttpHeader*) QtSupport::getQt(env, obj))->removeValue((const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QHttpHeader_setContentType(JNIEnv* env, jobject obj, jstring type)
{
static QString* _qstring_type = 0;
	((QHttpHeader*) QtSupport::getQt(env, obj))->setContentType((const QString&)*(QString*) QtSupport::toQString(env, type, &_qstring_type));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QHttpHeader_setValue(JNIEnv* env, jobject obj, jstring key, jstring value)
{
static QString* _qstring_key = 0;
static QString* _qstring_value = 0;
	((QHttpHeader*) QtSupport::getQt(env, obj))->setValue((const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key), (const QString&)*(QString*) QtSupport::toQString(env, value, &_qstring_value));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QHttpHeader_toString(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QHttpHeader*) QtSupport::getQt(env, obj))->toString();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QHttpHeader_value(JNIEnv* env, jobject obj, jstring key)
{
	QString  _qstring;
static QString* _qstring_key = 0;
	_qstring = ((QHttpHeader*) QtSupport::getQt(env, obj))->value((const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key));
	return QtSupport::fromQString(env, &_qstring);
}

