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

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

#include <kdatastream.h>


static const char* const KMyMoney2App_ftable[4][3] = {
    { "TQString", "filename()", "filename()" },
    { "void", "webConnect(TQString,TQCString)", "webConnect(TQString,TQCString asn_id)" },
    { "bool", "okToWriteFile(KURL)", "okToWriteFile(KURL url)" },
    { 0, 0, 0 }
};
static const int KMyMoney2App_ftable_hiddens[3] = {
    0,
    0,
    0,
};

bool KMyMoney2App::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KMyMoney2App_ftable[0][1] ) { // TQString filename()
	replyType = KMyMoney2App_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << filename( );
    } else if ( fun == KMyMoney2App_ftable[1][1] ) { // void webConnect(TQString,TQCString)
	TQString arg0;
	TQCString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KMyMoney2App_ftable[1][0]; 
	webConnect(arg0, arg1 );
    } else if ( fun == KMyMoney2App_ftable[2][1] ) { // bool okToWriteFile(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KMyMoney2App_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << okToWriteFile(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


