/***************************************************************************
                            qt_QUrlInfo.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_QUrlInfo.h"
}

#include <qurlinfo.h>

class QUrlInfoBridge : public QUrlInfo
{
public:
	QUrlInfoBridge() : QUrlInfo() {}
	QUrlInfoBridge(const QUrlOperator& path, const QString& file) : QUrlInfo(path, file) {}
	QUrlInfoBridge(const QUrlInfo& ui) : QUrlInfo(ui) {}
	QUrlInfoBridge(const QString& name, int permissions, const QString& owner, const QString& group, uint size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable) : QUrlInfo(name, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable) {}
	QUrlInfoBridge(const QUrl& url, int permissions, const QString& owner, const QString& group, uint size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable) : QUrlInfo(url, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable) {}
	~QUrlInfoBridge() {}
};

qt_QUrlInfo * qt_new_QUrlInfo(){
	return (qt_QUrlInfo *) new QUrlInfoBridge();
}
qt_QUrlInfo * qt_new_QUrlInfo1(qt_QUrlOperator* path, qt_QString * file){
	return (qt_QUrlInfo *) new QUrlInfoBridge((QUrlOperator&)* (QUrlOperator*)path, (QString&)* (QString*)file);
}
qt_QUrlInfo * qt_new_QUrlInfo2(qt_QUrlInfo* ui){
	return (qt_QUrlInfo *) new QUrlInfoBridge((QUrlInfo&)* (QUrlInfo*)ui);
}
qt_QUrlInfo * qt_new_QUrlInfo3(qt_QString * name, int permissions, qt_QString * owner, qt_QString * group, unsigned int size, qt_QDateTime * lastModified, qt_QDateTime * lastRead, int isDir, int isFile, int isSymLink, int isWritable, int isReadable, int isExecutable){
	return (qt_QUrlInfo *) new QUrlInfoBridge((QString&)* (QString*)name, (int)permissions, (QString&)* (QString*)owner, (QString&)* (QString*)group, (uint)size, (QDateTime&)* (QDateTime*)lastModified, (QDateTime&)* (QDateTime*)lastRead, (bool)isDir, (bool)isFile, (bool)isSymLink, (bool)isWritable, (bool)isReadable, (bool)isExecutable);
}
qt_QUrlInfo * qt_new_QUrlInfo4(qt_QUrl* url, int permissions, qt_QString * owner, qt_QString * group, unsigned int size, qt_QDateTime * lastModified, qt_QDateTime * lastRead, int isDir, int isFile, int isSymLink, int isWritable, int isReadable, int isExecutable){
	return (qt_QUrlInfo *) new QUrlInfoBridge((QUrl&)* (QUrl*)url, (int)permissions, (QString&)* (QString*)owner, (QString&)* (QString*)group, (uint)size, (QDateTime&)* (QDateTime*)lastModified, (QDateTime&)* (QDateTime*)lastRead, (bool)isDir, (bool)isFile, (bool)isSymLink, (bool)isWritable, (bool)isReadable, (bool)isExecutable);
}
void qt_del_QUrlInfo( qt_QUrlInfo* p ){
	delete (QUrlInfoBridge*) p;
}
void qt_QUrlInfo_setName( qt_QUrlInfo* instPointer,qt_QString * name){
	((QUrlInfoBridge*)instPointer)->setName((QString&)* (QString*)name);
	return;
}
void qt_QUrlInfo_setDir( qt_QUrlInfo* instPointer,int b){
	((QUrlInfoBridge*)instPointer)->setDir((bool)b);
	return;
}
void qt_QUrlInfo_setFile( qt_QUrlInfo* instPointer,int b){
	((QUrlInfoBridge*)instPointer)->setFile((bool)b);
	return;
}
void qt_QUrlInfo_setSymLink( qt_QUrlInfo* instPointer,int b){
	((QUrlInfoBridge*)instPointer)->setSymLink((bool)b);
	return;
}
void qt_QUrlInfo_setOwner( qt_QUrlInfo* instPointer,qt_QString * s){
	((QUrlInfoBridge*)instPointer)->setOwner((QString&)* (QString*)s);
	return;
}
void qt_QUrlInfo_setGroup( qt_QUrlInfo* instPointer,qt_QString * s){
	((QUrlInfoBridge*)instPointer)->setGroup((QString&)* (QString*)s);
	return;
}
void qt_QUrlInfo_setSize( qt_QUrlInfo* instPointer,unsigned int s){
	((QUrlInfoBridge*)instPointer)->setSize((uint)s);
	return;
}
void qt_QUrlInfo_setWritable( qt_QUrlInfo* instPointer,int b){
	((QUrlInfoBridge*)instPointer)->setWritable((bool)b);
	return;
}
void qt_QUrlInfo_setReadable( qt_QUrlInfo* instPointer,int b){
	((QUrlInfoBridge*)instPointer)->setReadable((bool)b);
	return;
}
void qt_QUrlInfo_setPermissions( qt_QUrlInfo* instPointer,int p){
	((QUrlInfoBridge*)instPointer)->setPermissions((int)p);
	return;
}
void qt_QUrlInfo_setLastModified( qt_QUrlInfo* instPointer,qt_QDateTime * dt){
	((QUrlInfoBridge*)instPointer)->setLastModified((QDateTime&)* (QDateTime*)dt);
	return;
}
int qt_QUrlInfo_isValid( qt_QUrlInfo* instPointer){
	return (int) ((QUrlInfoBridge*)instPointer)->isValid();
}
qt_QString * qt_QUrlInfo_name( qt_QUrlInfo* instPointer){
	return (qt_QString *)new QString(((QUrlInfoBridge*)instPointer)->name());
}
int qt_QUrlInfo_permissions( qt_QUrlInfo* instPointer){
	return (int) ((QUrlInfoBridge*)instPointer)->permissions();
}
qt_QString * qt_QUrlInfo_owner( qt_QUrlInfo* instPointer){
	return (qt_QString *)new QString(((QUrlInfoBridge*)instPointer)->owner());
}
qt_QString * qt_QUrlInfo_group( qt_QUrlInfo* instPointer){
	return (qt_QString *)new QString(((QUrlInfoBridge*)instPointer)->group());
}
unsigned int qt_QUrlInfo_size( qt_QUrlInfo* instPointer){
	return (unsigned int) ((QUrlInfoBridge*)instPointer)->size();
}
qt_QDateTime * qt_QUrlInfo_lastModified( qt_QUrlInfo* instPointer){
	QDateTime _dt= ((QUrlInfoBridge*)instPointer)->lastModified();
	return (qt_QDateTime *)new QDateTime (_dt.date(),_dt.time());
}
qt_QDateTime * qt_QUrlInfo_lastRead( qt_QUrlInfo* instPointer){
	QDateTime _dt= ((QUrlInfoBridge*)instPointer)->lastRead();
	return (qt_QDateTime *)new QDateTime (_dt.date(),_dt.time());
}
int qt_QUrlInfo_isDir( qt_QUrlInfo* instPointer){
	return (int) ((QUrlInfoBridge*)instPointer)->isDir();
}
int qt_QUrlInfo_isFile( qt_QUrlInfo* instPointer){
	return (int) ((QUrlInfoBridge*)instPointer)->isFile();
}
int qt_QUrlInfo_isSymLink( qt_QUrlInfo* instPointer){
	return (int) ((QUrlInfoBridge*)instPointer)->isSymLink();
}
int qt_QUrlInfo_isWritable( qt_QUrlInfo* instPointer){
	return (int) ((QUrlInfoBridge*)instPointer)->isWritable();
}
int qt_QUrlInfo_isReadable( qt_QUrlInfo* instPointer){
	return (int) ((QUrlInfoBridge*)instPointer)->isReadable();
}
int qt_QUrlInfo_isExecutable( qt_QUrlInfo* instPointer){
	return (int) ((QUrlInfoBridge*)instPointer)->isExecutable();
}
int qt_QUrlInfo_greaterThan( qt_QUrlInfo* i1, qt_QUrlInfo* i2, int sortBy){
	return (int) QUrlInfoBridge::greaterThan((QUrlInfo&)* (QUrlInfo*)i1, (QUrlInfo&)* (QUrlInfo*)i2, (int)sortBy);
}
int qt_QUrlInfo_lessThan( qt_QUrlInfo* i1, qt_QUrlInfo* i2, int sortBy){
	return (int) QUrlInfoBridge::lessThan((QUrlInfo&)* (QUrlInfo*)i1, (QUrlInfo&)* (QUrlInfo*)i2, (int)sortBy);
}
int qt_QUrlInfo_equal( qt_QUrlInfo* i1, qt_QUrlInfo* i2, int sortBy){
	return (int) QUrlInfoBridge::equal((QUrlInfo&)* (QUrlInfo*)i1, (QUrlInfo&)* (QUrlInfo*)i2, (int)sortBy);
}
