/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from documentdcopinfo.kidl
**
** WARNING! All changes made in this file will be lost!
**
*****************************************************************************/

#include "/usr/src/ports/kdelibs3/kdelibs3-3.5.10-11.i686/src/kdelibs-3.5.10/interfaces/ktexteditor/documentdcopinfo.h"

#include <kdatastream.h>

namespace KTextEditor {

static const char* const DocumentInfoDCOPInterface_ftable[5][3] = {
    { "QString", "mimeType()", "mimeType()" },
    { "long int", "fileSize()", "fileSize()" },
    { "QString", "niceFileSize()", "niceFileSize()" },
    { "uint", "documentInfoInterfaceNumber()", "documentInfoInterfaceNumber()" },
    { 0, 0, 0 }
};
static const int DocumentInfoDCOPInterface_ftable_hiddens[4] = {
    0,
    0,
    0,
    0,
};

bool DocumentInfoDCOPInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    if ( fun == DocumentInfoDCOPInterface_ftable[0][1] ) { // QString mimeType()
	replyType = DocumentInfoDCOPInterface_ftable[0][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << mimeType( );
    } else if ( fun == DocumentInfoDCOPInterface_ftable[1][1] ) { // long int fileSize()
	replyType = DocumentInfoDCOPInterface_ftable[1][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << fileSize( );
    } else if ( fun == DocumentInfoDCOPInterface_ftable[2][1] ) { // QString niceFileSize()
	replyType = DocumentInfoDCOPInterface_ftable[2][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << niceFileSize( );
    } else if ( fun == DocumentInfoDCOPInterface_ftable[3][1] ) { // uint documentInfoInterfaceNumber()
	replyType = DocumentInfoDCOPInterface_ftable[3][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << documentInfoInterfaceNumber( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList DocumentInfoDCOPInterface::interfaces()
{
    QCStringList ifaces = DCOPObject::interfaces();
    ifaces += "KTextEditor::DocumentInfoDCOPInterface";
    return ifaces;
}

QCStringList DocumentInfoDCOPInterface::functions()
{
    QCStringList funcs = DCOPObject::functions();
    for ( int i = 0; DocumentInfoDCOPInterface_ftable[i][2]; i++ ) {
	if (DocumentInfoDCOPInterface_ftable_hiddens[i])
	    continue;
	QCString func = DocumentInfoDCOPInterface_ftable[i][0];
	func += ' ';
	func += DocumentInfoDCOPInterface_ftable[i][2];
	funcs << func;
    }
    return funcs;
}

} // namespace

