/***************************************************************************
                            KScriptClientInterface.m -  description
                             -------------------
    begin                : Fri Mar  8 13:55:08 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Fri Mar  8 13:55:08 2002, using kalyptus 0.9.
 ***************************************************************************/

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

#include <qtc/qt_QString.h>
#include <qtc/qt_QCString.h>
#include <kdec/kde_KScriptClientInterface.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KScriptClientInterface.h>
#include <qtobjc/QVariant.h>


@implementation  KScriptClientInterface

- (void *) qt
{
	return _qt;
}

- setQt: (void *) qt
{
	_qt = qt;
	return self;
}

- (BOOL) allocatedInObjcWorld
{
	return _allocatedInObjcWorld;
}

- setAllocatedInObjcWorld: (BOOL) yn
{
	_allocatedInObjcWorld = yn;
	return self;
}


- error: (NSString *)msg
{
static qt_QString * _qstring_msg = 0L;
	kde_KScriptClientInterface_error((kde_KScriptClientInterface *)[self qt], (qt_QString *) [msg toQString: &_qstring_msg]);
	return self;
}

- warning: (NSString *)msg
{
static qt_QString * _qstring_msg = 0L;
	kde_KScriptClientInterface_warning((kde_KScriptClientInterface *)[self qt], (qt_QString *) [msg toQString: &_qstring_msg]);
	return self;
}

- output: (NSString *)msg
{
static qt_QString * _qstring_msg = 0L;
	kde_KScriptClientInterface_output((kde_KScriptClientInterface *)[self qt], (qt_QString *) [msg toQString: &_qstring_msg]);
	return self;
}

- progress: (int)percent
{
	kde_KScriptClientInterface_progress((kde_KScriptClientInterface *)[self qt], (int)percent);
	return self;
}

- done: (int)result returned: (QVariant *)returned
{
	kde_KScriptClientInterface_done((kde_KScriptClientInterface *)[self qt], (int)result, (qt_QVariant *) [returned qt]);
	return self;
}

+ (int) ResultSuccess
{
	return (int) KSCRIPTCLIENTINTERFACE_ResultSuccess;
}

+ (int) ResultFailure
{
	return (int) KSCRIPTCLIENTINTERFACE_ResultFailure;
}

+ (int) ResultContinue
{
	return (int) KSCRIPTCLIENTINTERFACE_ResultContinue;
}

+ (int) ResultBreak
{
	return (int) KSCRIPTCLIENTINTERFACE_ResultBreak;
}

@end
