/***************************************************************************
                            qt_QFileInfo.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_QFileInfo.h"
}

#include <qfileinfo.h>
#include <qdir.h>

class QFileInfoBridge : public QFileInfo
{
public:
	QFileInfoBridge() : QFileInfo() {}
	QFileInfoBridge(const QString& file) : QFileInfo(file) {}
	QFileInfoBridge(const QFile& arg1) : QFileInfo(arg1) {}
	QFileInfoBridge(const QDir& arg1, const QString& fileName) : QFileInfo(arg1, fileName) {}
	QFileInfoBridge(const QFileInfo& arg1) : QFileInfo(arg1) {}
	~QFileInfoBridge() {}
};

qt_QFileInfo * qt_new_QFileInfo(){
	return (qt_QFileInfo *) new QFileInfoBridge();
}
qt_QFileInfo * qt_new_QFileInfo1(qt_QString * file){
	return (qt_QFileInfo *) new QFileInfoBridge((QString&)* (QString*)file);
}
qt_QFileInfo * qt_new_QFileInfo2(qt_QFile * arg1){
	return (qt_QFileInfo *) new QFileInfoBridge((QFile&)* (QFile*)arg1);
}
qt_QFileInfo * qt_new_QFileInfo3(qt_QDir * arg1, qt_QString * fileName){
	return (qt_QFileInfo *) new QFileInfoBridge((QDir&)* (QDir*)arg1, (QString&)* (QString*)fileName);
}
qt_QFileInfo * qt_new_QFileInfo4(qt_QFileInfo * arg1){
	return (qt_QFileInfo *) new QFileInfoBridge((QFileInfo&)* (QFileInfo*)arg1);
}
void qt_del_QFileInfo( qt_QFileInfo* p ){
	delete (QFileInfoBridge*) p;
}
void qt_QFileInfo_setFile( qt_QFileInfo* instPointer,qt_QString * file){
	((QFileInfoBridge*)instPointer)->setFile((QString&)* (QString*)file);
	return;
}
void qt_QFileInfo_setFile1( qt_QFileInfo* instPointer,qt_QFile * arg1){
	((QFileInfoBridge*)instPointer)->setFile((QFile&)* (QFile*)arg1);
	return;
}
void qt_QFileInfo_setFile2( qt_QFileInfo* instPointer,qt_QDir * arg1, qt_QString * fileName){
	((QFileInfoBridge*)instPointer)->setFile((QDir&)* (QDir*)arg1, (QString&)* (QString*)fileName);
	return;
}
int qt_QFileInfo_exists( qt_QFileInfo* instPointer){
	return (int) ((QFileInfoBridge*)instPointer)->exists();
}
void qt_QFileInfo_refresh( qt_QFileInfo* instPointer){
	((QFileInfoBridge*)instPointer)->refresh();
	return;
}
int qt_QFileInfo_caching( qt_QFileInfo* instPointer){
	return (int) ((QFileInfoBridge*)instPointer)->caching();
}
void qt_QFileInfo_setCaching( qt_QFileInfo* instPointer,int arg1){
	((QFileInfoBridge*)instPointer)->setCaching((bool)arg1);
	return;
}
qt_QString * qt_QFileInfo_filePath( qt_QFileInfo* instPointer){
	return (qt_QString *)new QString(((QFileInfoBridge*)instPointer)->filePath());
}
qt_QString * qt_QFileInfo_fileName( qt_QFileInfo* instPointer){
	return (qt_QString *)new QString(((QFileInfoBridge*)instPointer)->fileName());
}
qt_QString * qt_QFileInfo_absFilePath( qt_QFileInfo* instPointer){
	return (qt_QString *)new QString(((QFileInfoBridge*)instPointer)->absFilePath());
}
qt_QString * qt_QFileInfo_baseName( qt_QFileInfo* instPointer,int complete){
	return (qt_QString *)new QString(((QFileInfoBridge*)instPointer)->baseName((bool)complete));
}
qt_QString * qt_QFileInfo_extension( qt_QFileInfo* instPointer,int complete){
	return (qt_QString *)new QString(((QFileInfoBridge*)instPointer)->extension((bool)complete));
}
qt_QString * qt_QFileInfo_dirPath( qt_QFileInfo* instPointer,int absPath){
	return (qt_QString *)new QString(((QFileInfoBridge*)instPointer)->dirPath((bool)absPath));
}
qt_QDir * qt_QFileInfo_dir( qt_QFileInfo* instPointer,int absPath){
	return (qt_QDir *)new QDir(((QFileInfoBridge*)instPointer)->dir((bool)absPath));
}
int qt_QFileInfo_isReadable( qt_QFileInfo* instPointer){
	return (int) ((QFileInfoBridge*)instPointer)->isReadable();
}
int qt_QFileInfo_isWritable( qt_QFileInfo* instPointer){
	return (int) ((QFileInfoBridge*)instPointer)->isWritable();
}
int qt_QFileInfo_isExecutable( qt_QFileInfo* instPointer){
	return (int) ((QFileInfoBridge*)instPointer)->isExecutable();
}
int qt_QFileInfo_isRelative( qt_QFileInfo* instPointer){
	return (int) ((QFileInfoBridge*)instPointer)->isRelative();
}
int qt_QFileInfo_convertToAbs( qt_QFileInfo* instPointer){
	return (int) ((QFileInfoBridge*)instPointer)->convertToAbs();
}
int qt_QFileInfo_isFile( qt_QFileInfo* instPointer){
	return (int) ((QFileInfoBridge*)instPointer)->isFile();
}
int qt_QFileInfo_isDir( qt_QFileInfo* instPointer){
	return (int) ((QFileInfoBridge*)instPointer)->isDir();
}
int qt_QFileInfo_isSymLink( qt_QFileInfo* instPointer){
	return (int) ((QFileInfoBridge*)instPointer)->isSymLink();
}
qt_QString * qt_QFileInfo_readLink( qt_QFileInfo* instPointer){
	return (qt_QString *)new QString(((QFileInfoBridge*)instPointer)->readLink());
}
qt_QString * qt_QFileInfo_owner( qt_QFileInfo* instPointer){
	return (qt_QString *)new QString(((QFileInfoBridge*)instPointer)->owner());
}
unsigned int qt_QFileInfo_ownerId( qt_QFileInfo* instPointer){
	return (unsigned int) ((QFileInfoBridge*)instPointer)->ownerId();
}
qt_QString * qt_QFileInfo_group( qt_QFileInfo* instPointer){
	return (qt_QString *)new QString(((QFileInfoBridge*)instPointer)->group());
}
unsigned int qt_QFileInfo_groupId( qt_QFileInfo* instPointer){
	return (unsigned int) ((QFileInfoBridge*)instPointer)->groupId();
}
int qt_QFileInfo_permission( qt_QFileInfo* instPointer,int permissionSpec){
	return (int) ((QFileInfoBridge*)instPointer)->permission((int)permissionSpec);
}
unsigned int qt_QFileInfo_size( qt_QFileInfo* instPointer){
	return (unsigned int) ((QFileInfoBridge*)instPointer)->size();
}
qt_QDateTime * qt_QFileInfo_created( qt_QFileInfo* instPointer){
	QDateTime _dt= ((QFileInfoBridge*)instPointer)->created();
	return (qt_QDateTime *)new QDateTime (_dt.date(),_dt.time());
}
qt_QDateTime * qt_QFileInfo_lastModified( qt_QFileInfo* instPointer){
	QDateTime _dt= ((QFileInfoBridge*)instPointer)->lastModified();
	return (qt_QDateTime *)new QDateTime (_dt.date(),_dt.time());
}
qt_QDateTime * qt_QFileInfo_lastRead( qt_QFileInfo* instPointer){
	QDateTime _dt= ((QFileInfoBridge*)instPointer)->lastRead();
	return (qt_QDateTime *)new QDateTime (_dt.date(),_dt.time());
}
