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

#include "/tmp/buildd/tde-packaging/arch/tde-core/tde-tdebase/src/tdebase-trinity-14.1.6/ksplashml/ksplashiface.h"

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


static const int KSplashIface_fhash = 11;
static const char* const KSplashIface_ftable[10][3] = {
    { "ASYNC", "upAndRunning(TQString)", "upAndRunning(TQString)" },
    { "ASYNC", "setMaxProgress(int)", "setMaxProgress(int)" },
    { "ASYNC", "setProgress(int)", "setProgress(int)" },
    { "ASYNC", "setStartupItemCount(int)", "setStartupItemCount(int count)" },
    { "ASYNC", "programStarted(TQString,TQString,TQString)", "programStarted(TQString programIcon,TQString programName,TQString description)" },
    { "ASYNC", "startupComplete()", "startupComplete()" },
    { "ASYNC", "close()", "close()" },
    { "ASYNC", "hide()", "hide()" },
    { "ASYNC", "show()", "show()" },
    { 0, 0, 0 }
};
static const int KSplashIface_ftable_hiddens[9] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KSplashIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KSplashIface_fhash, true, false );
	for ( int i = 0; KSplashIface_ftable[i][1]; i++ )
	    fdict->insert( KSplashIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void upAndRunning(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSplashIface_ftable[0][0]; 
	upAndRunning(arg0 );
    } break;
    case 1: { // void setMaxProgress(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSplashIface_ftable[1][0]; 
	setMaxProgress(arg0 );
    } break;
    case 2: { // void setProgress(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSplashIface_ftable[2][0]; 
	setProgress(arg0 );
    } break;
    case 3: { // void setStartupItemCount(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSplashIface_ftable[3][0]; 
	setStartupItemCount(arg0 );
    } break;
    case 4: { // void programStarted(TQString,TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQString 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 = KSplashIface_ftable[4][0]; 
	programStarted(arg0, arg1, arg2 );
    } break;
    case 5: { // void startupComplete()
	replyType = KSplashIface_ftable[5][0]; 
	startupComplete( );
    } break;
    case 6: { // void close()
	replyType = KSplashIface_ftable[6][0]; 
	close( );
    } break;
    case 7: { // void hide()
	replyType = KSplashIface_ftable[7][0]; 
	hide( );
    } break;
    case 8: { // void show()
	replyType = KSplashIface_ftable[8][0]; 
	show( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


