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

#include <kdatastream.h>
#include <tqasciidict.h>


static const int KSvnd_fhash = 11;
static const char* const KSvnd_ftable[10][3] = {
    { "TQString", "commitDialog(TQString)", "commitDialog(TQString)" },
    { "bool", "anyNotValidWorkingCopy(KURL::List)", "anyNotValidWorkingCopy(KURL::List wclist)" },
    { "bool", "anyValidWorkingCopy(KURL::List)", "anyValidWorkingCopy(KURL::List wclist)" },
    { "bool", "AreAnyFilesNotInSvn(KURL::List)", "AreAnyFilesNotInSvn(KURL::List wclist)" },
    { "bool", "AreAnyFilesInSvn(KURL::List)", "AreAnyFilesInSvn(KURL::List wclist)" },
    { "bool", "AreAllFilesNotInSvn(KURL::List)", "AreAllFilesNotInSvn(KURL::List wclist)" },
    { "bool", "AreAllFilesInSvn(KURL::List)", "AreAllFilesInSvn(KURL::List wclist)" },
    { "TQStringList", "getActionMenu(KURL::List)", "getActionMenu(KURL::List list)" },
    { "TQStringList", "getTopLevelActionMenu(KURL::List)", "getTopLevelActionMenu(KURL::List list)" },
    { 0, 0, 0 }
};
static const int KSvnd_ftable_hiddens[9] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KSvnd::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KSvnd_fhash, true, false );
	for ( int i = 0; KSvnd_ftable[i][1]; i++ )
	    fdict->insert( KSvnd_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // TQString commitDialog(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSvnd_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << commitDialog(arg0 );
    } break;
    case 1: { // bool anyNotValidWorkingCopy(KURL::List)
	KURL::List arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSvnd_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << anyNotValidWorkingCopy(arg0 );
    } break;
    case 2: { // bool anyValidWorkingCopy(KURL::List)
	KURL::List arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSvnd_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << anyValidWorkingCopy(arg0 );
    } break;
    case 3: { // bool AreAnyFilesNotInSvn(KURL::List)
	KURL::List arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSvnd_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << AreAnyFilesNotInSvn(arg0 );
    } break;
    case 4: { // bool AreAnyFilesInSvn(KURL::List)
	KURL::List arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSvnd_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << AreAnyFilesInSvn(arg0 );
    } break;
    case 5: { // bool AreAllFilesNotInSvn(KURL::List)
	KURL::List arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSvnd_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << AreAllFilesNotInSvn(arg0 );
    } break;
    case 6: { // bool AreAllFilesInSvn(KURL::List)
	KURL::List arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSvnd_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << AreAllFilesInSvn(arg0 );
    } break;
    case 7: { // TQStringList getActionMenu(KURL::List)
	KURL::List arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSvnd_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getActionMenu(arg0 );
    } break;
    case 8: { // TQStringList getTopLevelActionMenu(KURL::List)
	KURL::List arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSvnd_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getTopLevelActionMenu(arg0 );
    } break;
    default: 
	return KDEDModule::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


