/***************************************************************************
                            kde_ReadWritePart.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_ReadWritePart.h"
}

#include <kparts/part.h>

void kde_del_ReadWritePart( kde_ReadWritePart* p ){
	delete (KParts::ReadWritePart*) p;
}
int kde_ReadWritePart_isReadWrite( kde_ReadWritePart* instPointer){
	return (int) ((KParts::ReadWritePart*)instPointer)->isReadWrite();
}
void kde_ReadWritePart_setReadWrite( kde_ReadWritePart* instPointer,int readwrite){
	((KParts::ReadWritePart*)instPointer)->setReadWrite((bool)readwrite);
	return;
}
int kde_ReadWritePart_isModified( kde_ReadWritePart* instPointer){
	return (int) ((KParts::ReadWritePart*)instPointer)->isModified();
}
int kde_ReadWritePart_closeURL( kde_ReadWritePart* instPointer){
	return (int) ((KParts::ReadWritePart*)instPointer)->closeURL();
}
int kde_ReadWritePart_saveAs( kde_ReadWritePart* instPointer,kde_KURL* url){
	return (int) ((KParts::ReadWritePart*)instPointer)->saveAs((KURL&)* (KURL*)url);
}
void kde_ReadWritePart_setModified( kde_ReadWritePart* instPointer,int modified){
	((KParts::ReadWritePart*)instPointer)->setModified((bool)modified);
	return;
}
void kde_ReadWritePart_setModified1( kde_ReadWritePart* instPointer){
	((KParts::ReadWritePart*)instPointer)->setModified();
	return;
}
int kde_ReadWritePart_save( kde_ReadWritePart* instPointer){
	return (int) ((KParts::ReadWritePart*)instPointer)->save();
}
