/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from kdevdesignerintegrationiface.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/lib/interfaces/kdevdesignerintegrationiface.h"

#include <kdatastream.h>


static const char* const KDevDesignerIntegrationIface_ftable[6][3] = {
    { "void", "addFunction(TQString,TQString,TQString,TQString,TQString,uint)", "addFunction(TQString formName,TQString returnType,TQString function,TQString specifier,TQString access,uint type)" },
    { "void", "removeFunction(TQString,TQString,TQString,TQString,TQString,uint)", "removeFunction(TQString formName,TQString returnType,TQString function,TQString specifier,TQString access,uint type)" },
    { "void", "editFunction(TQString,TQString,TQString,TQString,TQString,uint,TQString,TQString,TQString,TQString,uint)", "editFunction(TQString formName,TQString oldReturnType,TQString oldFunction,TQString oldSpecifier,TQString oldAccess,uint oldType,TQString returnType,TQString function,TQString specifier,TQString access,uint type)" },
    { "void", "openFunction(TQString,TQString)", "openFunction(TQString formName,TQString functionName)" },
    { "void", "openSource(TQString)", "openSource(TQString formName)" },
    { 0, 0, 0 }
};
static const int KDevDesignerIntegrationIface_ftable_hiddens[5] = {
    0,
    0,
    0,
    0,
    0,
};

bool KDevDesignerIntegrationIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KDevDesignerIntegrationIface_ftable[0][1] ) { // void addFunction(TQString,TQString,TQString,TQString,TQString,uint)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	TQString arg3;
	TQString arg4;
	uint arg5;
	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;
	replyType = KDevDesignerIntegrationIface_ftable[0][0]; 
	addFunction(arg0, arg1, arg2, arg3, arg4, arg5 );
    } else if ( fun == KDevDesignerIntegrationIface_ftable[1][1] ) { // void removeFunction(TQString,TQString,TQString,TQString,TQString,uint)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	TQString arg3;
	TQString arg4;
	uint arg5;
	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;
	replyType = KDevDesignerIntegrationIface_ftable[1][0]; 
	removeFunction(arg0, arg1, arg2, arg3, arg4, arg5 );
    } else if ( fun == KDevDesignerIntegrationIface_ftable[2][1] ) { // void editFunction(TQString,TQString,TQString,TQString,TQString,uint,TQString,TQString,TQString,TQString,uint)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	TQString arg3;
	TQString arg4;
	uint arg5;
	TQString arg6;
	TQString arg7;
	TQString arg8;
	TQString arg9;
	uint arg10;
	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;
	replyType = KDevDesignerIntegrationIface_ftable[2][0]; 
	editFunction(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10 );
    } else if ( fun == KDevDesignerIntegrationIface_ftable[3][1] ) { // void openFunction(TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KDevDesignerIntegrationIface_ftable[3][0]; 
	openFunction(arg0, arg1 );
    } else if ( fun == KDevDesignerIntegrationIface_ftable[4][1] ) { // void openSource(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevDesignerIntegrationIface_ftable[4][0]; 
	openSource(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


