/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from progressdialogiface.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/kdialog/progressdialogiface.h"

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


static const int ProgressDialogIface_fhash = 13;
static const char* const ProgressDialogIface_ftable[12][3] = {
    { "void", "setTotalSteps(int)", "setTotalSteps(int)" },
    { "int", "totalSteps()", "totalSteps()" },
    { "void", "setProgress(int)", "setProgress(int)" },
    { "int", "progress()", "progress()" },
    { "void", "setLabel(TQString)", "setLabel(TQString)" },
    { "void", "showCancelButton(bool)", "showCancelButton(bool)" },
    { "bool", "wasCancelled()", "wasCancelled()" },
    { "void", "ignoreCancel()", "ignoreCancel()" },
    { "void", "setAutoClose(bool)", "setAutoClose(bool)" },
    { "bool", "autoClose()", "autoClose()" },
    { "void", "close()", "close()" },
    { 0, 0, 0 }
};
static const int ProgressDialogIface_ftable_hiddens[11] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool ProgressDialogIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( ProgressDialogIface_fhash, true, false );
	for ( int i = 0; ProgressDialogIface_ftable[i][1]; i++ )
	    fdict->insert( ProgressDialogIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void setTotalSteps(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = ProgressDialogIface_ftable[0][0]; 
	setTotalSteps(arg0 );
    } break;
    case 1: { // int totalSteps()
	replyType = ProgressDialogIface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << totalSteps( );
    } break;
    case 2: { // void setProgress(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = ProgressDialogIface_ftable[2][0]; 
	setProgress(arg0 );
    } break;
    case 3: { // int progress()
	replyType = ProgressDialogIface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << progress( );
    } break;
    case 4: { // void setLabel(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = ProgressDialogIface_ftable[4][0]; 
	setLabel(arg0 );
    } break;
    case 5: { // void showCancelButton(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = ProgressDialogIface_ftable[5][0]; 
	showCancelButton(arg0 );
    } break;
    case 6: { // bool wasCancelled()
	replyType = ProgressDialogIface_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << wasCancelled( );
    } break;
    case 7: { // void ignoreCancel()
	replyType = ProgressDialogIface_ftable[7][0]; 
	ignoreCancel( );
    } break;
    case 8: { // void setAutoClose(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = ProgressDialogIface_ftable[8][0]; 
	setAutoClose(arg0 );
    } break;
    case 9: { // bool autoClose()
	replyType = ProgressDialogIface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << autoClose( );
    } break;
    case 10: { // void close()
	replyType = ProgressDialogIface_ftable[10][0]; 
	close( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


