/***************************************************************************
                            kde_KRootProp.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_KRootProp.h"
}

#include <krootprop.h>

class KRootPropBridge : public KRootProp
{
public:
	KRootPropBridge(const QString& rProp) : KRootProp(rProp) {}
	~KRootPropBridge() {}
};

kde_KRootProp * kde_new_KRootProp(qt_QString * rProp){
	return (kde_KRootProp *) new KRootPropBridge((QString&)* (QString*)rProp);
}
void kde_del_KRootProp( kde_KRootProp* p ){
	delete (KRootPropBridge*) p;
}
void kde_KRootProp_setProp( kde_KRootProp* instPointer,qt_QString * rProp){
	((KRootPropBridge*)instPointer)->setProp((QString&)* (QString*)rProp);
	return;
}
qt_QString * kde_KRootProp_prop( kde_KRootProp* instPointer){
	return (qt_QString *)new QString(((KRootPropBridge*)instPointer)->prop());
}
void kde_KRootProp_destroy( kde_KRootProp* instPointer){
	((KRootPropBridge*)instPointer)->destroy();
	return;
}
qt_QString * kde_KRootProp_readEntry( kde_KRootProp* instPointer,qt_QString * rKey, qt_QString * pDefault){
	return (qt_QString *)new QString(((KRootPropBridge*)instPointer)->readEntry((QString&)* (QString*)rKey, (QString&)* (QString*)pDefault));
}
int kde_KRootProp_readNumEntry( kde_KRootProp* instPointer,qt_QString * rKey, int nDefault){
	return (int) ((KRootPropBridge*)instPointer)->readNumEntry((QString&)* (QString*)rKey, (int)nDefault);
}
qt_QFont * kde_KRootProp_readFontEntry( kde_KRootProp* instPointer,qt_QString * rKey, qt_QFont * pDefault){
	return (qt_QFont *)new QFont(((KRootPropBridge*)instPointer)->readFontEntry((QString&)* (QString*)rKey, (QFont*)pDefault));
}
qt_QColor * kde_KRootProp_readColorEntry( kde_KRootProp* instPointer,qt_QString * rKey, qt_QColor* pDefault){
	return (qt_QColor *)new QColor(((KRootPropBridge*)instPointer)->readColorEntry((QString&)* (QString*)rKey, (QColor*)pDefault));
}
qt_QString * kde_KRootProp_writeEntry( kde_KRootProp* instPointer,qt_QString * rKey, qt_QString * rValue){
	return (qt_QString *)new QString(((KRootPropBridge*)instPointer)->writeEntry((QString&)* (QString*)rKey, (QString&)* (QString*)rValue));
}
qt_QString * kde_KRootProp_writeEntry1( kde_KRootProp* instPointer,qt_QString * rKey, int nValue){
	return (qt_QString *)new QString(((KRootPropBridge*)instPointer)->writeEntry((QString&)* (QString*)rKey, (int)nValue));
}
qt_QString * kde_KRootProp_writeEntry2( kde_KRootProp* instPointer,qt_QString * rKey, qt_QFont * rFont){
	return (qt_QString *)new QString(((KRootPropBridge*)instPointer)->writeEntry((QString&)* (QString*)rKey, (QFont&)* (QFont*)rFont));
}
qt_QString * kde_KRootProp_writeEntry3( kde_KRootProp* instPointer,qt_QString * rKey, qt_QColor * rColor){
	return (qt_QString *)new QString(((KRootPropBridge*)instPointer)->writeEntry((QString&)* (QString*)rKey, (QColor&)* (QColor*)rColor));
}
qt_QString * kde_KRootProp_removeEntry( kde_KRootProp* instPointer,qt_QString * rKey){
	return (qt_QString *)new QString(((KRootPropBridge*)instPointer)->removeEntry((QString&)* (QString*)rKey));
}
qt_QStringList* kde_KRootProp_listEntries( kde_KRootProp* instPointer){
	return (qt_QStringList*)new QStringList(((KRootPropBridge*)instPointer)->listEntries());
}
void kde_KRootProp_sync( kde_KRootProp* instPointer){
	((KRootPropBridge*)instPointer)->sync();
	return;
}
