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

#include <kdatastream.h>


static const char* const KBabelDictIFace_ftable[7][3] = {
    { "TQStringList", "modules()", "modules()" },
    { "ASYNC", "setActiveModule(TQString)", "setActiveModule(TQString modulename)" },
    { "ASYNC", "startSearch(TQString)", "startSearch(TQString searchstring)" },
    { "ASYNC", "stopSearch()", "stopSearch()" },
    { "ASYNC", "nextResult()", "nextResult()" },
    { "ASYNC", "prevResult()", "prevResult()" },
    { 0, 0, 0 }
};
static const int KBabelDictIFace_ftable_hiddens[6] = {
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KBabelDictIFace::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KBabelDictIFace_ftable[0][1] ) { // TQStringList modules()
	replyType = KBabelDictIFace_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << modules( );
    } else if ( fun == KBabelDictIFace_ftable[1][1] ) { // void setActiveModule(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KBabelDictIFace_ftable[1][0]; 
	setActiveModule(arg0 );
    } else if ( fun == KBabelDictIFace_ftable[2][1] ) { // void startSearch(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KBabelDictIFace_ftable[2][0]; 
	startSearch(arg0 );
    } else if ( fun == KBabelDictIFace_ftable[3][1] ) { // void stopSearch()
	replyType = KBabelDictIFace_ftable[3][0]; 
	stopSearch( );
    } else if ( fun == KBabelDictIFace_ftable[4][1] ) { // void nextResult()
	replyType = KBabelDictIFace_ftable[4][0]; 
	nextResult( );
    } else if ( fun == KBabelDictIFace_ftable[5][1] ) { // void prevResult()
	replyType = KBabelDictIFace_ftable[5][0]; 
	prevResult( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


