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

#include "/tmp/buildd/tde-packaging/arch/tde-devel/tde-tdesdk/src/tdesdk-trinity-14.1.6/cervisia/cvsservice/cvsloginjob.h"

#include <kdatastream.h>


static const char* const CvsLoginJob_ftable[3][3] = {
    { "bool", "execute()", "execute()" },
    { "TQStringList", "output()", "output()" },
    { 0, 0, 0 }
};
static const int CvsLoginJob_ftable_hiddens[2] = {
    0,
    0,
};

bool CvsLoginJob::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == CvsLoginJob_ftable[0][1] ) { // bool execute()
	replyType = CvsLoginJob_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << execute( );
    } else if ( fun == CvsLoginJob_ftable[1][1] ) { // TQStringList output()
	replyType = CvsLoginJob_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << output( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


