/***************************************************************************
                            KScriptClientInterface.cpp -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <scriptclientinterface.h>
#include <qstring.h>
#include <qcstring.h>

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KScriptClientInterface_error(JNIEnv *env, jobject obj, jstring msg)
{
static QString * _qstring_msg = 0;
	((KScriptClientInterface*) QtSupport::getQt(env, obj))->error((QString&) * (QString *) QtSupport::toQString(env, msg, &_qstring_msg));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KScriptClientInterface_warning(JNIEnv *env, jobject obj, jstring msg)
{
static QString * _qstring_msg = 0;
	((KScriptClientInterface*) QtSupport::getQt(env, obj))->warning((QString&) * (QString *) QtSupport::toQString(env, msg, &_qstring_msg));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KScriptClientInterface_output(JNIEnv *env, jobject obj, jstring msg)
{
static QString * _qstring_msg = 0;
	((KScriptClientInterface*) QtSupport::getQt(env, obj))->output((QString&) * (QString *) QtSupport::toQString(env, msg, &_qstring_msg));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KScriptClientInterface_progress(JNIEnv *env, jobject obj, jint percent)
{
	((KScriptClientInterface*) QtSupport::getQt(env, obj))->progress((int) percent);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KScriptClientInterface_done(JNIEnv *env, jobject obj, jint result, jobject returned)
{
	((KScriptClientInterface*) QtSupport::getQt(env, obj))->done((KScriptClientInterface::Result) result, (QVariant&) *(QVariant *) QtSupport::getQt(env, returned));
	return;
}

