/***************************************************************************
                            kde_KArchiveFile.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_KArchiveFile.h"
}

#include <karchive.h>

class KArchiveFileBridge : public KArchiveFile
{
public:
	KArchiveFileBridge(KArchive* archive, const QString& name, int access, int date, const QString& user, const QString& group, const QString& symlink, int pos, int size) : KArchiveFile(archive, name, access, date, user, group, symlink, pos, size) {}
	~KArchiveFileBridge() {}
};

kde_KArchiveFile * kde_new_KArchiveFile(kde_KArchive* archive, qt_QString * name, int access, int date, qt_QString * user, qt_QString * group, qt_QString * symlink, int pos, int size){
	return (kde_KArchiveFile *) new KArchiveFileBridge((KArchive*)archive, (QString&)* (QString*)name, (int)access, (int)date, (QString&)* (QString*)user, (QString&)* (QString*)group, (QString&)* (QString*)symlink, (int)pos, (int)size);
}
void kde_del_KArchiveFile( kde_KArchiveFile* p ){
	delete (KArchiveFileBridge*) p;
}
int kde_KArchiveFile_position( kde_KArchiveFile* instPointer){
	return (int) ((KArchiveFileBridge*)instPointer)->position();
}
int kde_KArchiveFile_size( kde_KArchiveFile* instPointer){
	return (int) ((KArchiveFileBridge*)instPointer)->size();
}
qt_QByteArray* kde_KArchiveFile_data( kde_KArchiveFile* instPointer){
	return (qt_QByteArray*)new QByteArray(((KArchiveFileBridge*)instPointer)->data());
}
qt_QIODevice * kde_KArchiveFile_device( kde_KArchiveFile* instPointer){
	return (qt_QIODevice *) ((KArchiveFileBridge*)instPointer)->device();
}
int kde_KArchiveFile_isFile( kde_KArchiveFile* instPointer){
	return (int) ((KArchiveFileBridge*)instPointer)->isFile();
}
