/***************************************************************************
                            kde_KArchive.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_KArchive.h"
}

#include <karchive.h>

int kde_KArchive_open( kde_KArchive* instPointer,int mode){
	return (int) ((KArchive*)instPointer)->open((int)mode);
}
void kde_KArchive_close( kde_KArchive* instPointer){
	((KArchive*)instPointer)->close();
	return;
}
int kde_KArchive_isOpened( kde_KArchive* instPointer){
	return (int) ((KArchive*)instPointer)->isOpened();
}
int kde_KArchive_mode( kde_KArchive* instPointer){
	return (int) ((KArchive*)instPointer)->mode();
}
qt_QIODevice * kde_KArchive_device( kde_KArchive* instPointer){
	return (qt_QIODevice *) ((KArchive*)instPointer)->device();
}
kde_KArchiveDirectory* kde_KArchive_directory( kde_KArchive* instPointer){
	return (kde_KArchiveDirectory*) ((KArchive*)instPointer)->directory();
}
int kde_KArchive_writeDir( kde_KArchive* instPointer,qt_QString * name, qt_QString * user, qt_QString * group){
	return (int) ((KArchive*)instPointer)->writeDir((QString&)* (QString*)name, (QString&)* (QString*)user, (QString&)* (QString*)group);
}
int kde_KArchive_writeFile( kde_KArchive* instPointer,qt_QString * name, qt_QString * user, qt_QString * group, unsigned int size, char* data){
	return (int) ((KArchive*)instPointer)->writeFile((QString&)* (QString*)name, (QString&)* (QString*)user, (QString&)* (QString*)group, (uint)size, (char*)data);
}
int kde_KArchive_prepareWriting( kde_KArchive* instPointer,qt_QString * name, qt_QString * user, qt_QString * group, unsigned int size){
	return (int) ((KArchive*)instPointer)->prepareWriting((QString&)* (QString*)name, (QString&)* (QString*)user, (QString&)* (QString*)group, (uint)size);
}
int kde_KArchive_doneWriting( kde_KArchive* instPointer,unsigned int size){
	return (int) ((KArchive*)instPointer)->doneWriting((uint)size);
}
