/***************************************************************************
                            kde_KFileMetaInfoItem.cpp -  description
                             -------------------
    begin                : Sun Nov 24 16:54:36 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Nov 24 16:54:36 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_KFileMetaInfoItem.h"
}

#include <kfilemetainfo.h>

class KFileMetaInfoItemBridge : public KFileMetaInfoItem
{
public:
	KFileMetaInfoItemBridge(const KFileMimeTypeInfo::ItemInfo* mti, const QString& key, const QVariant& value) : KFileMetaInfoItem(mti, key, value) {}
	KFileMetaInfoItemBridge(const KFileMetaInfoItem& item) : KFileMetaInfoItem(item) {}
	KFileMetaInfoItemBridge() : KFileMetaInfoItem() {}
	~KFileMetaInfoItemBridge() {}
	void protected_setAdded() {
		KFileMetaInfoItem::setAdded();
		return;
	}
	void protected_ref() {
		KFileMetaInfoItem::ref();
		return;
	}
	void protected_deref() {
		KFileMetaInfoItem::deref();
		return;
	}
};

kde_KFileMetaInfoItem * kde_new_KFileMetaInfoItem(KFileMimeTypeInfo::ItemInfo* mti, qt_QString * key, qt_QVariant * value){
	return (kde_KFileMetaInfoItem *) new KFileMetaInfoItemBridge((KFileMimeTypeInfo::ItemInfo*)mti, (QString&)* (QString*)key, (QVariant&)* (QVariant*)value);
}
kde_KFileMetaInfoItem * kde_new_KFileMetaInfoItem1(KFileMetaInfoItem item){
	return (kde_KFileMetaInfoItem *) new KFileMetaInfoItemBridge((KFileMetaInfoItem&)item);
}
kde_KFileMetaInfoItem * kde_new_KFileMetaInfoItem2(){
	return (kde_KFileMetaInfoItem *) new KFileMetaInfoItemBridge();
}
void kde_del_KFileMetaInfoItem( kde_KFileMetaInfoItem* p ){
	delete (KFileMetaInfoItemBridge*) p;
}
qt_QString * kde_KFileMetaInfoItem_key( kde_KFileMetaInfoItem* instPointer){
	return (qt_QString *)new QString(((KFileMetaInfoItemBridge*)instPointer)->key());
}
qt_QString * kde_KFileMetaInfoItem_translatedKey( kde_KFileMetaInfoItem* instPointer){
	return (qt_QString *)new QString(((KFileMetaInfoItemBridge*)instPointer)->translatedKey());
}
qt_QVariant * kde_KFileMetaInfoItem_value( kde_KFileMetaInfoItem* instPointer){
	return (qt_QVariant *) (const QVariant *)&((KFileMetaInfoItemBridge*)instPointer)->value();
}
qt_QString * kde_KFileMetaInfoItem_string( kde_KFileMetaInfoItem* instPointer,int mangle){
	return (qt_QString *)new QString(((KFileMetaInfoItemBridge*)instPointer)->string((bool)mangle));
}
int kde_KFileMetaInfoItem_setValue( kde_KFileMetaInfoItem* instPointer,qt_QVariant * value){
	return (int) ((KFileMetaInfoItemBridge*)instPointer)->setValue((QVariant&)* (QVariant*)value);
}
int kde_KFileMetaInfoItem_type( kde_KFileMetaInfoItem* instPointer){
	return (int) ((KFileMetaInfoItemBridge*)instPointer)->type();
}
int kde_KFileMetaInfoItem_isEditable( kde_KFileMetaInfoItem* instPointer){
	return (int) ((KFileMetaInfoItemBridge*)instPointer)->isEditable();
}
int kde_KFileMetaInfoItem_isRemoved( kde_KFileMetaInfoItem* instPointer){
	return (int) ((KFileMetaInfoItemBridge*)instPointer)->isRemoved();
}
int kde_KFileMetaInfoItem_isModified( kde_KFileMetaInfoItem* instPointer){
	return (int) ((KFileMetaInfoItemBridge*)instPointer)->isModified();
}
qt_QString * kde_KFileMetaInfoItem_prefix( kde_KFileMetaInfoItem* instPointer){
	return (qt_QString *)new QString(((KFileMetaInfoItemBridge*)instPointer)->prefix());
}
qt_QString * kde_KFileMetaInfoItem_suffix( kde_KFileMetaInfoItem* instPointer){
	return (qt_QString *)new QString(((KFileMetaInfoItemBridge*)instPointer)->suffix());
}
unsigned int kde_KFileMetaInfoItem_hint( kde_KFileMetaInfoItem* instPointer){
	return (unsigned int) ((KFileMetaInfoItemBridge*)instPointer)->hint();
}
//unsigned int kde_KFileMetaInfoItem_unit( kde_KFileMetaInfoItem* instPointer){
//	return (unsigned int) ((KFileMetaInfoItemBridge*)instPointer)->unit();
//}
unsigned int kde_KFileMetaInfoItem_attributes( kde_KFileMetaInfoItem* instPointer){
	return (unsigned int) ((KFileMetaInfoItemBridge*)instPointer)->attributes();
}
int kde_KFileMetaInfoItem_isValid( kde_KFileMetaInfoItem* instPointer){
	return (int) ((KFileMetaInfoItemBridge*)instPointer)->isValid();
}
void kde_KFileMetaInfoItem_setAdded( kde_KFileMetaInfoItem* instPointer){
	((KFileMetaInfoItemBridge*)instPointer)->protected_setAdded();
	return;
}
void kde_KFileMetaInfoItem_ref( kde_KFileMetaInfoItem* instPointer){
	((KFileMetaInfoItemBridge*)instPointer)->protected_ref();
	return;
}
void kde_KFileMetaInfoItem_deref( kde_KFileMetaInfoItem* instPointer){
	((KFileMetaInfoItemBridge*)instPointer)->protected_deref();
	return;
}
