/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from KDevAppFrontendIface.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/extensions/dcop/KDevAppFrontendIface.h"

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


static const int KDevAppFrontendIface_fhash = 11;
static const char* const KDevAppFrontendIface_ftable[9][3] = {
    { "void", "startAppCommand(TQString,TQString,bool)", "startAppCommand(TQString directory,TQString command,bool inTerminal)" },
    { "void", "stopApplication()", "stopApplication()" },
    { "bool", "isRunning()", "isRunning()" },
    { "void", "clearView()", "clearView()" },
    { "void", "insertStderrLine(TQCString)", "insertStderrLine(TQCString line)" },
    { "void", "insertStdoutLine(TQCString)", "insertStdoutLine(TQCString line)" },
    { "void", "addPartialStderrLine(TQCString)", "addPartialStderrLine(TQCString line)" },
    { "void", "addPartialStdoutLine(TQCString)", "addPartialStdoutLine(TQCString line)" },
    { 0, 0, 0 }
};
static const int KDevAppFrontendIface_ftable_hiddens[8] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KDevAppFrontendIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KDevAppFrontendIface_fhash, true, false );
	for ( int i = 0; KDevAppFrontendIface_ftable[i][1]; i++ )
	    fdict->insert( KDevAppFrontendIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void startAppCommand(TQString,TQString,bool)
	TQString arg0;
	TQString arg1;
	bool 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 = KDevAppFrontendIface_ftable[0][0]; 
	startAppCommand(arg0, arg1, arg2 );
    } break;
    case 1: { // void stopApplication()
	replyType = KDevAppFrontendIface_ftable[1][0]; 
	stopApplication( );
    } break;
    case 2: { // bool isRunning()
	replyType = KDevAppFrontendIface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isRunning( );
    } break;
    case 3: { // void clearView()
	replyType = KDevAppFrontendIface_ftable[3][0]; 
	clearView( );
    } break;
    case 4: { // void insertStderrLine(TQCString)
	TQCString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevAppFrontendIface_ftable[4][0]; 
	insertStderrLine(arg0 );
    } break;
    case 5: { // void insertStdoutLine(TQCString)
	TQCString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevAppFrontendIface_ftable[5][0]; 
	insertStdoutLine(arg0 );
    } break;
    case 6: { // void addPartialStderrLine(TQCString)
	TQCString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevAppFrontendIface_ftable[6][0]; 
	addPartialStderrLine(arg0 );
    } break;
    case 7: { // void addPartialStdoutLine(TQCString)
	TQCString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevAppFrontendIface_ftable[7][0]; 
	addPartialStdoutLine(arg0 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


