/***************************************************************************
                            kde_KStandardDirs.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_KStandardDirs.h"
}

#include <kstandarddirs.h>

class KStandardDirsBridge : public KStandardDirs
{
public:
	KStandardDirsBridge() : KStandardDirs() {}
	~KStandardDirsBridge() {}
};

kde_KStandardDirs * kde_new_KStandardDirs(){
	return (kde_KStandardDirs *) new KStandardDirsBridge();
}
void kde_del_KStandardDirs( kde_KStandardDirs* p ){
	delete (KStandardDirsBridge*) p;
}
void kde_KStandardDirs_addPrefix( kde_KStandardDirs* instPointer,qt_QString * dir){
	((KStandardDirsBridge*)instPointer)->addPrefix((QString&)* (QString*)dir);
	return;
}
int kde_KStandardDirs_addResourceType( kde_KStandardDirs* instPointer,char* type, qt_QString * relativename){
	return (int) ((KStandardDirsBridge*)instPointer)->addResourceType((char*)type, (QString&)* (QString*)relativename);
}
int kde_KStandardDirs_addResourceDir( kde_KStandardDirs* instPointer,char* type, qt_QString * absdir){
	return (int) ((KStandardDirsBridge*)instPointer)->addResourceDir((char*)type, (QString&)* (QString*)absdir);
}
qt_QString * kde_KStandardDirs_findResource( kde_KStandardDirs* instPointer,char* type, qt_QString * filename){
	return (qt_QString *)new QString(((KStandardDirsBridge*)instPointer)->findResource((char*)type, (QString&)* (QString*)filename));
}
unsigned int kde_KStandardDirs_calcResourceHash( kde_KStandardDirs* instPointer,char* type, qt_QString * filename, int deep){
	return (unsigned int) ((KStandardDirsBridge*)instPointer)->calcResourceHash((char*)type, (QString&)* (QString*)filename, (bool)deep);
}
qt_QStringList* kde_KStandardDirs_findDirs( kde_KStandardDirs* instPointer,char* type, qt_QString * reldir){
	return (qt_QStringList*)new QStringList(((KStandardDirsBridge*)instPointer)->findDirs((char*)type, (QString&)* (QString*)reldir));
}
qt_QString * kde_KStandardDirs_findResourceDir( kde_KStandardDirs* instPointer,char* type, qt_QString * filename){
	return (qt_QString *)new QString(((KStandardDirsBridge*)instPointer)->findResourceDir((char*)type, (QString&)* (QString*)filename));
}
qt_QStringList* kde_KStandardDirs_findAllResources( kde_KStandardDirs* instPointer,char* type, qt_QString * filter, int recursive, int uniq){
	return (qt_QStringList*)new QStringList(((KStandardDirsBridge*)instPointer)->findAllResources((char*)type, (QString&)* (QString*)filter, (bool)recursive, (bool)uniq));
}
qt_QStringList* kde_KStandardDirs_findAllResources1( kde_KStandardDirs* instPointer,char* type, qt_QString * filter, int recursive, int uniq, qt_QStringList* relPaths){
	return (qt_QStringList*)new QStringList(((KStandardDirsBridge*)instPointer)->findAllResources((char*)type, (QString&)* (QString*)filter, (bool)recursive, (bool)uniq, (QStringList&)* (QStringList*)relPaths));
}
void kde_KStandardDirs_addKDEDefaults( kde_KStandardDirs* instPointer){
	((KStandardDirsBridge*)instPointer)->addKDEDefaults();
	return;
}
int kde_KStandardDirs_addCustomized( kde_KStandardDirs* instPointer,kde_KConfig* config){
	return (int) ((KStandardDirsBridge*)instPointer)->addCustomized((KConfig*)config);
}
qt_QStringList* kde_KStandardDirs_resourceDirs( kde_KStandardDirs* instPointer,char* type){
	return (qt_QStringList*)new QStringList(((KStandardDirsBridge*)instPointer)->resourceDirs((char*)type));
}
qt_QStringList* kde_KStandardDirs_allTypes( kde_KStandardDirs* instPointer){
	return (qt_QStringList*)new QStringList(((KStandardDirsBridge*)instPointer)->allTypes());
}
qt_QString * kde_KStandardDirs_saveLocation( kde_KStandardDirs* instPointer,char* type, qt_QString * suffix, int create){
	return (qt_QString *)new QString(((KStandardDirsBridge*)instPointer)->saveLocation((char*)type, (QString&)* (QString*)suffix, (bool)create));
}
qt_QString * kde_KStandardDirs_relativeLocation( kde_KStandardDirs* instPointer,char* type, qt_QString * absPath){
	return (qt_QString *)new QString(((KStandardDirsBridge*)instPointer)->relativeLocation((char*)type, (QString&)* (QString*)absPath));
}
qt_QString * kde_KStandardDirs_kfsstnd_prefixes( kde_KStandardDirs* instPointer){
	return (qt_QString *)new QString(((KStandardDirsBridge*)instPointer)->kfsstnd_prefixes());
}
qt_QString * kde_KStandardDirs_localkdedir( kde_KStandardDirs* instPointer){
	return (qt_QString *)new QString(((KStandardDirsBridge*)instPointer)->localkdedir());
}
qt_QString * kde_KStandardDirs_findExe( qt_QString * appname, qt_QString * pathstr, int ignoreExecBit){
	return (qt_QString *)new QString(KStandardDirsBridge::findExe((QString&)* (QString*)appname, (QString&)* (QString*)pathstr, (bool)ignoreExecBit));
}
int kde_KStandardDirs_findAllExe( qt_QStringList* list, qt_QString * appname, qt_QString * pathstr, int ignoreExecBit){
	return (int) KStandardDirsBridge::findAllExe((QStringList&)* (QStringList*)list, (QString&)* (QString*)appname, (QString&)* (QString*)pathstr, (bool)ignoreExecBit);
}
int kde_KStandardDirs_makeDir( qt_QString * dir, int mode){
	return (int) KStandardDirsBridge::makeDir((QString&)* (QString*)dir, (int)mode);
}
qt_QString * kde_KStandardDirs_kde_default( char* type){
	return (qt_QString *)new QString(KStandardDirsBridge::kde_default((char*)type));
}
int kde_KStandardDirs_exists( qt_QString * fullPath){
	return (int) KStandardDirsBridge::exists((QString&)* (QString*)fullPath);
}
