/***************************************************************************
                            kde_URLArgs.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_URLArgs.h"
}

#include <kparts/browserextension.h>

class URLArgsBridge : public KParts::URLArgs
{
public:
	URLArgsBridge() : URLArgs() {}
	URLArgsBridge(const URLArgs& args) : URLArgs(args) {}
	URLArgsBridge(bool reload, int xOffset, int yOffset, const QString& serviceType) : URLArgs(reload, xOffset, yOffset, serviceType) {}
	~URLArgsBridge() {}
};

kde_URLArgs * kde_new_URLArgs(){
	return (kde_URLArgs *) new URLArgsBridge();
}
kde_URLArgs * kde_new_URLArgs1(kde_URLArgs* args){
	return (kde_URLArgs *) new URLArgsBridge((KParts::URLArgs&)* (KParts::URLArgs*)args);
}
kde_URLArgs * kde_new_URLArgs2(int reload, int xOffset, int yOffset, qt_QString * serviceType){
	return (kde_URLArgs *) new URLArgsBridge((bool)reload, (int)xOffset, (int)yOffset, (QString&)* (QString*)serviceType);
}
void kde_del_URLArgs( kde_URLArgs* p ){
	delete (URLArgsBridge*) p;
}
void kde_URLArgs_setContentType( kde_URLArgs* instPointer,qt_QString * contentType){
	((URLArgsBridge*)instPointer)->setContentType((QString&)* (QString*)contentType);
	return;
}
qt_QString * kde_URLArgs_contentType( kde_URLArgs* instPointer){
	return (qt_QString *)new QString(((URLArgsBridge*)instPointer)->contentType());
}
void kde_URLArgs_setDoPost( kde_URLArgs* instPointer,int enable){
	((URLArgsBridge*)instPointer)->setDoPost((bool)enable);
	return;
}
int kde_URLArgs_doPost( kde_URLArgs* instPointer){
	return (int) ((URLArgsBridge*)instPointer)->doPost();
}
void kde_URLArgs_setLockHistory( kde_URLArgs* instPointer,int lock){
	((URLArgsBridge*)instPointer)->setLockHistory((bool)lock);
	return;
}
int kde_URLArgs_lockHistory( kde_URLArgs* instPointer){
	return (int) ((URLArgsBridge*)instPointer)->lockHistory();
}
