/***************************************************************************
                            kde_KMimeType.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_KMimeType.h"
}

#include <kmimetype.h>

class KMimeTypeBridge : public KMimeType
{
public:
	KMimeTypeBridge(const QString& _fullpath, const QString& _type, const QString& _icon, const QString& _comment, const QStringList& _patterns) : KMimeType(_fullpath, _type, _icon, _comment, _patterns) {}
	KMimeTypeBridge(const QString& _fullpath) : KMimeType(_fullpath) {}
	KMimeTypeBridge(KDesktopFile* config) : KMimeType(config) {}
	KMimeTypeBridge(QDataStream& _str, int offset) : KMimeType(_str, offset) {}
	~KMimeTypeBridge() {}
	void protected_loadInternal(QDataStream& arg1) {
		KMimeType::loadInternal(arg1);
		return;
	}
	void protected_init(KDesktopFile* arg1) {
		KMimeType::init(arg1);
		return;
	}
	void protected_errorMissingMimeType(const QString& _type) {
		KMimeType::errorMissingMimeType(_type);
		return;
	}
	void protected_buildDefaultType() {
		KMimeType::buildDefaultType();
		return;
	}
	void protected_checkEssentialMimeTypes() {
		KMimeType::checkEssentialMimeTypes();
		return;
	}
};

kde_KMimeType * kde_new_KMimeType(qt_QString * _fullpath, qt_QString * _type, qt_QString * _icon, qt_QString * _comment, qt_QStringList* _patterns){
	return (kde_KMimeType *) new KMimeTypeBridge((QString&)* (QString*)_fullpath, (QString&)* (QString*)_type, (QString&)* (QString*)_icon, (QString&)* (QString*)_comment, (QStringList&)* (QStringList*)_patterns);
}
kde_KMimeType * kde_new_KMimeType1(qt_QString * _fullpath){
	return (kde_KMimeType *) new KMimeTypeBridge((QString&)* (QString*)_fullpath);
}
kde_KMimeType * kde_new_KMimeType2(kde_KDesktopFile* config){
	return (kde_KMimeType *) new KMimeTypeBridge((KDesktopFile*)config);
}
kde_KMimeType * kde_new_KMimeType3(qt_QDataStream * _str, int offset){
	return (kde_KMimeType *) new KMimeTypeBridge((QDataStream&)* (QDataStream*)_str, (int)offset);
}
void kde_del_KMimeType( kde_KMimeType* p ){
	delete (KMimeTypeBridge*) p;
}
qt_QString * kde_KMimeType_icon( kde_KMimeType* instPointer,qt_QString * arg1, int arg2){
	return (qt_QString *)new QString(((KMimeTypeBridge*)instPointer)->icon((QString&)* (QString*)arg1, (bool)arg2));
}
qt_QString * kde_KMimeType_icon1( kde_KMimeType* instPointer,kde_KURL* arg1, int arg2){
	return (qt_QString *)new QString(((KMimeTypeBridge*)instPointer)->icon((KURL&)* (KURL*)arg1, (bool)arg2));
}
qt_QPixmap * kde_KMimeType_pixmap( kde_KMimeType* instPointer,int _group, int _force_size, int _state, qt_QString* _path){
	return (qt_QPixmap *)new QPixmap(((KMimeTypeBridge*)instPointer)->pixmap((KIcon::Group)_group, (int)_force_size, (int)_state, (QString*)_path));
}
qt_QPixmap * kde_KMimeType_pixmap1( kde_KMimeType* instPointer,kde_KURL* _url, int _group, int _force_size, int _state, qt_QString* _path){
	return (qt_QPixmap *)new QPixmap(((KMimeTypeBridge*)instPointer)->pixmap((KURL&)* (KURL*)_url, (KIcon::Group)_group, (int)_force_size, (int)_state, (QString*)_path));
}
qt_QString * kde_KMimeType_comment( kde_KMimeType* instPointer){
	return (qt_QString *)new QString(((KMimeTypeBridge*)instPointer)->comment());
}
qt_QString * kde_KMimeType_comment1( kde_KMimeType* instPointer,qt_QString * arg1, int arg2){
	return (qt_QString *)new QString(((KMimeTypeBridge*)instPointer)->comment((QString&)* (QString*)arg1, (bool)arg2));
}
qt_QString * kde_KMimeType_comment2( kde_KMimeType* instPointer,kde_KURL* arg1, int arg2){
	return (qt_QString *)new QString(((KMimeTypeBridge*)instPointer)->comment((KURL&)* (KURL*)arg1, (bool)arg2));
}
qt_QStringList* kde_KMimeType_patterns( kde_KMimeType* instPointer){
	return (qt_QStringList*) (const QStringList *)&((KMimeTypeBridge*)instPointer)->patterns();
}
void kde_KMimeType_load( kde_KMimeType* instPointer,qt_QDataStream * arg1){
	((KMimeTypeBridge*)instPointer)->load((QDataStream&)* (QDataStream*)arg1);
	return;
}
void kde_KMimeType_save( kde_KMimeType* instPointer,qt_QDataStream * arg1){
	((KMimeTypeBridge*)instPointer)->save((QDataStream&)* (QDataStream*)arg1);
	return;
}
qt_QVariant * kde_KMimeType_property( kde_KMimeType* instPointer,qt_QString * _name){
	return (qt_QVariant *)new QVariant(((KMimeTypeBridge*)instPointer)->property((QString&)* (QString*)_name));
}
qt_QStringList* kde_KMimeType_propertyNames( kde_KMimeType* instPointer){
	return (qt_QStringList*)new QStringList(((KMimeTypeBridge*)instPointer)->propertyNames());
}
qt_QPixmap * kde_KMimeType_pixmapForURL( kde_KURL* _url, long _mode, int _group, int _force_size, int _state, qt_QString* _path){
	return (qt_QPixmap *)new QPixmap(KMimeTypeBridge::pixmapForURL((KURL&)* (KURL*)_url, (mode_t)_mode, (KIcon::Group)_group, (int)_force_size, (int)_state, (QString*)_path));
}
qt_QString * kde_KMimeType_iconForURL( kde_KURL* _url, long _mode){
	return (qt_QString *)new QString(KMimeTypeBridge::iconForURL((KURL&)* (KURL*)_url, (mode_t)_mode));
}
qt_QString * kde_KMimeType_favIconForURL( kde_KURL* url){
	return (qt_QString *)new QString(KMimeTypeBridge::favIconForURL((KURL&)* (KURL*)url));
}
void * kde_KMimeType_mimeType( qt_QString * _name){
	return (void *) KMimeTypeBridge::mimeType((QString&)* (QString*)_name);
}
void * kde_KMimeType_findByURL( kde_KURL* _url, long _mode, int _is_local_file, int _fast_mode){
	return (void *) KMimeTypeBridge::findByURL((KURL&)* (KURL*)_url, (mode_t)_mode, (bool)_is_local_file, (bool)_fast_mode);
}
void * kde_KMimeType_findByPath( qt_QString * path, long mode, int fast_mode){
	return (void *) KMimeTypeBridge::findByPath((QString&)* (QString*)path, (mode_t)mode, (bool)fast_mode);
}
void * kde_KMimeType_findByContent( qt_QByteArray* data, int* accuracy){
	return (void *) KMimeTypeBridge::findByContent((QByteArray&)* (QByteArray*)data, (int*)accuracy);
}
void * kde_KMimeType_findByFileContent( qt_QString * fileName, int* accuracy){
	return (void *) KMimeTypeBridge::findByFileContent((QString&)* (QString*)fileName, (int*)accuracy);
}
//kde_List kde_KMimeType_allMimeTypes( ){
//	return (kde_List)new List(KMimeTypeBridge::allMimeTypes());
//}
qt_QString * kde_KMimeType_defaultMimeType( ){
	return (qt_QString *) (const QString *)&KMimeTypeBridge::defaultMimeType();
}
void kde_KMimeType_loadInternal( kde_KMimeType* instPointer,qt_QDataStream * arg1){
	((KMimeTypeBridge*)instPointer)->protected_loadInternal((QDataStream&)* (QDataStream*)arg1);
	return;
}
void kde_KMimeType_init( kde_KMimeType* instPointer,kde_KDesktopFile* arg1){
	((KMimeTypeBridge*)instPointer)->protected_init((KDesktopFile*)arg1);
	return;
}
//void kde_KMimeType_errorMissingMimeType( qt_QString * _type){
//	KMimeTypeBridge::protected_errorMissingMimeType((QString&)* (QString*)_type);
//	return;
//}
//void kde_KMimeType_buildDefaultType( ){
//	KMimeTypeBridge::protected_buildDefaultType();
//	return;
//}
//void kde_KMimeType_checkEssentialMimeTypes( ){
//	KMimeTypeBridge::protected_checkEssentialMimeTypes();
//	return;
//}
