/***************************************************************************
                            kde_KDataToolInfo.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 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.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "kde_KDataToolInfo.h"
}

#include <kdatatool.h>

class KDataToolInfoBridge : public KDataToolInfo
{
public:
	KDataToolInfoBridge() : KDataToolInfo() {}
	KDataToolInfoBridge(const KService::Ptr& service, KInstance* instance) : KDataToolInfo(service, instance) {}
	KDataToolInfoBridge(const KDataToolInfo& info) : KDataToolInfo(info) {}
};

kde_KDataToolInfo * kde_new_KDataToolInfo(){
	return (kde_KDataToolInfo *) new KDataToolInfoBridge();
}
//kde_KDataToolInfo * kde_new_KDataToolInfo1(kde_KServicePtr* service, kde_KInstance* instance){
//	return (kde_KDataToolInfo *) new KDataToolInfoBridge((KService::Ptr&)* (KService::Ptr*)service, (KInstance*)instance);
//}
kde_KDataToolInfo * kde_new_KDataToolInfo2(kde_KDataToolInfo* info){
	return (kde_KDataToolInfo *) new KDataToolInfoBridge((KDataToolInfo&)* (KDataToolInfo*)info);
}
qt_QString * kde_KDataToolInfo_dataType( kde_KDataToolInfo* instPointer){
	return (qt_QString *)new QString(((KDataToolInfoBridge*)instPointer)->dataType());
}
qt_QStringList* kde_KDataToolInfo_mimeTypes( kde_KDataToolInfo* instPointer){
	return (qt_QStringList*)new QStringList(((KDataToolInfoBridge*)instPointer)->mimeTypes());
}
int kde_KDataToolInfo_isReadOnly( kde_KDataToolInfo* instPointer){
	return (int) ((KDataToolInfoBridge*)instPointer)->isReadOnly();
}
qt_QPixmap * kde_KDataToolInfo_icon( kde_KDataToolInfo* instPointer){
	return (qt_QPixmap *)new QPixmap(((KDataToolInfoBridge*)instPointer)->icon());
}
qt_QPixmap * kde_KDataToolInfo_miniIcon( kde_KDataToolInfo* instPointer){
	return (qt_QPixmap *)new QPixmap(((KDataToolInfoBridge*)instPointer)->miniIcon());
}
qt_QString * kde_KDataToolInfo_iconName( kde_KDataToolInfo* instPointer){
	return (qt_QString *)new QString(((KDataToolInfoBridge*)instPointer)->iconName());
}
qt_QStringList* kde_KDataToolInfo_userCommands( kde_KDataToolInfo* instPointer){
	return (qt_QStringList*)new QStringList(((KDataToolInfoBridge*)instPointer)->userCommands());
}
qt_QStringList* kde_KDataToolInfo_commands( kde_KDataToolInfo* instPointer){
	return (qt_QStringList*)new QStringList(((KDataToolInfoBridge*)instPointer)->commands());
}
kde_KDataTool* kde_KDataToolInfo_createTool( kde_KDataToolInfo* instPointer,qt_QObject * parent, char* name){
	return (kde_KDataTool*) ((KDataToolInfoBridge*)instPointer)->createTool((QObject*)parent, (char*)name);
}
//kde_KService_Ptr* kde_KDataToolInfo_service( kde_KDataToolInfo* instPointer){
//	return (kde_KService_Ptr*) ((KDataToolInfoBridge*)instPointer)->service();
//}
kde_KInstance* kde_KDataToolInfo_instance( kde_KDataToolInfo* instPointer){
	return (kde_KInstance*) ((KDataToolInfoBridge*)instPointer)->instance();
}
int kde_KDataToolInfo_isValid( kde_KDataToolInfo* instPointer){
	return (int) ((KDataToolInfoBridge*)instPointer)->isValid();
}
