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

#include <kdatastream.h>


static const char* const Repository_ftable[5][3] = {
    { "bool", "setWorkingCopy(TQString)", "setWorkingCopy(TQString dirName)" },
    { "TQString", "workingCopy()", "workingCopy()" },
    { "TQString", "location()", "location()" },
    { "bool", "retrieveCvsignoreFile()", "retrieveCvsignoreFile()" },
    { 0, 0, 0 }
};
static const int Repository_ftable_hiddens[4] = {
    0,
    0,
    0,
    0,
};

bool Repository::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == Repository_ftable[0][1] ) { // bool setWorkingCopy(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = Repository_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << setWorkingCopy(arg0 );
    } else if ( fun == Repository_ftable[1][1] ) { // TQString workingCopy()
	replyType = Repository_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << workingCopy( );
    } else if ( fun == Repository_ftable[2][1] ) { // TQString location()
	replyType = Repository_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << location( );
    } else if ( fun == Repository_ftable[3][1] ) { // bool retrieveCvsignoreFile()
	replyType = Repository_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << retrieveCvsignoreFile( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


