/***************************************************************************
                            kde_KServiceType.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_KServiceType.h"
}

#include <kservicetype.h>

class KServiceTypeBridge : public KServiceType
{
public:
	KServiceTypeBridge(const QString& _fullpath, const QString& _name, const QString& _icon, const QString& _comment) : KServiceType(_fullpath, _name, _icon, _comment) {}
	KServiceTypeBridge(const QString& _fullpath) : KServiceType(_fullpath) {}
	KServiceTypeBridge(KDesktopFile* config) : KServiceType(config) {}
	KServiceTypeBridge(QDataStream& _str, int offset) : KServiceType(_str, offset) {}
	~KServiceTypeBridge() {}
	void protected_init(KDesktopFile* config) {
		KServiceType::init(config);
		return;
	}
};

kde_KServiceType * kde_new_KServiceType(qt_QString * _fullpath, qt_QString * _name, qt_QString * _icon, qt_QString * _comment){
	return (kde_KServiceType *) new KServiceTypeBridge((QString&)* (QString*)_fullpath, (QString&)* (QString*)_name, (QString&)* (QString*)_icon, (QString&)* (QString*)_comment);
}
kde_KServiceType * kde_new_KServiceType1(qt_QString * _fullpath){
	return (kde_KServiceType *) new KServiceTypeBridge((QString&)* (QString*)_fullpath);
}
kde_KServiceType * kde_new_KServiceType2(kde_KDesktopFile* config){
	return (kde_KServiceType *) new KServiceTypeBridge((KDesktopFile*)config);
}
kde_KServiceType * kde_new_KServiceType3(qt_QDataStream * _str, int offset){
	return (kde_KServiceType *) new KServiceTypeBridge((QDataStream&)* (QDataStream*)_str, (int)offset);
}
void kde_del_KServiceType( kde_KServiceType* p ){
	delete (KServiceTypeBridge*) p;
}
qt_QString * kde_KServiceType_icon( kde_KServiceType* instPointer){
	return (qt_QString *)new QString(((KServiceTypeBridge*)instPointer)->icon());
}
qt_QString * kde_KServiceType_comment( kde_KServiceType* instPointer){
	return (qt_QString *)new QString(((KServiceTypeBridge*)instPointer)->comment());
}
qt_QString * kde_KServiceType_name( kde_KServiceType* instPointer){
	return (qt_QString *)new QString(((KServiceTypeBridge*)instPointer)->name());
}
qt_QString * kde_KServiceType_desktopEntryPath( kde_KServiceType* instPointer){
	return (qt_QString *)new QString(((KServiceTypeBridge*)instPointer)->desktopEntryPath());
}
int kde_KServiceType_isDerived( kde_KServiceType* instPointer){
	return (int) ((KServiceTypeBridge*)instPointer)->isDerived();
}
qt_QString * kde_KServiceType_parentServiceType( kde_KServiceType* instPointer){
	return (qt_QString *)new QString(((KServiceTypeBridge*)instPointer)->parentServiceType());
}
qt_QVariant * kde_KServiceType_property( kde_KServiceType* instPointer,qt_QString * _name){
	return (qt_QVariant *)new QVariant(((KServiceTypeBridge*)instPointer)->property((QString&)* (QString*)_name));
}
qt_QStringList* kde_KServiceType_propertyNames( kde_KServiceType* instPointer){
	return (qt_QStringList*)new QStringList(((KServiceTypeBridge*)instPointer)->propertyNames());
}
int kde_KServiceType_isValid( kde_KServiceType* instPointer){
	return (int) ((KServiceTypeBridge*)instPointer)->isValid();
}
int kde_KServiceType_propertyDef( kde_KServiceType* instPointer,qt_QString * _name){
	return (int) ((KServiceTypeBridge*)instPointer)->propertyDef((QString&)* (QString*)_name);
}
qt_QStringList* kde_KServiceType_propertyDefNames( kde_KServiceType* instPointer){
	return (qt_QStringList*)new QStringList(((KServiceTypeBridge*)instPointer)->propertyDefNames());
}
void kde_KServiceType_save( kde_KServiceType* instPointer,qt_QDataStream * arg1){
	((KServiceTypeBridge*)instPointer)->save((QDataStream&)* (QDataStream*)arg1);
	return;
}
void kde_KServiceType_load( kde_KServiceType* instPointer,qt_QDataStream * arg1){
	((KServiceTypeBridge*)instPointer)->load((QDataStream&)* (QDataStream*)arg1);
	return;
}
void * kde_KServiceType_serviceType( qt_QString * _name){
	return (void *) KServiceTypeBridge::serviceType((QString&)* (QString*)_name);
}
//kde_KServiceList* kde_KServiceType_offers( qt_QString * _servicetype){
//	return (kde_KServiceList*) KServiceTypeBridge::offers((QString&)* (QString*)_servicetype);
//}
//kde_List kde_KServiceType_allServiceTypes( ){
//	return (kde_List)new List(KServiceTypeBridge::allServiceTypes());
//}
void kde_KServiceType_init( kde_KServiceType* instPointer,kde_KDesktopFile* config){
	((KServiceTypeBridge*)instPointer)->protected_init((KDesktopFile*)config);
	return;
}
