/***************************************************************************
                            kde_OpenURLEvent.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_OpenURLEvent.h"
}

#include <kparts/browserextension.h>

class OpenURLEventBridge : public KParts::OpenURLEvent
{
public:
	OpenURLEventBridge(KParts::ReadOnlyPart* part, const KURL& url, const KParts::URLArgs& args) : OpenURLEvent(part, url, args) {}
	~OpenURLEventBridge() {}
};

kde_OpenURLEvent * kde_new_OpenURLEvent(kde_ReadOnlyPart* part, kde_KURL* url, kde_URLArgs* args){
	return (kde_OpenURLEvent *) new OpenURLEventBridge((KParts::ReadOnlyPart*)part, (KURL&)* (KURL*)url, (KParts::URLArgs&)* (KParts::URLArgs*)args);
}
void kde_del_OpenURLEvent( kde_OpenURLEvent* p ){
	delete (OpenURLEventBridge*) p;
}
kde_ReadOnlyPart* kde_OpenURLEvent_part( kde_OpenURLEvent* instPointer){
	return (kde_ReadOnlyPart*) ((OpenURLEventBridge*)instPointer)->part();
}
kde_KURL* kde_OpenURLEvent_url( kde_OpenURLEvent* instPointer){
	return (kde_KURL*)new KURL(((OpenURLEventBridge*)instPointer)->url());
}
kde_URLArgs* kde_OpenURLEvent_args( kde_OpenURLEvent* instPointer){
	return (kde_URLArgs*)new KParts::URLArgs(((OpenURLEventBridge*)instPointer)->args());
}
int kde_OpenURLEvent_test( qt_QEvent * event){
	return (int) OpenURLEventBridge::test((QEvent*)event);
}
