/***************************************************************************
                            kde_KMimeMagic.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_KMimeMagic.h"
}

#include <kmimemagic.h>

class KMimeMagicBridge : public KMimeMagic
{
public:
	KMimeMagicBridge(const QString& configFile) : KMimeMagic(configFile) {}
	~KMimeMagicBridge() {}
	void protected_initStatic() {
		KMimeMagic::initStatic();
		return;
	}
};

kde_KMimeMagic * kde_new_KMimeMagic(qt_QString * configFile){
	return (kde_KMimeMagic *) new KMimeMagicBridge((QString&)* (QString*)configFile);
}
void kde_del_KMimeMagic( kde_KMimeMagic* p ){
	delete (KMimeMagicBridge*) p;
}
int kde_KMimeMagic_mergeConfig( kde_KMimeMagic* instPointer,qt_QString * configFile){
	return (int) ((KMimeMagicBridge*)instPointer)->mergeConfig((QString&)* (QString*)configFile);
}
int kde_KMimeMagic_mergeBufConfig( kde_KMimeMagic* instPointer,char* arg1){
	return (int) ((KMimeMagicBridge*)instPointer)->mergeBufConfig((char*)arg1);
}
void kde_KMimeMagic_setFollowLinks( kde_KMimeMagic* instPointer,int _enable){
	((KMimeMagicBridge*)instPointer)->setFollowLinks((bool)_enable);
	return;
}
kde_KMimeMagicResult* kde_KMimeMagic_findFileType( kde_KMimeMagic* instPointer,qt_QString * _filename){
	return (kde_KMimeMagicResult*) ((KMimeMagicBridge*)instPointer)->findFileType((QString&)* (QString*)_filename);
}
kde_KMimeMagicResult* kde_KMimeMagic_findBufferType( kde_KMimeMagic* instPointer,qt_QByteArray* p){
	return (kde_KMimeMagicResult*) ((KMimeMagicBridge*)instPointer)->findBufferType((QByteArray&)* (QByteArray*)p);
}
kde_KMimeMagicResult* kde_KMimeMagic_findBufferFileType( kde_KMimeMagic* instPointer,qt_QByteArray* arg1, qt_QString * filename){
	return (kde_KMimeMagicResult*) ((KMimeMagicBridge*)instPointer)->findBufferFileType((QByteArray&)* (QByteArray*)arg1, (QString&)* (QString*)filename);
}
kde_KMimeMagic* kde_KMimeMagic_self( ){
	return (kde_KMimeMagic*) KMimeMagicBridge::self();
}
//void kde_KMimeMagic_initStatic( ){
//	KMimeMagicBridge::protected_initStatic();
//	return;
//}
