/***************************************************************************
                            kde_KArchiveEntry.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_KArchiveEntry.h"
}

#include <karchive.h>

class KArchiveEntryBridge : public KArchiveEntry
{
public:
	KArchiveEntryBridge(KArchive* archive, const QString& name, int access, int date, const QString& user, const QString& group, const QString& symlink) : KArchiveEntry(archive, name, access, date, user, group, symlink) {}
	~KArchiveEntryBridge() {}
	KArchive*  protected_archive() {
		return (KArchive* ) KArchiveEntry::archive();
	}
};

kde_KArchiveEntry * kde_new_KArchiveEntry(kde_KArchive* archive, qt_QString * name, int access, int date, qt_QString * user, qt_QString * group, qt_QString * symlink){
	return (kde_KArchiveEntry *) new KArchiveEntryBridge((KArchive*)archive, (QString&)* (QString*)name, (int)access, (int)date, (QString&)* (QString*)user, (QString&)* (QString*)group, (QString&)* (QString*)symlink);
}
void kde_del_KArchiveEntry( kde_KArchiveEntry* p ){
	delete (KArchiveEntryBridge*) p;
}
qt_QDateTime * kde_KArchiveEntry_datetime( kde_KArchiveEntry* instPointer){
	QDateTime _dt= ((KArchiveEntryBridge*)instPointer)->datetime();
	return (qt_QDateTime *)new QDateTime (_dt.date(),_dt.time());
}
int kde_KArchiveEntry_date( kde_KArchiveEntry* instPointer){
	return (int) ((KArchiveEntryBridge*)instPointer)->date();
}
qt_QString * kde_KArchiveEntry_name( kde_KArchiveEntry* instPointer){
	return (qt_QString *)new QString(((KArchiveEntryBridge*)instPointer)->name());
}
long kde_KArchiveEntry_permissions( kde_KArchiveEntry* instPointer){
	return (long) ((KArchiveEntryBridge*)instPointer)->permissions();
}
qt_QString * kde_KArchiveEntry_user( kde_KArchiveEntry* instPointer){
	return (qt_QString *)new QString(((KArchiveEntryBridge*)instPointer)->user());
}
qt_QString * kde_KArchiveEntry_group( kde_KArchiveEntry* instPointer){
	return (qt_QString *)new QString(((KArchiveEntryBridge*)instPointer)->group());
}
qt_QString * kde_KArchiveEntry_symlink( kde_KArchiveEntry* instPointer){
	return (qt_QString *)new QString(((KArchiveEntryBridge*)instPointer)->symlink());
}
int kde_KArchiveEntry_isFile( kde_KArchiveEntry* instPointer){
	return (int) ((KArchiveEntryBridge*)instPointer)->isFile();
}
int kde_KArchiveEntry_isDirectory( kde_KArchiveEntry* instPointer){
	return (int) ((KArchiveEntryBridge*)instPointer)->isDirectory();
}
kde_KArchive* kde_KArchiveEntry_archive( kde_KArchiveEntry* instPointer){
	return (kde_KArchive*) ((KArchiveEntryBridge*)instPointer)->protected_archive();
}
