/***************************************************************************
                            kde_BrowserExtension.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_BrowserExtension.h"
}

#include <kparts/browserextension.h>

class BrowserExtensionBridge : public KParts::BrowserExtension
{
public:
	BrowserExtensionBridge(KParts::ReadOnlyPart* parent, const char* name) : BrowserExtension(parent, name) {}
	~BrowserExtensionBridge() {}
	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_BrowserExtension * kde_new_BrowserExtension(kde_ReadOnlyPart* parent, char* name){
	return (kde_BrowserExtension *) new BrowserExtensionBridge((KParts::ReadOnlyPart*)parent, (char*)name);
}
void kde_del_BrowserExtension( kde_BrowserExtension* p ){
	delete (BrowserExtensionBridge*) p;
}
void kde_BrowserExtension_setURLArgs( kde_BrowserExtension* instPointer,kde_URLArgs* args){
	((BrowserExtensionBridge*)instPointer)->setURLArgs((KParts::URLArgs&)* (KParts::URLArgs*)args);
	return;
}
kde_URLArgs* kde_BrowserExtension_urlArgs( kde_BrowserExtension* instPointer){
	return (kde_URLArgs*)new KParts::URLArgs(((BrowserExtensionBridge*)instPointer)->urlArgs());
}
int kde_BrowserExtension_xOffset( kde_BrowserExtension* instPointer){
	return (int) ((BrowserExtensionBridge*)instPointer)->xOffset();
}
int kde_BrowserExtension_yOffset( kde_BrowserExtension* instPointer){
	return (int) ((BrowserExtensionBridge*)instPointer)->yOffset();
}
void kde_BrowserExtension_saveState( kde_BrowserExtension* instPointer,qt_QDataStream * stream){
	((BrowserExtensionBridge*)instPointer)->saveState((QDataStream&)* (QDataStream*)stream);
	return;
}
void kde_BrowserExtension_restoreState( kde_BrowserExtension* instPointer,qt_QDataStream * stream){
	((BrowserExtensionBridge*)instPointer)->restoreState((QDataStream&)* (QDataStream*)stream);
	return;
}
int kde_BrowserExtension_isURLDropHandlingEnabled( kde_BrowserExtension* instPointer){
	return (int) ((BrowserExtensionBridge*)instPointer)->isURLDropHandlingEnabled();
}
void kde_BrowserExtension_setURLDropHandlingEnabled( kde_BrowserExtension* instPointer,int enable){
	((BrowserExtensionBridge*)instPointer)->setURLDropHandlingEnabled((bool)enable);
	return;
}
//void kde_BrowserExtension_setBrowserInterface( kde_BrowserExtension* instPointer,kde_BrowserInterface* impl){
//	((BrowserExtensionBridge*)instPointer)->setBrowserInterface((BrowserInterface*)impl);
//	return;
//}
kde_BrowserInterface* kde_BrowserExtension_browserInterface( kde_BrowserExtension* instPointer){
	return (kde_BrowserInterface*) ((BrowserExtensionBridge*)instPointer)->browserInterface();
}
int kde_BrowserExtension_isActionEnabled( kde_BrowserExtension* instPointer,char* name){
	return (int) ((BrowserExtensionBridge*)instPointer)->isActionEnabled((char*)name);
}
//ActionSlotMap kde_BrowserExtension_actionSlotMap( ){
//	return (ActionSlotMap) BrowserExtensionBridge::actionSlotMap();
//}
//ActionSlotMap* kde_BrowserExtension_actionSlotMapPtr( ){
//	return (ActionSlotMap*) BrowserExtensionBridge::actionSlotMapPtr();
//}
kde_BrowserExtension* kde_BrowserExtension_childObject( qt_QObject * obj){
	return (kde_BrowserExtension*) BrowserExtensionBridge::childObject((QObject*)obj);
}
