/***************************************************************************
                            KDataTool.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_KDataTool.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KDataTool.h>
#include <kdeobjc/KInstance.h>


@implementation  KDataTool


- setInstance: (KInstance*)instance
{
	kde_KDataTool_setInstance((kde_KDataTool *)[self qt], (kde_KInstance*) [instance qt]);
	return self;
}

- (KInstance*) instance
{
	return (KInstance*) [QtSupport objectForQtKey: kde_KDataTool_instance((kde_KDataTool *)[self qt]) withClass: [KInstance class] allocatedInObjcWorld: YES];
}

- (BOOL) run: (NSString *)command data: (void*)data datatype: (NSString *)datatype mimetype: (NSString *)mimetype
{
static qt_QString * _qstring_mimetype = 0L;
static qt_QString * _qstring_datatype = 0L;
static qt_QString * _qstring_command = 0L;
	return (BOOL) kde_KDataTool_run((kde_KDataTool *)[self qt], (qt_QString *) [command toQString: &_qstring_command], (void*)data, (qt_QString *) [datatype toQString: &_qstring_datatype], (qt_QString *) [mimetype toQString: &_qstring_mimetype]);
}

@end
