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

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


static const int KBabelIface_fhash = 13;
static const char* const KBabelIface_ftable[13][3] = {
    { "void", "openURL(TQCString,TQCString,WId,int)", "openURL(TQCString url,TQCString package,WId window,int newWindow)" },
    { "void", "openURL(TQCString,TQCString,WId,int,TQCString)", "openURL(TQCString url,TQCString package,WId window,int newWindow,TQCString projectFile)" },
    { "void", "openTemplate(TQCString,TQCString,TQCString,int)", "openTemplate(TQCString openFilename,TQCString package,TQCString saveFilename,int newWindow)" },
    { "void", "openTemplate(TQCString,TQCString,TQCString,int,TQCString)", "openTemplate(TQCString openFilename,TQCString package,TQCString saveFilename,int newWindow,TQCString projectFile)" },
    { "void", "gotoFileEntry(TQCString,TQCString)", "gotoFileEntry(TQCString url,TQCString msgid)" },
    { "void", "gotoFileEntry(TQCString,TQCString,int)", "gotoFileEntry(TQCString url,TQCString package,int msgid)" },
    { "void", "gotoFileEntry(TQCString,TQCString,int,TQCString)", "gotoFileEntry(TQCString url,TQCString package,int msgid,TQCString projectFile)" },
    { "bool", "findInFile(TQCString,TQCString,TQString,int,int,int,int,int,int,int,int,int,int)", "findInFile(TQCString fileSource,TQCString url,TQString findStr,int caseSensitive,int wholeWords,int isRegExp,int inMsgid,int inMsgstr,int inComment,int ignoreAccelMarker,int ignoreContextInfo,int askForNextFile,int askForSave)" },
    { "bool", "replaceInFile(TQCString,TQCString,TQString,TQString,int,int,int,int,int,int,int,int,int,int,int)", "replaceInFile(TQCString fileSource,TQCString url,TQString findStr,TQString replaceStr,int caseSensitive,int wholeWords,int isRegExp,int inMsgid,int inMsgstr,int inComment,int ignoreAccelMarker,int ignoreContextInfo,int ask,int askForNextFile,int askForSave)" },
    { "bool", "findInFile(TQCString,TQCString,TQString,int,int,int,int,int,int,int,int,int,int,TQCString)", "findInFile(TQCString fileSource,TQCString url,TQString findStr,int caseSensitive,int wholeWords,int isRegExp,int inMsgid,int inMsgstr,int inComment,int ignoreAccelMarker,int ignoreContextInfo,int askForNextFile,int askForSave,TQCString project)" },
    { "bool", "replaceInFile(TQCString,TQCString,TQString,TQString,int,int,int,int,int,int,int,int,int,int,int,TQCString)", "replaceInFile(TQCString fileSource,TQCString url,TQString findStr,TQString replaceStr,int caseSensitive,int wholeWords,int isRegExp,int inMsgid,int inMsgstr,int inComment,int ignoreAccelMarker,int ignoreContextInfo,int ask,int askForNextFile,int askForSave,TQCString project)" },
    { "void", "spellcheck(TQStringList)", "spellcheck(TQStringList fileList)" },
    { 0, 0, 0 }
};
static const int KBabelIface_ftable_hiddens[12] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KBabelIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KBabelIface_fhash, true, false );
	for ( int i = 0; KBabelIface_ftable[i][1]; i++ )
	    fdict->insert( KBabelIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void openURL(TQCString,TQCString,WId,int)
	TQCString arg0;
	TQCString arg1;
	WId arg2;
	int arg3;
	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;
	replyType = KBabelIface_ftable[0][0]; 
	openURL(arg0, arg1, arg2, arg3 );
    } break;
    case 1: { // void openURL(TQCString,TQCString,WId,int,TQCString)
	TQCString arg0;
	TQCString arg1;
	WId arg2;
	int arg3;
	TQCString arg4;
	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;
	replyType = KBabelIface_ftable[1][0]; 
	openURL(arg0, arg1, arg2, arg3, arg4 );
    } break;
    case 2: { // void openTemplate(TQCString,TQCString,TQCString,int)
	TQCString arg0;
	TQCString arg1;
	TQCString arg2;
	int arg3;
	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;
	replyType = KBabelIface_ftable[2][0]; 
	openTemplate(arg0, arg1, arg2, arg3 );
    } break;
    case 3: { // void openTemplate(TQCString,TQCString,TQCString,int,TQCString)
	TQCString arg0;
	TQCString arg1;
	TQCString arg2;
	int arg3;
	TQCString arg4;
	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;
	replyType = KBabelIface_ftable[3][0]; 
	openTemplate(arg0, arg1, arg2, arg3, arg4 );
    } break;
    case 4: { // void gotoFileEntry(TQCString,TQCString)
	TQCString arg0;
	TQCString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KBabelIface_ftable[4][0]; 
	gotoFileEntry(arg0, arg1 );
    } break;
    case 5: { // void gotoFileEntry(TQCString,TQCString,int)
	TQCString arg0;
	TQCString arg1;
	int arg2;
	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;
	replyType = KBabelIface_ftable[5][0]; 
	gotoFileEntry(arg0, arg1, arg2 );
    } break;
    case 6: { // void gotoFileEntry(TQCString,TQCString,int,TQCString)
	TQCString arg0;
	TQCString arg1;
	int arg2;
	TQCString arg3;
	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;
	replyType = KBabelIface_ftable[6][0]; 
	gotoFileEntry(arg0, arg1, arg2, arg3 );
    } break;
    case 7: { // bool findInFile(TQCString,TQCString,TQString,int,int,int,int,int,int,int,int,int,int)
	TQCString arg0;
	TQCString arg1;
	TQString arg2;
	int arg3;
	int arg4;
	int arg5;
	int arg6;
	int arg7;
	int arg8;
	int arg9;
	int arg10;
	int arg11;
	int arg12;
	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;
	if (arg.atEnd()) return false;
	arg >> arg7;
	if (arg.atEnd()) return false;
	arg >> arg8;
	if (arg.atEnd()) return false;
	arg >> arg9;
	if (arg.atEnd()) return false;
	arg >> arg10;
	if (arg.atEnd()) return false;
	arg >> arg11;
	if (arg.atEnd()) return false;
	arg >> arg12;
	replyType = KBabelIface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << findInFile(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12 );
    } break;
    case 8: { // bool replaceInFile(TQCString,TQCString,TQString,TQString,int,int,int,int,int,int,int,int,int,int,int)
	TQCString arg0;
	TQCString arg1;
	TQString arg2;
	TQString arg3;
	int arg4;
	int arg5;
	int arg6;
	int arg7;
	int arg8;
	int arg9;
	int arg10;
	int arg11;
	int arg12;
	int arg13;
	int arg14;
	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;
	if (arg.atEnd()) return false;
	arg >> arg7;
	if (arg.atEnd()) return false;
	arg >> arg8;
	if (arg.atEnd()) return false;
	arg >> arg9;
	if (arg.atEnd()) return false;
	arg >> arg10;
	if (arg.atEnd()) return false;
	arg >> arg11;
	if (arg.atEnd()) return false;
	arg >> arg12;
	if (arg.atEnd()) return false;
	arg >> arg13;
	if (arg.atEnd()) return false;
	arg >> arg14;
	replyType = KBabelIface_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << replaceInFile(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14 );
    } break;
    case 9: { // bool findInFile(TQCString,TQCString,TQString,int,int,int,int,int,int,int,int,int,int,TQCString)
	TQCString arg0;
	TQCString arg1;
	TQString arg2;
	int arg3;
	int arg4;
	int arg5;
	int arg6;
	int arg7;
	int arg8;
	int arg9;
	int arg10;
	int arg11;
	int arg12;
	TQCString arg13;
	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;
	if (arg.atEnd()) return false;
	arg >> arg7;
	if (arg.atEnd()) return false;
	arg >> arg8;
	if (arg.atEnd()) return false;
	arg >> arg9;
	if (arg.atEnd()) return false;
	arg >> arg10;
	if (arg.atEnd()) return false;
	arg >> arg11;
	if (arg.atEnd()) return false;
	arg >> arg12;
	if (arg.atEnd()) return false;
	arg >> arg13;
	replyType = KBabelIface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << findInFile(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13 );
    } break;
    case 10: { // bool replaceInFile(TQCString,TQCString,TQString,TQString,int,int,int,int,int,int,int,int,int,int,int,TQCString)
	TQCString arg0;
	TQCString arg1;
	TQString arg2;
	TQString arg3;
	int arg4;
	int arg5;
	int arg6;
	int arg7;
	int arg8;
	int arg9;
	int arg10;
	int arg11;
	int arg12;
	int arg13;
	int arg14;
	TQCString arg15;
	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;
	if (arg.atEnd()) return false;
	arg >> arg7;
	if (arg.atEnd()) return false;
	arg >> arg8;
	if (arg.atEnd()) return false;
	arg >> arg9;
	if (arg.atEnd()) return false;
	arg >> arg10;
	if (arg.atEnd()) return false;
	arg >> arg11;
	if (arg.atEnd()) return false;
	arg >> arg12;
	if (arg.atEnd()) return false;
	arg >> arg13;
	if (arg.atEnd()) return false;
	arg >> arg14;
	if (arg.atEnd()) return false;
	arg >> arg15;
	replyType = KBabelIface_ftable[10][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << replaceInFile(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15 );
    } break;
    case 11: { // void spellcheck(TQStringList)
	TQStringList arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KBabelIface_ftable[11][0]; 
	spellcheck(arg0 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


