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

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KDCOPServiceStarter.h>

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

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

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

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

JNIEXPORT jint JNICALL
Java_org_kde_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 QString* _qstring_serviceType = 0;
static QString* _qstring_constraint = 0;
static QString* _qstring_preferences = 0;
static QString* _qstring_error = 0;
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->findServiceFor((const QString&)*(QString*) QtSupport::toQString(env, serviceType, &_qstring_serviceType), (const QString&)*(QString*) QtSupport::toQString(env, constraint, &_qstring_constraint), (const QString&)*(QString*) QtSupport::toQString(env, preferences, &_qstring_preferences), (QString*) QtSupport::toQStringFromStringBuffer(env, error, &_qstring_error));
	QtSupport::fromQStringToStringBuffer(env, _qstring_error, error);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_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 QString* _qstring_serviceType = 0;
static QString* _qstring_constraint = 0;
static QString* _qstring_preferences = 0;
static QString* _qstring_error = 0;
static QCString* _qcstring_dcopService = 0;
	if (_qcstring_dcopService == 0) {
		_qcstring_dcopService = new QCString();
	}
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->findServiceFor((const QString&)*(QString*) QtSupport::toQString(env, serviceType, &_qstring_serviceType), (const QString&)*(QString*) QtSupport::toQString(env, constraint, &_qstring_constraint), (const QString&)*(QString*) QtSupport::toQString(env, preferences, &_qstring_preferences), (QString*) QtSupport::toQStringFromStringBuffer(env, error, &_qstring_error), (QCString*) _qcstring_dcopService);
	QtSupport::fromQStringToStringBuffer(env, _qstring_error, error);
	QtSupport::fromQCStringToStringBuffer(env, _qcstring_dcopService, dcopService);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_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 QString* _qstring_serviceType = 0;
static QString* _qstring_constraint = 0;
static QString* _qstring_preferences = 0;
static QString* _qstring_error = 0;
static QCString* _qcstring_dcopService = 0;
	if (_qcstring_dcopService == 0) {
		_qcstring_dcopService = new QCString();
	}
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->findServiceFor((const QString&)*(QString*) QtSupport::toQString(env, serviceType, &_qstring_serviceType), (const QString&)*(QString*) QtSupport::toQString(env, constraint, &_qstring_constraint), (const QString&)*(QString*) QtSupport::toQString(env, preferences, &_qstring_preferences), (QString*) QtSupport::toQStringFromStringBuffer(env, error, &_qstring_error), (QCString*) _qcstring_dcopService, (int) flags);
	QtSupport::fromQStringToStringBuffer(env, _qstring_error, error);
	QtSupport::fromQCStringToStringBuffer(env, _qcstring_dcopService, dcopService);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KDCOPServiceStarter_self(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KDCOPServiceStarterJBridge::self(), "org.kde.koala.KDCOPServiceStarter");
	return xret;
}

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

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

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

JNIEXPORT jint JNICALL
Java_org_kde_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 QString* _qstring_serviceType = 0;
static QString* _qstring_constraint = 0;
static QString* _qstring_preferences = 0;
static QString* _qstring_error = 0;
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->startServiceFor((const QString&)*(QString*) QtSupport::toQString(env, serviceType, &_qstring_serviceType), (const QString&)*(QString*) QtSupport::toQString(env, constraint, &_qstring_constraint), (const QString&)*(QString*) QtSupport::toQString(env, preferences, &_qstring_preferences), (QString*) QtSupport::toQStringFromStringBuffer(env, error, &_qstring_error));
	QtSupport::fromQStringToStringBuffer(env, _qstring_error, error);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_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 QString* _qstring_serviceType = 0;
static QString* _qstring_constraint = 0;
static QString* _qstring_preferences = 0;
static QString* _qstring_error = 0;
static QCString* _qcstring_dcopService = 0;
	if (_qcstring_dcopService == 0) {
		_qcstring_dcopService = new QCString();
	}
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->startServiceFor((const QString&)*(QString*) QtSupport::toQString(env, serviceType, &_qstring_serviceType), (const QString&)*(QString*) QtSupport::toQString(env, constraint, &_qstring_constraint), (const QString&)*(QString*) QtSupport::toQString(env, preferences, &_qstring_preferences), (QString*) QtSupport::toQStringFromStringBuffer(env, error, &_qstring_error), (QCString*) _qcstring_dcopService);
	QtSupport::fromQStringToStringBuffer(env, _qstring_error, error);
	QtSupport::fromQCStringToStringBuffer(env, _qcstring_dcopService, dcopService);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_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 QString* _qstring_serviceType = 0;
static QString* _qstring_constraint = 0;
static QString* _qstring_preferences = 0;
static QString* _qstring_error = 0;
static QCString* _qcstring_dcopService = 0;
	if (_qcstring_dcopService == 0) {
		_qcstring_dcopService = new QCString();
	}
	jint xret = (jint) ((KDCOPServiceStarter*) QtSupport::getQt(env, obj))->startServiceFor((const QString&)*(QString*) QtSupport::toQString(env, serviceType, &_qstring_serviceType), (const QString&)*(QString*) QtSupport::toQString(env, constraint, &_qstring_constraint), (const QString&)*(QString*) QtSupport::toQString(env, preferences, &_qstring_preferences), (QString*) QtSupport::toQStringFromStringBuffer(env, error, &_qstring_error), (QCString*) _qcstring_dcopService, (int) flags);
	QtSupport::fromQStringToStringBuffer(env, _qstring_error, error);
	QtSupport::fromQCStringToStringBuffer(env, _qcstring_dcopService, dcopService);
	return xret;
}

