/***************************************************************************
                            qt_QSettings.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, 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 "qt_QSettings.h"
}

#include <qsettings.h>

class QSettingsBridge : public QSettings
{
public:
	QSettingsBridge() : QSettings() {}
	~QSettingsBridge() {}
};

qt_QSettings * qt_new_QSettings(){
	return (qt_QSettings *) new QSettingsBridge();
}
void qt_del_QSettings( qt_QSettings* p ){
	delete (QSettingsBridge*) p;
}
int qt_QSettings_writeEntry( qt_QSettings* instPointer,qt_QString * arg1, int arg2){
	return (int) ((QSettingsBridge*)instPointer)->writeEntry((QString&)* (QString*)arg1, (bool)arg2);
}
int qt_QSettings_writeEntry1( qt_QSettings* instPointer,qt_QString * arg1, double arg2){
	return (int) ((QSettingsBridge*)instPointer)->writeEntry((QString&)* (QString*)arg1, (double)arg2);
}
int qt_QSettings_writeEntry2( qt_QSettings* instPointer,qt_QString * arg1, int arg2){
	return (int) ((QSettingsBridge*)instPointer)->writeEntry((QString&)* (QString*)arg1, (int)arg2);
}
int qt_QSettings_writeEntry3( qt_QSettings* instPointer,qt_QString * arg1, char* arg2){
	return (int) ((QSettingsBridge*)instPointer)->writeEntry((QString&)* (QString*)arg1, (char*)arg2);
}
int qt_QSettings_writeEntry4( qt_QSettings* instPointer,qt_QString * arg1, qt_QString * arg2){
	return (int) ((QSettingsBridge*)instPointer)->writeEntry((QString&)* (QString*)arg1, (QString&)* (QString*)arg2);
}
int qt_QSettings_writeEntry5( qt_QSettings* instPointer,qt_QString * arg1, qt_QStringList* arg2){
	return (int) ((QSettingsBridge*)instPointer)->writeEntry((QString&)* (QString*)arg1, (QStringList&)* (QStringList*)arg2);
}
int qt_QSettings_writeEntry6( qt_QSettings* instPointer,qt_QString * arg1, qt_QStringList* arg2, qt_QChar* sep){
	return (int) ((QSettingsBridge*)instPointer)->writeEntry((QString&)* (QString*)arg1, (QStringList&)* (QStringList*)arg2, (QChar&)* (QChar*)sep);
}
qt_QStringList* qt_QSettings_entryList( qt_QSettings* instPointer,qt_QString * arg1){
	return (qt_QStringList*)new QStringList(((QSettingsBridge*)instPointer)->entryList((QString&)* (QString*)arg1));
}
qt_QStringList* qt_QSettings_subkeyList( qt_QSettings* instPointer,qt_QString * arg1){
	return (qt_QStringList*)new QStringList(((QSettingsBridge*)instPointer)->subkeyList((QString&)* (QString*)arg1));
}
qt_QStringList* qt_QSettings_readListEntry( qt_QSettings* instPointer,qt_QString * arg1, int* arg2){
	return (qt_QStringList*)new QStringList(((QSettingsBridge*)instPointer)->readListEntry((QString&)* (QString*)arg1, (bool*)arg2));
}
qt_QStringList* qt_QSettings_readListEntry1( qt_QSettings* instPointer,qt_QString * arg1, qt_QChar* sep, int* arg2){
	return (qt_QStringList*)new QStringList(((QSettingsBridge*)instPointer)->readListEntry((QString&)* (QString*)arg1, (QChar&)* (QChar*)sep, (bool*)arg2));
}
qt_QString * qt_QSettings_readEntry( qt_QSettings* instPointer,qt_QString * arg1, qt_QString * def, int* arg2){
	return (qt_QString *)new QString(((QSettingsBridge*)instPointer)->readEntry((QString&)* (QString*)arg1, (QString&)* (QString*)def, (bool*)arg2));
}
int qt_QSettings_readNumEntry( qt_QSettings* instPointer,qt_QString * arg1, int def, int* arg2){
	return (int) ((QSettingsBridge*)instPointer)->readNumEntry((QString&)* (QString*)arg1, (int)def, (bool*)arg2);
}
double qt_QSettings_readDoubleEntry( qt_QSettings* instPointer,qt_QString * arg1, double def, int* arg2){
	return (double) ((QSettingsBridge*)instPointer)->readDoubleEntry((QString&)* (QString*)arg1, (double)def, (bool*)arg2);
}
int qt_QSettings_readBoolEntry( qt_QSettings* instPointer,qt_QString * arg1, int def, int* arg2){
	return (int) ((QSettingsBridge*)instPointer)->readBoolEntry((QString&)* (QString*)arg1, (bool)def, (bool*)arg2);
}
int qt_QSettings_removeEntry( qt_QSettings* instPointer,qt_QString * arg1){
	return (int) ((QSettingsBridge*)instPointer)->removeEntry((QString&)* (QString*)arg1);
}
void qt_QSettings_insertSearchPath( qt_QSettings* instPointer,int arg1, qt_QString * arg2){
	((QSettingsBridge*)instPointer)->insertSearchPath((QSettings::System)arg1, (QString&)* (QString*)arg2);
	return;
}
void qt_QSettings_removeSearchPath( qt_QSettings* instPointer,int arg1, qt_QString * arg2){
	((QSettingsBridge*)instPointer)->removeSearchPath((QSettings::System)arg1, (QString&)* (QString*)arg2);
	return;
}
