/***************************************************************************
                            qt_QDir.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, 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 "qt_QDir.h"
}

#include <qdir.h>
#include <qstringlist.h>

class QDirBridge : public QDir
{
public:
	QDirBridge() : QDir() {}
	QDirBridge(const QString& path, const QString& nameFilter, int sortSpec, int filterSpec) : QDir(path, nameFilter, sortSpec, filterSpec) {}
	QDirBridge(const QDir& arg1) : QDir(arg1) {}
	~QDirBridge() {}
};

qt_QDir * qt_new_QDir(){
	return (qt_QDir *) new QDirBridge();
}
qt_QDir * qt_new_QDir1(qt_QString * path, qt_QString * nameFilter, int sortSpec, int filterSpec){
	return (qt_QDir *) new QDirBridge((QString&)* (QString*)path, (QString&)* (QString*)nameFilter, (int)sortSpec, (int)filterSpec);
}
qt_QDir * qt_new_QDir2(qt_QDir * arg1){
	return (qt_QDir *) new QDirBridge((QDir&)* (QDir*)arg1);
}
void qt_del_QDir( qt_QDir* p ){
	delete (QDirBridge*) p;
}
void qt_QDir_setPath( qt_QDir* instPointer,qt_QString * path){
	((QDirBridge*)instPointer)->setPath((QString&)* (QString*)path);
	return;
}
qt_QString * qt_QDir_path( qt_QDir* instPointer){
	return (qt_QString *)new QString(((QDirBridge*)instPointer)->path());
}
qt_QString * qt_QDir_absPath( qt_QDir* instPointer){
	return (qt_QString *)new QString(((QDirBridge*)instPointer)->absPath());
}
qt_QString * qt_QDir_canonicalPath( qt_QDir* instPointer){
	return (qt_QString *)new QString(((QDirBridge*)instPointer)->canonicalPath());
}
qt_QString * qt_QDir_dirName( qt_QDir* instPointer){
	return (qt_QString *)new QString(((QDirBridge*)instPointer)->dirName());
}
qt_QString * qt_QDir_filePath( qt_QDir* instPointer,qt_QString * fileName, int acceptAbsPath){
	return (qt_QString *)new QString(((QDirBridge*)instPointer)->filePath((QString&)* (QString*)fileName, (bool)acceptAbsPath));
}
qt_QString * qt_QDir_absFilePath( qt_QDir* instPointer,qt_QString * fileName, int acceptAbsPath){
	return (qt_QString *)new QString(((QDirBridge*)instPointer)->absFilePath((QString&)* (QString*)fileName, (bool)acceptAbsPath));
}
int qt_QDir_cd( qt_QDir* instPointer,qt_QString * dirName, int acceptAbsPath){
	return (int) ((QDirBridge*)instPointer)->cd((QString&)* (QString*)dirName, (bool)acceptAbsPath);
}
int qt_QDir_cdUp( qt_QDir* instPointer){
	return (int) ((QDirBridge*)instPointer)->cdUp();
}
qt_QString * qt_QDir_nameFilter( qt_QDir* instPointer){
	return (qt_QString *)new QString(((QDirBridge*)instPointer)->nameFilter());
}
void qt_QDir_setNameFilter( qt_QDir* instPointer,qt_QString * nameFilter){
	((QDirBridge*)instPointer)->setNameFilter((QString&)* (QString*)nameFilter);
	return;
}
int qt_QDir_filter( qt_QDir* instPointer){
	return (int) ((QDirBridge*)instPointer)->filter();
}
void qt_QDir_setFilter( qt_QDir* instPointer,int filterSpec){
	((QDirBridge*)instPointer)->setFilter((int)filterSpec);
	return;
}
int qt_QDir_sorting( qt_QDir* instPointer){
	return (int) ((QDirBridge*)instPointer)->sorting();
}
void qt_QDir_setSorting( qt_QDir* instPointer,int sortSpec){
	((QDirBridge*)instPointer)->setSorting((int)sortSpec);
	return;
}
int qt_QDir_matchAllDirs( qt_QDir* instPointer){
	return (int) ((QDirBridge*)instPointer)->matchAllDirs();
}
void qt_QDir_setMatchAllDirs( qt_QDir* instPointer,int arg1){
	((QDirBridge*)instPointer)->setMatchAllDirs((bool)arg1);
	return;
}
unsigned int qt_QDir_count( qt_QDir* instPointer){
	return (unsigned int) ((QDirBridge*)instPointer)->count();
}
qt_QStrList * qt_QDir_encodedEntryList( qt_QDir* instPointer,int filterSpec, int sortSpec){
	return (qt_QStrList *)new QStrList(((QDirBridge*)instPointer)->encodedEntryList((int)filterSpec, (int)sortSpec));
}
qt_QStrList * qt_QDir_encodedEntryList1( qt_QDir* instPointer,qt_QString * nameFilter, int filterSpec, int sortSpec){
	return (qt_QStrList *)new QStrList(((QDirBridge*)instPointer)->encodedEntryList((QString&)* (QString*)nameFilter, (int)filterSpec, (int)sortSpec));
}
qt_QStringList* qt_QDir_entryList( qt_QDir* instPointer,int filterSpec, int sortSpec){
	return (qt_QStringList*)new QStringList(((QDirBridge*)instPointer)->entryList((int)filterSpec, (int)sortSpec));
}
qt_QStringList* qt_QDir_entryList1( qt_QDir* instPointer,qt_QString * nameFilter, int filterSpec, int sortSpec){
	return (qt_QStringList*)new QStringList(((QDirBridge*)instPointer)->entryList((QString&)* (QString*)nameFilter, (int)filterSpec, (int)sortSpec));
}
qt_QFileInfoList* qt_QDir_entryInfoList( qt_QDir* instPointer,int filterSpec, int sortSpec){
	return (qt_QFileInfoList*) ((QDirBridge*)instPointer)->entryInfoList((int)filterSpec, (int)sortSpec);
}
qt_QFileInfoList* qt_QDir_entryInfoList1( qt_QDir* instPointer,qt_QString * nameFilter, int filterSpec, int sortSpec){
	return (qt_QFileInfoList*) ((QDirBridge*)instPointer)->entryInfoList((QString&)* (QString*)nameFilter, (int)filterSpec, (int)sortSpec);
}
int qt_QDir_mkdir( qt_QDir* instPointer,qt_QString * dirName, int acceptAbsPath){
	return (int) ((QDirBridge*)instPointer)->mkdir((QString&)* (QString*)dirName, (bool)acceptAbsPath);
}
int qt_QDir_rmdir( qt_QDir* instPointer,qt_QString * dirName, int acceptAbsPath){
	return (int) ((QDirBridge*)instPointer)->rmdir((QString&)* (QString*)dirName, (bool)acceptAbsPath);
}
int qt_QDir_isReadable( qt_QDir* instPointer){
	return (int) ((QDirBridge*)instPointer)->isReadable();
}
int qt_QDir_exists( qt_QDir* instPointer){
	return (int) ((QDirBridge*)instPointer)->exists();
}
int qt_QDir_isRoot( qt_QDir* instPointer){
	return (int) ((QDirBridge*)instPointer)->isRoot();
}
int qt_QDir_isRelative( qt_QDir* instPointer){
	return (int) ((QDirBridge*)instPointer)->isRelative();
}
void qt_QDir_convertToAbs( qt_QDir* instPointer){
	((QDirBridge*)instPointer)->convertToAbs();
	return;
}
int qt_QDir_remove( qt_QDir* instPointer,qt_QString * fileName, int acceptAbsPath){
	return (int) ((QDirBridge*)instPointer)->remove((QString&)* (QString*)fileName, (bool)acceptAbsPath);
}
int qt_QDir_rename( qt_QDir* instPointer,qt_QString * name, qt_QString * newName, int acceptAbsPaths){
	return (int) ((QDirBridge*)instPointer)->rename((QString&)* (QString*)name, (QString&)* (QString*)newName, (bool)acceptAbsPaths);
}
int qt_QDir_exists1( qt_QDir* instPointer,qt_QString * name, int acceptAbsPath){
	return (int) ((QDirBridge*)instPointer)->exists((QString&)* (QString*)name, (bool)acceptAbsPath);
}
qt_QString * qt_QDir_convertSeparators( qt_QString * pathName){
	return (qt_QString *)new QString(QDirBridge::convertSeparators((QString&)* (QString*)pathName));
}
qt_QFileInfoList* qt_QDir_drives( ){
	return (qt_QFileInfoList*) QDirBridge::drives();
}
char qt_QDir_separator( ){
	return (char) QDirBridge::separator();
}
int qt_QDir_setCurrent( qt_QString * path){
	return (int) QDirBridge::setCurrent((QString&)* (QString*)path);
}
qt_QDir * qt_QDir_current( ){
	return (qt_QDir *)new QDir(QDirBridge::current());
}
qt_QDir * qt_QDir_home( ){
	return (qt_QDir *)new QDir(QDirBridge::home());
}
qt_QDir * qt_QDir_root( ){
	return (qt_QDir *)new QDir(QDirBridge::root());
}
qt_QString * qt_QDir_currentDirPath( ){
	return (qt_QString *)new QString(QDirBridge::currentDirPath());
}
qt_QString * qt_QDir_homeDirPath( ){
	return (qt_QString *)new QString(QDirBridge::homeDirPath());
}
qt_QString * qt_QDir_rootDirPath( ){
	return (qt_QString *)new QString(QDirBridge::rootDirPath());
}
int qt_QDir_match( qt_QStringList* filters, qt_QString * fileName){
	return (int) QDirBridge::match((QStringList&)* (QStringList*)filters, (QString&)* (QString*)fileName);
}
int qt_QDir_match1( qt_QString * filter, qt_QString * fileName){
	return (int) QDirBridge::match((QString&)* (QString*)filter, (QString&)* (QString*)fileName);
}
qt_QString * qt_QDir_cleanDirPath( qt_QString * dirPath){
	return (qt_QString *)new QString(QDirBridge::cleanDirPath((QString&)* (QString*)dirPath));
}
int qt_QDir_isRelativePath( qt_QString * path){
	return (int) QDirBridge::isRelativePath((QString&)* (QString*)path);
}
