/***************************************************************************
                            kde_KArchiveDirectory.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_KArchiveDirectory.h"
}

#include <karchive.h>

class KArchiveDirectoryBridge : public KArchiveDirectory
{
public:
	KArchiveDirectoryBridge(KArchive* archive, const QString& name, int access, int date, const QString& user, const QString& group, const QString& symlink) : KArchiveDirectory(archive, name, access, date, user, group, symlink) {}
	~KArchiveDirectoryBridge() {}
};

kde_KArchiveDirectory * kde_new_KArchiveDirectory(kde_KArchive* archive, qt_QString * name, int access, int date, qt_QString * user, qt_QString * group, qt_QString * symlink){
	return (kde_KArchiveDirectory *) new KArchiveDirectoryBridge((KArchive*)archive, (QString&)* (QString*)name, (int)access, (int)date, (QString&)* (QString*)user, (QString&)* (QString*)group, (QString&)* (QString*)symlink);
}
void kde_del_KArchiveDirectory( kde_KArchiveDirectory* p ){
	delete (KArchiveDirectoryBridge*) p;
}
qt_QStringList* kde_KArchiveDirectory_entries( kde_KArchiveDirectory* instPointer){
	return (qt_QStringList*)new QStringList(((KArchiveDirectoryBridge*)instPointer)->entries());
}
kde_KArchiveEntry* kde_KArchiveDirectory_entry( kde_KArchiveDirectory* instPointer,qt_QString * name){
	return (kde_KArchiveEntry*) ((KArchiveDirectoryBridge*)instPointer)->entry((QString)* (QString*)name);
}
kde_KArchiveEntry* kde_KArchiveDirectory_entry1( kde_KArchiveDirectory* instPointer,qt_QString * name){
	return (kde_KArchiveEntry*) ((KArchiveDirectoryBridge*)instPointer)->entry((QString)* (QString*)name);
}
void kde_KArchiveDirectory_addEntry( kde_KArchiveDirectory* instPointer,kde_KArchiveEntry* arg1){
	((KArchiveDirectoryBridge*)instPointer)->addEntry((KArchiveEntry*)arg1);
	return;
}
int kde_KArchiveDirectory_isDirectory( kde_KArchiveDirectory* instPointer){
	return (int) ((KArchiveDirectoryBridge*)instPointer)->isDirectory();
}
