//Auto-generated by kalyptus. DO NOT EDIT.
#include <kcmdlineargs.h>
#include <dcopclient.h>
#include <qstring.h>
#include <kurl.h>
#include <qdatastream.h>
#include <qcstring.h>

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

class KCmdLineArgsJBridge : public KCmdLineArgs
{
public:
	KCmdLineArgsJBridge(const KCmdLineOptions* arg1,const char* arg2,const char* arg3) : KCmdLineArgs(arg1,arg2,arg3) {};
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray options)
{
	(void) cls;
	KCmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray options, jstring name)
{
	(void) cls;
static QCString* _qstring_name = 0;
	KCmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options), (const char*) QtSupport::toCharString(env, name, &_qstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray options, jstring name, jstring id)
{
	(void) cls;
static QCString* _qstring_name = 0;
static QCString* _qstring_id = 0;
	KCmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, id, &_qstring_id));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_addCmdLineOptions___3_3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray options, jstring name, jstring id, jstring afterId)
{
	(void) cls;
static QCString* _qstring_name = 0;
static QCString* _qstring_id = 0;
static QCString* _qstring_afterId = 0;
	KCmdLineArgsJBridge::addCmdLineOptions((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, options), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, id, &_qstring_id), (const char*) QtSupport::toCharString(env, afterId, &_qstring_afterId));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_addTempFileOption(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KCmdLineArgsJBridge::addTempFileOption();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCmdLineArgs_appName(JNIEnv* env, jclass cls)
{
	const char* _qstring;
	(void) cls;
	_qstring = KCmdLineArgsJBridge::appName();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCmdLineArgs_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KCmdLineArgs*) QtSupport::getQt(env, obj))->count();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCmdLineArgs_cwd(JNIEnv* env, jclass cls)
{
	QString  _qstring;
	(void) cls;
	_qstring = KCmdLineArgsJBridge::cwd();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_enable_1i18n(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KCmdLineArgsJBridge::enable_i18n();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCmdLineArgs_getOptionList(JNIEnv* env, jobject obj, jstring option)
{
	QCStringList  _qlist;
static QCString* _qstring_option = 0;
	_qlist = ((KCmdLineArgs*) QtSupport::getQt(env, obj))->getOptionList((const char*) QtSupport::toCharString(env, option, &_qstring_option));
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCmdLineArgs_getOption(JNIEnv* env, jobject obj, jstring option)
{
	QCString  _qstring;
static QCString* _qstring_option = 0;
	_qstring = ((KCmdLineArgs*) QtSupport::getQt(env, obj))->getOption((const char*) QtSupport::toCharString(env, option, &_qstring_option));
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_init__Lorg_kde_koala_KAboutData_2(JNIEnv* env, jclass cls, jobject about)
{
	(void) cls;
	KCmdLineArgsJBridge::init((const KAboutData*) QtSupport::getQt(env, about));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCmdLineArgs_isSet(JNIEnv* env, jobject obj, jstring option)
{
static QCString* _qstring_option = 0;
	jboolean xret = (jboolean) ((KCmdLineArgs*) QtSupport::getQt(env, obj))->isSet((const char*) QtSupport::toCharString(env, option, &_qstring_option));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCmdLineArgs_isTempFileSet(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KCmdLineArgsJBridge::isTempFileSet();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_loadAppArgs(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	KCmdLineArgsJBridge::loadAppArgs((QDataStream&)*(QDataStream*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCmdLineArgs_makeURL(JNIEnv* env, jclass cls, jstring urlArg)
{
	(void) cls;
static QCString* _qstring_urlArg = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(KCmdLineArgsJBridge::makeURL((const char*) QtSupport::toCharString(env, urlArg, &_qstring_urlArg))), "org.kde.koala.KURL", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_newKCmdLineArgs(JNIEnv* env, jobject obj, jobjectArray _options, jstring _name, jstring _id)
{
static QCString* _qstring__name = 0;
static QCString* _qstring__id = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KCmdLineArgsJBridge((KCmdLineOptions*) KDESupport::toKCmdLineOptions(env, _options), (const char*) QtSupport::toCharString(env, _name, &_qstring__name), (const char*) QtSupport::toCharString(env, _id, &_qstring__id)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCmdLineArgs_parsedArgs__(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KCmdLineArgsJBridge::parsedArgs(), "org.kde.koala.KCmdLineArgs");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCmdLineArgs_parsedArgs__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring id)
{
	(void) cls;
static QCString* _qstring_id = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KCmdLineArgsJBridge::parsedArgs((const char*) QtSupport::toCharString(env, id, &_qstring_id)), "org.kde.koala.KCmdLineArgs");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_reset(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KCmdLineArgsJBridge::reset();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_setCwd(JNIEnv* env, jclass cls, jstring cwd)
{
	(void) cls;
static QCString* _qstring_cwd = 0;
	KCmdLineArgsJBridge::setCwd((char*) QtSupport::toCharString(env, cwd, &_qstring_cwd));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCmdLineArgs_url(JNIEnv* env, jobject obj, jint n)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KCmdLineArgs*) QtSupport::getQt(env, obj))->url((int) n)), "org.kde.koala.KURL", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_usage__(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KCmdLineArgsJBridge::usage();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_usage__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring id)
{
	(void) cls;
static QCString* _qstring_id = 0;
	KCmdLineArgsJBridge::usage((const char*) QtSupport::toCharString(env, id, &_qstring_id));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_init___3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray args, jstring _appname, jstring programName, jstring _description, jstring _version)
{
	(void) cls;
static QCString* _qstring__appname = 0;
static QCString* _qstring_programName = 0;
static QCString* _qstring__description = 0;
static QCString* _qstring__version = 0;
	int argc = (int) env->GetArrayLength(args);
	KCmdLineArgsJBridge::init((int) argc+1, (char**) QtSupport::toArgv(env, args), (const char*) QtSupport::toCharString(env, _appname, &_qstring__appname), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, _description, &_qstring__description), (const char*) QtSupport::toCharString(env, _version, &_qstring__version));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_init___3Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jobjectArray args, jstring _appname, jstring programName, jstring _description, jstring _version, jboolean noKApp)
{
	(void) cls;
static QCString* _qstring__appname = 0;
static QCString* _qstring_programName = 0;
static QCString* _qstring__description = 0;
static QCString* _qstring__version = 0;
	int argc = (int) env->GetArrayLength(args);
	KCmdLineArgsJBridge::init(argc+1, (char**) QtSupport::toArgv(env, args), (const char*) QtSupport::toCharString(env, _appname, &_qstring__appname), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, _description, &_qstring__description), (const char*) QtSupport::toCharString(env, _version, &_qstring__version), (bool) noKApp);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_init___3Ljava_lang_String_2Lorg_kde_koala_KAboutData_2(JNIEnv* env, jclass cls, jobjectArray args, jobject about)
{
	(void) cls;
	int argc = (int) env->GetArrayLength(args);
	KCmdLineArgsJBridge::init(argc+1, (char**) QtSupport::toArgv(env, args), (const KAboutData*) QtSupport::getQt(env, about));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCmdLineArgs_init___3Ljava_lang_String_2Lorg_kde_koala_KAboutData_2Z(JNIEnv* env, jclass cls, jobjectArray args, jobject about, jboolean noKApp)
{
	(void) cls;
	int argc = (int) env->GetArrayLength(args);
	KCmdLineArgsJBridge::init(argc+1, (char**) QtSupport::toArgv(env, args), (const KAboutData*) QtSupport::getQt(env, about), (bool) noKApp);
	return;
}

