/***************************************************************************
                            kde_KServiceGroup.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_KServiceGroup.h"
}

#include <kservicegroup.h>

class KServiceGroupBridge : public KServiceGroup
{
public:
	KServiceGroupBridge(const QString& _fullpath, const QString& _relpath) : KServiceGroup(_fullpath, _relpath) {}
	KServiceGroupBridge(QDataStream& _str, int offset, bool deep) : KServiceGroup(_str, offset, deep) {}
	~KServiceGroupBridge() {}
	void protected_addEntry(KSycocaEntry* entry) {
		KServiceGroup::addEntry(entry);
		return;
	}
};

kde_KServiceGroup * kde_new_KServiceGroup(qt_QString * _fullpath, qt_QString * _relpath){
	return (kde_KServiceGroup *) new KServiceGroupBridge((QString&)* (QString*)_fullpath, (QString&)* (QString*)_relpath);
}
kde_KServiceGroup * kde_new_KServiceGroup1(qt_QDataStream * _str, int offset, int deep){
	return (kde_KServiceGroup *) new KServiceGroupBridge((QDataStream&)* (QDataStream*)_str, (int)offset, (bool)deep);
}
void kde_del_KServiceGroup( kde_KServiceGroup* p ){
	delete (KServiceGroupBridge*) p;
}
int kde_KServiceGroup_isValid( kde_KServiceGroup* instPointer){
	return (int) ((KServiceGroupBridge*)instPointer)->isValid();
}
qt_QString * kde_KServiceGroup_name( kde_KServiceGroup* instPointer){
	return (qt_QString *)new QString(((KServiceGroupBridge*)instPointer)->name());
}
qt_QString * kde_KServiceGroup_relPath( kde_KServiceGroup* instPointer){
	return (qt_QString *)new QString(((KServiceGroupBridge*)instPointer)->relPath());
}
qt_QString * kde_KServiceGroup_caption( kde_KServiceGroup* instPointer){
	return (qt_QString *)new QString(((KServiceGroupBridge*)instPointer)->caption());
}
qt_QString * kde_KServiceGroup_icon( kde_KServiceGroup* instPointer){
	return (qt_QString *)new QString(((KServiceGroupBridge*)instPointer)->icon());
}
qt_QString * kde_KServiceGroup_comment( kde_KServiceGroup* instPointer){
	return (qt_QString *)new QString(((KServiceGroupBridge*)instPointer)->comment());
}
int kde_KServiceGroup_childCount( kde_KServiceGroup* instPointer){
	return (int) ((KServiceGroupBridge*)instPointer)->childCount();
}
void kde_KServiceGroup_load( kde_KServiceGroup* instPointer,qt_QDataStream * arg1){
	((KServiceGroupBridge*)instPointer)->load((QDataStream&)* (QDataStream*)arg1);
	return;
}
void kde_KServiceGroup_save( kde_KServiceGroup* instPointer,qt_QDataStream * arg1){
	((KServiceGroupBridge*)instPointer)->save((QDataStream&)* (QDataStream*)arg1);
	return;
}
//kde_List kde_KServiceGroup_entries( kde_KServiceGroup* instPointer,int sorted, int excludeNoDisplay){
//	return (kde_List)new List(((KServiceGroupBridge*)instPointer)->entries((bool)sorted, (bool)excludeNoDisplay));
//}
//kde_List kde_KServiceGroup_entries1( kde_KServiceGroup* instPointer,int sorted){
//	return (kde_List)new List(((KServiceGroupBridge*)instPointer)->entries((bool)sorted));
//}
qt_QString * kde_KServiceGroup_baseGroupName( kde_KServiceGroup* instPointer){
	return (qt_QString *)new QString(((KServiceGroupBridge*)instPointer)->baseGroupName());
}
void * kde_KServiceGroup_baseGroup( qt_QString * baseGroupName){
	return (void *) KServiceGroupBridge::baseGroup((QString&)* (QString*)baseGroupName);
}
void * kde_KServiceGroup_root( ){
	return (void *) KServiceGroupBridge::root();
}
void * kde_KServiceGroup_group( qt_QString * relPath){
	return (void *) KServiceGroupBridge::group((QString&)* (QString*)relPath);
}
void kde_KServiceGroup_addEntry( kde_KServiceGroup* instPointer,kde_KSycocaEntry* entry){
	((KServiceGroupBridge*)instPointer)->protected_addEntry((KSycocaEntry*)entry);
	return;
}
