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

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


static const int KDevDocumentationIface_fhash = 11;
static const char* const KDevDocumentationIface_ftable[11][3] = {
    { "void", "lookupInIndex(TQString)", "lookupInIndex(TQString term)" },
    { "void", "findInFinder(TQString)", "findInFinder(TQString term)" },
    { "void", "searchInDocumentation(TQString)", "searchInDocumentation(TQString term)" },
    { "void", "manPage(TQString)", "manPage(TQString term)" },
    { "void", "infoPage(TQString)", "infoPage(TQString term)" },
    { "void", "lookupInIndex()", "lookupInIndex()" },
    { "void", "findInFinder()", "findInFinder()" },
    { "void", "searchInDocumentation()", "searchInDocumentation()" },
    { "void", "manPage()", "manPage()" },
    { "void", "infoPage()", "infoPage()" },
    { 0, 0, 0 }
};
static const int KDevDocumentationIface_ftable_hiddens[10] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KDevDocumentationIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KDevDocumentationIface_fhash, true, false );
	for ( int i = 0; KDevDocumentationIface_ftable[i][1]; i++ )
	    fdict->insert( KDevDocumentationIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void lookupInIndex(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevDocumentationIface_ftable[0][0]; 
	lookupInIndex(arg0 );
    } break;
    case 1: { // void findInFinder(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevDocumentationIface_ftable[1][0]; 
	findInFinder(arg0 );
    } break;
    case 2: { // void searchInDocumentation(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevDocumentationIface_ftable[2][0]; 
	searchInDocumentation(arg0 );
    } break;
    case 3: { // void manPage(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevDocumentationIface_ftable[3][0]; 
	manPage(arg0 );
    } break;
    case 4: { // void infoPage(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevDocumentationIface_ftable[4][0]; 
	infoPage(arg0 );
    } break;
    case 5: { // void lookupInIndex()
	replyType = KDevDocumentationIface_ftable[5][0]; 
	lookupInIndex( );
    } break;
    case 6: { // void findInFinder()
	replyType = KDevDocumentationIface_ftable[6][0]; 
	findInFinder( );
    } break;
    case 7: { // void searchInDocumentation()
	replyType = KDevDocumentationIface_ftable[7][0]; 
	searchInDocumentation( );
    } break;
    case 8: { // void manPage()
	replyType = KDevDocumentationIface_ftable[8][0]; 
	manPage( );
    } break;
    case 9: { // void infoPage()
	replyType = KDevDocumentationIface_ftable[9][0]; 
	infoPage( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


