//Auto-generated by kalyptus. DO NOT EDIT.
#include <qcstring.h>
#include <qmime.h>

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

JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QMimeSource_encodedData(JNIEnv* env, jobject obj, jstring arg1)
{
	QByteArray _qbyteArray;
static QCString* _qstring_arg1 = 0;
	_qbyteArray = ((QMimeSource*) QtSupport::getQt(env, obj))->encodedData((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQByteArray(env, &_qbyteArray);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QMimeSource_format__(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((QMimeSource*) QtSupport::getQt(env, obj))->format();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QMimeSource_format__I(JNIEnv* env, jobject obj, jint n)
{
	const char* _qstring;
	_qstring = ((QMimeSource*) QtSupport::getQt(env, obj))->format((int) n);
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMimeSource_provides(JNIEnv* env, jobject obj, jstring arg1)
{
static QCString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((QMimeSource*) QtSupport::getQt(env, obj))->provides((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QMimeSource_serialNumber(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QMimeSource*) QtSupport::getQt(env, obj))->serialNumber();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_kde_qt_QMimeSource_mimeSource(JNIEnv* env, jobject obj)
{
	return (jlong) (QMimeSource *) QtSupport::getQt(env, obj);
}

