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

#include "/tmp/buildd/tde-packaging/arch/tde-core/tde-tdelibs/src/tdelibs-trinity-14.1.6/interfaces/tdetexteditor/documentdcopinfo.h"

#include <kdatastream.h>

namespace KTextEditor {

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

bool DocumentInfoDCOPInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == DocumentInfoDCOPInterface_ftable[0][1] ) { // TQString mimeType()
	replyType = DocumentInfoDCOPInterface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << mimeType( );
    } else if ( fun == DocumentInfoDCOPInterface_ftable[1][1] ) { // long int fileSize()
	replyType = DocumentInfoDCOPInterface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << fileSize( );
    } else if ( fun == DocumentInfoDCOPInterface_ftable[2][1] ) { // TQString niceFileSize()
	replyType = DocumentInfoDCOPInterface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << niceFileSize( );
    } else if ( fun == DocumentInfoDCOPInterface_ftable[3][1] ) { // uint documentInfoInterfaceNumber()
	replyType = DocumentInfoDCOPInterface_ftable[3][0]; 
	TQDataStream _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;
	TQCString func = DocumentInfoDCOPInterface_ftable[i][0];
	func += ' ';
	func += DocumentInfoDCOPInterface_ftable[i][2];
	funcs << func;
    }
    return funcs;
}

} // namespace

