/***************************************************************************
                            kde_KScriptManager.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_KScriptManager.h"
}

#include <scriptmanager.h>

class KScriptManagerBridge : public KScriptManager
{
public:
	KScriptManagerBridge(QObject* parent, const char* name) : KScriptManager(parent, name) {}
	~KScriptManagerBridge() {}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

kde_KScriptManager * kde_new_KScriptManager(qt_QObject * parent, char* name){
	return (kde_KScriptManager *) new KScriptManagerBridge((QObject*)parent, (char*)name);
}
void kde_del_KScriptManager( kde_KScriptManager* p ){
	delete (KScriptManagerBridge*) p;
}
int kde_KScriptManager_addScript( kde_KScriptManager* instPointer,qt_QString * scriptDesktopFile){
	return (int) ((KScriptManagerBridge*)instPointer)->addScript((QString&)* (QString*)scriptDesktopFile);
}
int kde_KScriptManager_removeScript( kde_KScriptManager* instPointer,qt_QString * scriptName){
	return (int) ((KScriptManagerBridge*)instPointer)->removeScript((QString&)* (QString*)scriptName);
}
qt_QStringList* kde_KScriptManager_scripts( kde_KScriptManager* instPointer){
	return (qt_QStringList*)new QStringList(((KScriptManagerBridge*)instPointer)->scripts());
}
void kde_KScriptManager_clear( kde_KScriptManager* instPointer){
	((KScriptManagerBridge*)instPointer)->clear();
	return;
}
void kde_KScriptManager_error( kde_KScriptManager* instPointer,qt_QString * msg){
	((KScriptManagerBridge*)instPointer)->error((QString&)* (QString*)msg);
	return;
}
void kde_KScriptManager_warning( kde_KScriptManager* instPointer,qt_QString * msg){
	((KScriptManagerBridge*)instPointer)->warning((QString&)* (QString*)msg);
	return;
}
void kde_KScriptManager_output( kde_KScriptManager* instPointer,qt_QString * msg){
	((KScriptManagerBridge*)instPointer)->output((QString&)* (QString*)msg);
	return;
}
void kde_KScriptManager_progress( kde_KScriptManager* instPointer,int percent){
	((KScriptManagerBridge*)instPointer)->progress((int)percent);
	return;
}
void kde_KScriptManager_done( kde_KScriptManager* instPointer,int result, qt_QVariant * returned){
	((KScriptManagerBridge*)instPointer)->done((KScriptClientInterface::Result)result, (QVariant&)* (QVariant*)returned);
	return;
}
void kde_KScriptManager_runScript( kde_KScriptManager* instPointer,qt_QString * scriptName, qt_QObject * context, qt_QVariant * arg){
	((KScriptManagerBridge*)instPointer)->runScript((QString&)* (QString*)scriptName, (QObject*)context, (QVariant&)* (QVariant*)arg);
	return;
}
kde_KScriptClientInterface* kde_KScriptManager_KScriptClientInterface(kde_KScriptManager* instPointer){
	return (kde_KScriptClientInterface*) (KScriptClientInterface *) (KScriptManager *) instPointer;
}
qt_QObject * kde_KScriptManager_QObject(kde_KScriptManager* instPointer){
	return (qt_QObject *) (QObject *) (KScriptManager *) instPointer;
}
