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

#include "/tmp/buildd/tde-packaging/arch/tde-devel/tde-tdevelop/src/tdevelop-trinity-14.1.6/vcs/subversion/kdevsvnd.h"

#include <kdatastream.h>


static const char* const KDevSvnd_ftable[5][3] = {
    { "TQString", "commitDialog(TQString)", "commitDialog(TQString)" },
    { "int", "sslServerTrustPrompt(TQString,TQString,TQString,TQString,TQString,TQString,TQString)", "sslServerTrustPrompt(TQString certFailMsg,TQString hostname,TQString fingerPrint,TQString validfrom,TQString validuntil,TQString issuerName,TQString ascii_cert)" },
    { "TQString", "sslCertFile()", "sslCertFile()" },
    { "TQString", "sslPasswdDlg(TQString)", "sslPasswdDlg(TQString promptMsg)" },
    { 0, 0, 0 }
};
static const int KDevSvnd_ftable_hiddens[4] = {
    0,
    0,
    0,
    0,
};

bool KDevSvnd::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KDevSvnd_ftable[0][1] ) { // TQString commitDialog(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevSvnd_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << commitDialog(arg0 );
    } else if ( fun == KDevSvnd_ftable[1][1] ) { // int sslServerTrustPrompt(TQString,TQString,TQString,TQString,TQString,TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	TQString arg3;
	TQString arg4;
	TQString arg5;
	TQString arg6;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	if (arg.atEnd()) return false;
	arg >> arg2;
	if (arg.atEnd()) return false;
	arg >> arg3;
	if (arg.atEnd()) return false;
	arg >> arg4;
	if (arg.atEnd()) return false;
	arg >> arg5;
	if (arg.atEnd()) return false;
	arg >> arg6;
	replyType = KDevSvnd_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << sslServerTrustPrompt(arg0, arg1, arg2, arg3, arg4, arg5, arg6 );
    } else if ( fun == KDevSvnd_ftable[2][1] ) { // TQString sslCertFile()
	replyType = KDevSvnd_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << sslCertFile( );
    } else if ( fun == KDevSvnd_ftable[3][1] ) { // TQString sslPasswdDlg(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevSvnd_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << sslPasswdDlg(arg0 );
    } else {
	return KDEDModule::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList KDevSvnd::interfaces()
{
    QCStringList ifaces = KDEDModule::interfaces();
    ifaces += "KDevSvnd";
    return ifaces;
}

QCStringList KDevSvnd::functions()
{
    QCStringList funcs = KDEDModule::functions();
    for ( int i = 0; KDevSvnd_ftable[i][2]; i++ ) {
	if (KDevSvnd_ftable_hiddens[i])
	    continue;
	TQCString func = KDevSvnd_ftable[i][0];
	func += ' ';
	func += KDevSvnd_ftable[i][2];
	funcs << func;
    }
    return funcs;
}


