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

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-abakus/src/abakus-trinity-14.1.6/src/dcopIface.h"

#include <kdatastream.h>


static const char* const AbakusIface_ftable[2][3] = {
    { "double", "evaluate(TQString)", "evaluate(TQString expr)" },
    { 0, 0, 0 }
};
static const int AbakusIface_ftable_hiddens[1] = {
    0,
};

bool AbakusIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == AbakusIface_ftable[0][1] ) { // double evaluate(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AbakusIface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << evaluate(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


