//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqcstring.h>
#include <tqmime.h>

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

JNIEXPORT jbyteArray JNICALL
Java_org_trinitydesktop_qt_QMimeSource_encodedData(JNIEnv* env, jobject obj, jstring arg1)
{
	TQByteArray _qbyteArray;
static TQCString* _qstring_arg1 = 0;
	_qbyteArray = ((TQMimeSource*) QtSupport::getQt(env, obj))->encodedData((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQByteArray(env, &_qbyteArray);
}

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

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

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

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

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

