/***************************************************************************
                            kde_KFilterBase.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_KFilterBase.h"
}

#include <kfilterbase.h>

void kde_del_KFilterBase( kde_KFilterBase* p ){
	delete (KFilterBase*) p;
}
void kde_KFilterBase_setDevice( kde_KFilterBase* instPointer,qt_QIODevice * dev, int autodelete){
	((KFilterBase*)instPointer)->setDevice((QIODevice*)dev, (bool)autodelete);
	return;
}
qt_QIODevice * kde_KFilterBase_device( kde_KFilterBase* instPointer){
	return (qt_QIODevice *) ((KFilterBase*)instPointer)->device();
}
void kde_KFilterBase_init( kde_KFilterBase* instPointer,int mode){
	((KFilterBase*)instPointer)->init((int)mode);
	return;
}
int kde_KFilterBase_mode( kde_KFilterBase* instPointer){
	return (int) ((KFilterBase*)instPointer)->mode();
}
void kde_KFilterBase_terminate( kde_KFilterBase* instPointer){
	((KFilterBase*)instPointer)->terminate();
	return;
}
void kde_KFilterBase_reset( kde_KFilterBase* instPointer){
	((KFilterBase*)instPointer)->reset();
	return;
}
int kde_KFilterBase_readHeader( kde_KFilterBase* instPointer){
	return (int) ((KFilterBase*)instPointer)->readHeader();
}
int kde_KFilterBase_writeHeader( kde_KFilterBase* instPointer,qt_QCString* filename){
	return (int) ((KFilterBase*)instPointer)->writeHeader((QCString&)* (QCString*)filename);
}
void kde_KFilterBase_setOutBuffer( kde_KFilterBase* instPointer,char* data, unsigned int maxlen){
	((KFilterBase*)instPointer)->setOutBuffer((char*)data, (uint)maxlen);
	return;
}
void kde_KFilterBase_setInBuffer( kde_KFilterBase* instPointer,char* data, unsigned int size){
	((KFilterBase*)instPointer)->setInBuffer((char*)data, (uint)size);
	return;
}
int kde_KFilterBase_inBufferEmpty( kde_KFilterBase* instPointer){
	return (int) ((KFilterBase*)instPointer)->inBufferEmpty();
}
int kde_KFilterBase_inBufferAvailable( kde_KFilterBase* instPointer){
	return (int) ((KFilterBase*)instPointer)->inBufferAvailable();
}
int kde_KFilterBase_outBufferFull( kde_KFilterBase* instPointer){
	return (int) ((KFilterBase*)instPointer)->outBufferFull();
}
int kde_KFilterBase_outBufferAvailable( kde_KFilterBase* instPointer){
	return (int) ((KFilterBase*)instPointer)->outBufferAvailable();
}
int kde_KFilterBase_uncompress( kde_KFilterBase* instPointer){
	return (int) ((KFilterBase*)instPointer)->uncompress();
}
int kde_KFilterBase_compress( kde_KFilterBase* instPointer,int finish){
	return (int) ((KFilterBase*)instPointer)->compress((bool)finish);
}
kde_KFilterBase* kde_KFilterBase_findFilterByFileName( qt_QString * fileName){
	return (kde_KFilterBase*) KFilterBase::findFilterByFileName((QString&)* (QString*)fileName);
}
kde_KFilterBase* kde_KFilterBase_findFilterByMimeType( qt_QString * mimeType){
	return (kde_KFilterBase*) KFilterBase::findFilterByMimeType((QString&)* (QString*)mimeType);
}
