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

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KDCOPServiceStarter.h>

class KDCOPServiceStarterJBridge : public KDCOPServiceStarter
{
public:
	KDCOPServiceStarterJBridge() : KDCOPServiceStarter() {};
};

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_findServiceFor__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring serviceType)
{
static TQString* _qstring_serviceType = 0;
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->findServiceFor((const TQString&)*(TQString*) QtSupport::toTQString(env, serviceType, &_qstring_serviceType));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_findServiceFor__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring serviceType, jstring constraint)
{
static TQString* _qstring_serviceType = 0;
static TQString* _qstring_constraint = 0;
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->findServiceFor((const TQString&)*(TQString*) QtSupport::toTQString(env, serviceType, &_qstring_serviceType), (const TQString&)*(TQString*) QtSupport::toTQString(env, constraint, &_qstring_constraint));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_findServiceFor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring serviceType, jstring constraint, jstring preferences)
{
static TQString* _qstring_serviceType = 0;
static TQString* _qstring_constraint = 0;
static TQString* _qstring_preferences = 0;
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->findServiceFor((const TQString&)*(TQString*) QtSupport::toTQString(env, serviceType, &_qstring_serviceType), (const TQString&)*(TQString*) QtSupport::toTQString(env, constraint, &_qstring_constraint), (const TQString&)*(TQString*) QtSupport::toTQString(env, preferences, &_qstring_preferences));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_findServiceFor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jstring serviceType, jstring constraint, jstring preferences, jobject error)
{
static TQString* _qstring_serviceType = 0;
static TQString* _qstring_constraint = 0;
static TQString* _qstring_preferences = 0;
static TQString* _qstring_error = 0;
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->findServiceFor((const TQString&)*(TQString*) QtSupport::toTQString(env, serviceType, &_qstring_serviceType), (const TQString&)*(TQString*) QtSupport::toTQString(env, constraint, &_qstring_constraint), (const TQString&)*(TQString*) QtSupport::toTQString(env, preferences, &_qstring_preferences), (TQString*) QtSupport::toTQStringFromStringBuffer(env, error, &_qstring_error));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_error, error);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_findServiceFor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_StringBuffer_2Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jstring serviceType, jstring constraint, jstring preferences, jobject error, jobject dcopService)
{
static TQString* _qstring_serviceType = 0;
static TQString* _qstring_constraint = 0;
static TQString* _qstring_preferences = 0;
static TQString* _qstring_error = 0;
static TQCString* _qcstring_dcopService = 0;
	if (_qcstring_dcopService == 0) {
		_qcstring_dcopService = new TQCString();
	}
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->findServiceFor((const TQString&)*(TQString*) QtSupport::toTQString(env, serviceType, &_qstring_serviceType), (const TQString&)*(TQString*) QtSupport::toTQString(env, constraint, &_qstring_constraint), (const TQString&)*(TQString*) QtSupport::toTQString(env, preferences, &_qstring_preferences), (TQString*) QtSupport::toTQStringFromStringBuffer(env, error, &_qstring_error), (TQCString*) _qcstring_dcopService);
	QtSupport::fromTQStringToStringBuffer(env, _qstring_error, error);
	QtSupport::fromTQCStringToStringBuffer(env, _qcstring_dcopService, dcopService);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_findServiceFor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_StringBuffer_2Ljava_lang_StringBuffer_2I(JNIEnv* env, jobject obj, jstring serviceType, jstring constraint, jstring preferences, jobject error, jobject dcopService, jint flags)
{
static TQString* _qstring_serviceType = 0;
static TQString* _qstring_constraint = 0;
static TQString* _qstring_preferences = 0;
static TQString* _qstring_error = 0;
static TQCString* _qcstring_dcopService = 0;
	if (_qcstring_dcopService == 0) {
		_qcstring_dcopService = new TQCString();
	}
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->findServiceFor((const TQString&)*(TQString*) QtSupport::toTQString(env, serviceType, &_qstring_serviceType), (const TQString&)*(TQString*) QtSupport::toTQString(env, constraint, &_qstring_constraint), (const TQString&)*(TQString*) QtSupport::toTQString(env, preferences, &_qstring_preferences), (TQString*) QtSupport::toTQStringFromStringBuffer(env, error, &_qstring_error), (TQCString*) _qcstring_dcopService, (int) flags);
	QtSupport::fromTQStringToStringBuffer(env, _qstring_error, error);
	QtSupport::fromTQCStringToStringBuffer(env, _qcstring_dcopService, dcopService);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_newKDCOPServiceStarter(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KDCOPServiceStarterJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_self(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KDCOPServiceStarterJBridge::self(), "org.trinitydesktop.koala.KDCOPServiceStarter");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_startServiceFor__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring serviceType)
{
static TQString* _qstring_serviceType = 0;
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->startServiceFor((const TQString&)*(TQString*) QtSupport::toTQString(env, serviceType, &_qstring_serviceType));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_startServiceFor__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring serviceType, jstring constraint)
{
static TQString* _qstring_serviceType = 0;
static TQString* _qstring_constraint = 0;
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->startServiceFor((const TQString&)*(TQString*) QtSupport::toTQString(env, serviceType, &_qstring_serviceType), (const TQString&)*(TQString*) QtSupport::toTQString(env, constraint, &_qstring_constraint));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_startServiceFor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring serviceType, jstring constraint, jstring preferences)
{
static TQString* _qstring_serviceType = 0;
static TQString* _qstring_constraint = 0;
static TQString* _qstring_preferences = 0;
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->startServiceFor((const TQString&)*(TQString*) QtSupport::toTQString(env, serviceType, &_qstring_serviceType), (const TQString&)*(TQString*) QtSupport::toTQString(env, constraint, &_qstring_constraint), (const TQString&)*(TQString*) QtSupport::toTQString(env, preferences, &_qstring_preferences));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_startServiceFor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jstring serviceType, jstring constraint, jstring preferences, jobject error)
{
static TQString* _qstring_serviceType = 0;
static TQString* _qstring_constraint = 0;
static TQString* _qstring_preferences = 0;
static TQString* _qstring_error = 0;
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->startServiceFor((const TQString&)*(TQString*) QtSupport::toTQString(env, serviceType, &_qstring_serviceType), (const TQString&)*(TQString*) QtSupport::toTQString(env, constraint, &_qstring_constraint), (const TQString&)*(TQString*) QtSupport::toTQString(env, preferences, &_qstring_preferences), (TQString*) QtSupport::toTQStringFromStringBuffer(env, error, &_qstring_error));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_error, error);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_startServiceFor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_StringBuffer_2Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jstring serviceType, jstring constraint, jstring preferences, jobject error, jobject dcopService)
{
static TQString* _qstring_serviceType = 0;
static TQString* _qstring_constraint = 0;
static TQString* _qstring_preferences = 0;
static TQString* _qstring_error = 0;
static TQCString* _qcstring_dcopService = 0;
	if (_qcstring_dcopService == 0) {
		_qcstring_dcopService = new TQCString();
	}
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->startServiceFor((const TQString&)*(TQString*) QtSupport::toTQString(env, serviceType, &_qstring_serviceType), (const TQString&)*(TQString*) QtSupport::toTQString(env, constraint, &_qstring_constraint), (const TQString&)*(TQString*) QtSupport::toTQString(env, preferences, &_qstring_preferences), (TQString*) QtSupport::toTQStringFromStringBuffer(env, error, &_qstring_error), (TQCString*) _qcstring_dcopService);
	QtSupport::fromTQStringToStringBuffer(env, _qstring_error, error);
	QtSupport::fromTQCStringToStringBuffer(env, _qcstring_dcopService, dcopService);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KDCOPServiceStarter_startServiceFor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_StringBuffer_2Ljava_lang_StringBuffer_2I(JNIEnv* env, jobject obj, jstring serviceType, jstring constraint, jstring preferences, jobject error, jobject dcopService, jint flags)
{
static TQString* _qstring_serviceType = 0;
static TQString* _qstring_constraint = 0;
static TQString* _qstring_preferences = 0;
static TQString* _qstring_error = 0;
static TQCString* _qcstring_dcopService = 0;
	if (_qcstring_dcopService == 0) {
		_qcstring_dcopService = new TQCString();
	}
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->startServiceFor((const TQString&)*(TQString*) QtSupport::toTQString(env, serviceType, &_qstring_serviceType), (const TQString&)*(TQString*) QtSupport::toTQString(env, constraint, &_qstring_constraint), (const TQString&)*(TQString*) QtSupport::toTQString(env, preferences, &_qstring_preferences), (TQString*) QtSupport::toTQStringFromStringBuffer(env, error, &_qstring_error), (TQCString*) _qcstring_dcopService, (int) flags);
	QtSupport::fromTQStringToStringBuffer(env, _qstring_error, error);
	QtSupport::fromTQCStringToStringBuffer(env, _qcstring_dcopService, dcopService);
	return xret;
}

