/***************************************************************************
                            kde_KConfigINIBackEnd.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_KConfigINIBackEnd.h"
}

#include <kconfigbackend.h>

class KConfigINIBackEndBridge : public KConfigINIBackEnd
{
public:
	KConfigINIBackEndBridge(KConfigBase* _config, const QString& _fileName, const char* _resType, bool _useKDEGlobals) : KConfigINIBackEnd(_config, _fileName, _resType, _useKDEGlobals) {}
	~KConfigINIBackEndBridge() {}
	void protected_parseSingleConfigFile(QFile& rFile, KEntryMap* pWriteBackMap, bool bGlobal, bool bDefault) {
		KConfigINIBackEnd::parseSingleConfigFile(rFile, pWriteBackMap, bGlobal, bDefault);
		return;
	}
	bool  protected_writeConfigFile(QString filename, bool bGlobal, bool bMerge) {
		return (bool ) KConfigINIBackEnd::writeConfigFile(filename, bGlobal, bMerge);
	}
};

kde_KConfigINIBackEnd * kde_new_KConfigINIBackEnd(kde_KConfigBase* _config, qt_QString * _fileName, char* _resType, int _useKDEGlobals){
	return (kde_KConfigINIBackEnd *) new KConfigINIBackEndBridge((KConfigBase*)_config, (QString&)* (QString*)_fileName, (char*)_resType, (bool)_useKDEGlobals);
}
void kde_del_KConfigINIBackEnd( kde_KConfigINIBackEnd* p ){
	delete (KConfigINIBackEndBridge*) p;
}
int kde_KConfigINIBackEnd_parseConfigFiles( kde_KConfigINIBackEnd* instPointer){
	return (int) ((KConfigINIBackEndBridge*)instPointer)->parseConfigFiles();
}
void kde_KConfigINIBackEnd_sync( kde_KConfigINIBackEnd* instPointer,int bMerge){
	((KConfigINIBackEndBridge*)instPointer)->sync((bool)bMerge);
	return;
}
//void kde_KConfigINIBackEnd_parseSingleConfigFile( kde_KConfigINIBackEnd* instPointer,qt_QFile * rFile, kde_KEntryMap* pWriteBackMap, int bGlobal, int bDefault){
//	((KConfigINIBackEndBridge*)instPointer)->protected_parseSingleConfigFile((QFile&)* (QFile*)rFile, (KEntryMap*)pWriteBackMap, (bool)bGlobal, (bool)bDefault);
//	return;
//}
int kde_KConfigINIBackEnd_writeConfigFile( kde_KConfigINIBackEnd* instPointer,qt_QString * filename, int bGlobal, int bMerge){
	return (int) ((KConfigINIBackEndBridge*)instPointer)->protected_writeConfigFile((QString)* (QString*)filename, (bool)bGlobal, (bool)bMerge);
}
