/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from printdcopinterface.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/printdcopinterface.h"

#include <kdatastream.h>

namespace KTextEditor {

static const char* const PrintDCOPInterface_ftable[4][3] = {
    { "uint", "printInterfaceNumber()", "printInterfaceNumber()" },
    { "bool", "printDialog()", "printDialog()" },
    { "bool", "print()", "print()" },
    { 0, 0, 0 }
};
static const int PrintDCOPInterface_ftable_hiddens[3] = {
    0,
    0,
    0,
};

bool PrintDCOPInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == PrintDCOPInterface_ftable[0][1] ) { // uint printInterfaceNumber()
	replyType = PrintDCOPInterface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << printInterfaceNumber( );
    } else if ( fun == PrintDCOPInterface_ftable[1][1] ) { // bool printDialog()
	replyType = PrintDCOPInterface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << printDialog( );
    } else if ( fun == PrintDCOPInterface_ftable[2][1] ) { // bool print()
	replyType = PrintDCOPInterface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << print( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

QCStringList PrintDCOPInterface::functions()
{
    QCStringList funcs = DCOPObject::functions();
    for ( int i = 0; PrintDCOPInterface_ftable[i][2]; i++ ) {
	if (PrintDCOPInterface_ftable_hiddens[i])
	    continue;
	TQCString func = PrintDCOPInterface_ftable[i][0];
	func += ' ';
	func += PrintDCOPInterface_ftable[i][2];
	funcs << func;
    }
    return funcs;
}

} // namespace

