/***************************************************************************
                            kde_ReadOnlyPart.cpp -  description
                             -------------------
    begin                : Sun Nov 24 16:54:36 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Nov 24 16:54:36 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_ReadOnlyPart.h"
}

#include <kparts/part.h>

void kde_del_ReadOnlyPart( kde_ReadOnlyPart* p ){
	delete (KParts::ReadOnlyPart*) p;
}
void kde_ReadOnlyPart_setProgressInfoEnabled( kde_ReadOnlyPart* instPointer,int show){
	((KParts::ReadOnlyPart*)instPointer)->setProgressInfoEnabled((bool)show);
	return;
}
int kde_ReadOnlyPart_isProgressInfoEnabled( kde_ReadOnlyPart* instPointer){
	return (int) ((KParts::ReadOnlyPart*)instPointer)->isProgressInfoEnabled();
}
void kde_ReadOnlyPart_showProgressInfo( kde_ReadOnlyPart* instPointer,int show){
	((KParts::ReadOnlyPart*)instPointer)->showProgressInfo((bool)show);
	return;
}
kde_KURL* kde_ReadOnlyPart_url( kde_ReadOnlyPart* instPointer){
	return (kde_KURL*)new KURL(((KParts::ReadOnlyPart*)instPointer)->url());
}
int kde_ReadOnlyPart_closeURL( kde_ReadOnlyPart* instPointer){
	return (int) ((KParts::ReadOnlyPart*)instPointer)->closeURL();
}
int kde_ReadOnlyPart_openStream( kde_ReadOnlyPart* instPointer,qt_QString * mimeType, kde_KURL* url){
	return (int) ((KParts::ReadOnlyPart*)instPointer)->openStream((QString&)* (QString*)mimeType, (KURL&)* (KURL*)url);
}
int kde_ReadOnlyPart_writeStream( kde_ReadOnlyPart* instPointer,qt_QByteArray* data){
	return (int) ((KParts::ReadOnlyPart*)instPointer)->writeStream((QByteArray&)* (QByteArray*)data);
}
int kde_ReadOnlyPart_closeStream( kde_ReadOnlyPart* instPointer){
	return (int) ((KParts::ReadOnlyPart*)instPointer)->closeStream();
}
int kde_ReadOnlyPart_openURL( kde_ReadOnlyPart* instPointer,kde_KURL* url){
	return (int) ((KParts::ReadOnlyPart*)instPointer)->openURL((KURL&)* (KURL*)url);
}
