/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from kmplotIface.kidl
**
** WARNING! All changes made in this file will be lost!
**
*****************************************************************************/

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-tdeedu/src/tdeedu-trinity-14.1.6/kmplot/kmplot/kmplotIface.h"

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


static const int KmPlotIface_fhash = 11;
static const char* const KmPlotIface_ftable[10][3] = {
    { "void", "fileOpen()", "fileOpen()" },
    { "void", "setStatusBarText(TQString,int)", "setStatusBarText(TQString text,int id)" },
    { "void", "optionsConfigureKeys()", "optionsConfigureKeys()" },
    { "void", "optionsConfigureToolbars()", "optionsConfigureToolbars()" },
    { "void", "openFileInNewWindow(KURL)", "openFileInNewWindow(KURL url)" },
    { "bool", "stopProgressBar()", "stopProgressBar()" },
    { "void", "startProgressBar(int)", "startProgressBar(int)" },
    { "void", "increaseProgressBar()", "increaseProgressBar()" },
    { "void", "fileOpen(KURL)", "fileOpen(KURL url)" },
    { 0, 0, 0 }
};
static const int KmPlotIface_ftable_hiddens[9] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KmPlotIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KmPlotIface_fhash, true, false );
	for ( int i = 0; KmPlotIface_ftable[i][1]; i++ )
	    fdict->insert( KmPlotIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void fileOpen()
	replyType = KmPlotIface_ftable[0][0]; 
	fileOpen( );
    } break;
    case 1: { // void setStatusBarText(TQString,int)
	TQString arg0;
	int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KmPlotIface_ftable[1][0]; 
	setStatusBarText(arg0, arg1 );
    } break;
    case 2: { // void optionsConfigureKeys()
	replyType = KmPlotIface_ftable[2][0]; 
	optionsConfigureKeys( );
    } break;
    case 3: { // void optionsConfigureToolbars()
	replyType = KmPlotIface_ftable[3][0]; 
	optionsConfigureToolbars( );
    } break;
    case 4: { // void openFileInNewWindow(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KmPlotIface_ftable[4][0]; 
	openFileInNewWindow(arg0 );
    } break;
    case 5: { // bool stopProgressBar()
	replyType = KmPlotIface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << stopProgressBar( );
    } break;
    case 6: { // void startProgressBar(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KmPlotIface_ftable[6][0]; 
	startProgressBar(arg0 );
    } break;
    case 7: { // void increaseProgressBar()
	replyType = KmPlotIface_ftable[7][0]; 
	increaseProgressBar( );
    } break;
    case 8: { // void fileOpen(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KmPlotIface_ftable[8][0]; 
	fileOpen(arg0 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


