//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqclipboard.h>
#include <tqpixmap.h>
#include <tqimage.h>
#include <tqstring.h>
#include <tqcstring.h>

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QClipboard_clear__(JNIEnv* env, jobject obj)
{
	((TQClipboard*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QClipboard_clear__I(JNIEnv* env, jobject obj, jint mode)
{
	((TQClipboard*) QtSupport::getQt(env, obj))->clear((TQClipboard::Mode) mode);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QClipboard_data__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQClipboard*) QtSupport::getQt(env, obj))->data(), "org.trinitydesktop.qt.TQMimeSourceInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QClipboard_data__I(JNIEnv* env, jobject obj, jint mode)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQClipboard*) QtSupport::getQt(env, obj))->data((TQClipboard::Mode) mode), "org.trinitydesktop.qt.TQMimeSourceInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QClipboard_image__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQClipboard*) QtSupport::getQt(env, obj))->image()), "org.trinitydesktop.qt.TQImage", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QClipboard_image__I(JNIEnv* env, jobject obj, jint mode)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQClipboard*) QtSupport::getQt(env, obj))->image((TQClipboard::Mode) mode)), "org.trinitydesktop.qt.TQImage", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QClipboard_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQClipboard*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QClipboard_ownsClipboard(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQClipboard*) QtSupport::getQt(env, obj))->ownsClipboard();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QClipboard_ownsSelection(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQClipboard*) QtSupport::getQt(env, obj))->ownsSelection();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QClipboard_pixmap__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((TQClipboard*) QtSupport::getQt(env, obj))->pixmap()), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QClipboard_pixmap__I(JNIEnv* env, jobject obj, jint mode)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((TQClipboard*) QtSupport::getQt(env, obj))->pixmap((TQClipboard::Mode) mode)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QClipboard_selectionModeEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQClipboard*) QtSupport::getQt(env, obj))->selectionModeEnabled();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QClipboard_setData__Lorg_trinitydesktop_qt_QMimeSourceInterface_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQClipboard*) QtSupport::getQt(env, obj))->setData((TQMimeSource*) QtSupport::mimeSource(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QClipboard_setData__Lorg_trinitydesktop_qt_QMimeSourceInterface_2I(JNIEnv* env, jobject obj, jobject arg1, jint mode)
{
	((TQClipboard*) QtSupport::getQt(env, obj))->setData((TQMimeSource*) QtSupport::mimeSource(env, arg1), (TQClipboard::Mode) mode);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QClipboard_setImage__Lorg_trinitydesktop_qt_QImage_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQClipboard*) QtSupport::getQt(env, obj))->setImage((const TQImage&)*(const TQImage*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QClipboard_setImage__Lorg_trinitydesktop_qt_QImage_2I(JNIEnv* env, jobject obj, jobject arg1, jint mode)
{
	((TQClipboard*) QtSupport::getQt(env, obj))->setImage((const TQImage&)*(const TQImage*) QtSupport::getQt(env, arg1), (TQClipboard::Mode) mode);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QClipboard_setPixmap__Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQClipboard*) QtSupport::getQt(env, obj))->setPixmap((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QClipboard_setPixmap__Lorg_trinitydesktop_qt_QPixmap_2I(JNIEnv* env, jobject obj, jobject arg1, jint mode)
{
	((TQClipboard*) QtSupport::getQt(env, obj))->setPixmap((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, arg1), (TQClipboard::Mode) mode);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QClipboard_setSelectionMode(JNIEnv* env, jobject obj, jboolean enable)
{
	((TQClipboard*) QtSupport::getQt(env, obj))->setSelectionMode((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QClipboard_setText__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	((TQClipboard*) QtSupport::getQt(env, obj))->setText((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QClipboard_setText__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring arg1, jint mode)
{
static TQString* _qstring_arg1 = 0;
	((TQClipboard*) QtSupport::getQt(env, obj))->setText((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (TQClipboard::Mode) mode);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QClipboard_supportsSelection(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQClipboard*) QtSupport::getQt(env, obj))->supportsSelection();
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QClipboard_text__I(JNIEnv* env, jobject obj, jint mode)
{
	TQString  _qstring;
	_qstring = ((TQClipboard*) QtSupport::getQt(env, obj))->text((TQClipboard::Mode) mode);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QClipboard_text__Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject subtype)
{
	TQString  _qstring;
static TQCString* _qcstring_subtype = 0;
	if (_qcstring_subtype == 0) {
		_qcstring_subtype = new TQCString();
	}
	_qstring = ((TQClipboard*) QtSupport::getQt(env, obj))->text((TQCString&)*(TQCString*) _qcstring_subtype);
	QtSupport::fromTQCStringToStringBuffer(env, _qcstring_subtype, subtype);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QClipboard_text__Ljava_lang_StringBuffer_2I(JNIEnv* env, jobject obj, jobject subtype, jint mode)
{
	TQString  _qstring;
static TQCString* _qcstring_subtype = 0;
	if (_qcstring_subtype == 0) {
		_qcstring_subtype = new TQCString();
	}
	_qstring = ((TQClipboard*) QtSupport::getQt(env, obj))->text((TQCString&)*(TQCString*) _qcstring_subtype, (TQClipboard::Mode) mode);
	QtSupport::fromTQCStringToStringBuffer(env, _qcstring_subtype, subtype);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QClipboard_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQClipboard::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QClipboard_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQClipboard::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

