/***************************************************************************
                            kde_KDesktopFile.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_KDesktopFile.h"
}

#include <kdesktopfile.h>

class KDesktopFileBridge : public KDesktopFile
{
public:
	KDesktopFileBridge(const QString& fileName, bool readOnly, const char* resType) : KDesktopFile(fileName, readOnly, resType) {}
	~KDesktopFileBridge() {}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

kde_KDesktopFile * kde_new_KDesktopFile(qt_QString * fileName, int readOnly, char* resType){
	return (kde_KDesktopFile *) new KDesktopFileBridge((QString&)* (QString*)fileName, (bool)readOnly, (char*)resType);
}
void kde_del_KDesktopFile( kde_KDesktopFile* p ){
	delete (KDesktopFileBridge*) p;
}
qt_QString * kde_KDesktopFile_readType( kde_KDesktopFile* instPointer){
	return (qt_QString *)new QString(((KDesktopFileBridge*)instPointer)->readType());
}
qt_QString * kde_KDesktopFile_readIcon( kde_KDesktopFile* instPointer){
	return (qt_QString *)new QString(((KDesktopFileBridge*)instPointer)->readIcon());
}
qt_QString * kde_KDesktopFile_readName( kde_KDesktopFile* instPointer){
	return (qt_QString *)new QString(((KDesktopFileBridge*)instPointer)->readName());
}
qt_QString * kde_KDesktopFile_readComment( kde_KDesktopFile* instPointer){
	return (qt_QString *)new QString(((KDesktopFileBridge*)instPointer)->readComment());
}
qt_QString * kde_KDesktopFile_readPath( kde_KDesktopFile* instPointer){
	return (qt_QString *)new QString(((KDesktopFileBridge*)instPointer)->readPath());
}
qt_QString * kde_KDesktopFile_readDevice( kde_KDesktopFile* instPointer){
	return (qt_QString *)new QString(((KDesktopFileBridge*)instPointer)->readDevice());
}
qt_QString * kde_KDesktopFile_readURL( kde_KDesktopFile* instPointer){
	return (qt_QString *)new QString(((KDesktopFileBridge*)instPointer)->readURL());
}
qt_QStringList* kde_KDesktopFile_readActions( kde_KDesktopFile* instPointer){
	return (qt_QStringList*)new QStringList(((KDesktopFileBridge*)instPointer)->readActions());
}
void kde_KDesktopFile_setActionGroup( kde_KDesktopFile* instPointer,qt_QString * group){
	((KDesktopFileBridge*)instPointer)->setActionGroup((QString&)* (QString*)group);
	return;
}
int kde_KDesktopFile_hasActionGroup( kde_KDesktopFile* instPointer,qt_QString * group){
	return (int) ((KDesktopFileBridge*)instPointer)->hasActionGroup((QString&)* (QString*)group);
}
int kde_KDesktopFile_hasLinkType( kde_KDesktopFile* instPointer){
	return (int) ((KDesktopFileBridge*)instPointer)->hasLinkType();
}
int kde_KDesktopFile_hasApplicationType( kde_KDesktopFile* instPointer){
	return (int) ((KDesktopFileBridge*)instPointer)->hasApplicationType();
}
int kde_KDesktopFile_hasMimeTypeType( kde_KDesktopFile* instPointer){
	return (int) ((KDesktopFileBridge*)instPointer)->hasMimeTypeType();
}
int kde_KDesktopFile_hasDeviceType( kde_KDesktopFile* instPointer){
	return (int) ((KDesktopFileBridge*)instPointer)->hasDeviceType();
}
int kde_KDesktopFile_tryExec( kde_KDesktopFile* instPointer){
	return (int) ((KDesktopFileBridge*)instPointer)->tryExec();
}
qt_QString * kde_KDesktopFile_fileName( kde_KDesktopFile* instPointer){
	return (qt_QString *)new QString(((KDesktopFileBridge*)instPointer)->fileName());
}
qt_QString * kde_KDesktopFile_resource( kde_KDesktopFile* instPointer){
	return (qt_QString *)new QString(((KDesktopFileBridge*)instPointer)->resource());
}
qt_QStringList* kde_KDesktopFile_sortOrder( kde_KDesktopFile* instPointer){
	return (qt_QStringList*)new QStringList(((KDesktopFileBridge*)instPointer)->sortOrder());
}
int kde_KDesktopFile_isDesktopFile( qt_QString * path){
	return (int) KDesktopFileBridge::isDesktopFile((QString&)* (QString*)path);
}
