/***************************************************************************
                            kde_KFilterDev.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_KFilterDev.h"
}

#include <kfilterdev.h>

class KFilterDevBridge : public KFilterDev
{
public:
	KFilterDevBridge(KFilterBase* filter, bool autodeleteFilterBase) : KFilterDev(filter, autodeleteFilterBase) {}
	~KFilterDevBridge() {}
};

kde_KFilterDev * kde_new_KFilterDev(kde_KFilterBase* filter, int autodeleteFilterBase){
	return (kde_KFilterDev *) new KFilterDevBridge((KFilterBase*)filter, (bool)autodeleteFilterBase);
}
void kde_del_KFilterDev( kde_KFilterDev* p ){
	delete (KFilterDevBridge*) p;
}
int kde_KFilterDev_open( kde_KFilterDev* instPointer,int mode){
	return (int) ((KFilterDevBridge*)instPointer)->open((int)mode);
}
void kde_KFilterDev_close( kde_KFilterDev* instPointer){
	((KFilterDevBridge*)instPointer)->close();
	return;
}
void kde_KFilterDev_flush( kde_KFilterDev* instPointer){
	((KFilterDevBridge*)instPointer)->flush();
	return;
}
void kde_KFilterDev_setOrigFileName( kde_KFilterDev* instPointer,qt_QCString* fileName){
	((KFilterDevBridge*)instPointer)->setOrigFileName((QCString&)* (QCString*)fileName);
	return;
}
int kde_KFilterDev_size( kde_KFilterDev* instPointer){
	return (int) ((KFilterDevBridge*)instPointer)->size();
}
int kde_KFilterDev_at( kde_KFilterDev* instPointer){
	return (int) ((KFilterDevBridge*)instPointer)->at();
}
int kde_KFilterDev_at1( kde_KFilterDev* instPointer,int arg1){
	return (int) ((KFilterDevBridge*)instPointer)->at((QIODevice::Offset)arg1);
}
int kde_KFilterDev_atEnd( kde_KFilterDev* instPointer){
	return (int) ((KFilterDevBridge*)instPointer)->atEnd();
}
long kde_KFilterDev_readBlock( kde_KFilterDev* instPointer,char* data, long maxlen){
	return (long) ((KFilterDevBridge*)instPointer)->readBlock((char*)data, (Q_ULONG)maxlen);
}
long kde_KFilterDev_writeBlock( kde_KFilterDev* instPointer,char* data, long len){
	return (long) ((KFilterDevBridge*)instPointer)->writeBlock((char*)data, (Q_ULONG)len);
}
int kde_KFilterDev_getch( kde_KFilterDev* instPointer){
	return (int) ((KFilterDevBridge*)instPointer)->getch();
}
int kde_KFilterDev_putch( kde_KFilterDev* instPointer,int arg1){
	return (int) ((KFilterDevBridge*)instPointer)->putch((int)arg1);
}
int kde_KFilterDev_ungetch( kde_KFilterDev* instPointer,int arg1){
	return (int) ((KFilterDevBridge*)instPointer)->ungetch((int)arg1);
}
qt_QIODevice * kde_KFilterDev_createFilterDevice( kde_KFilterBase* base, qt_QFile* file){
	return (qt_QIODevice *) KFilterDevBridge::createFilterDevice((KFilterBase*)base, (QFile*)file);
}
qt_QIODevice * kde_KFilterDev_deviceForFile( qt_QString * fileName, qt_QString * mimetype, int forceFilter){
	return (qt_QIODevice *) KFilterDevBridge::deviceForFile((QString&)* (QString*)fileName, (QString&)* (QString*)mimetype, (bool)forceFilter);
}
