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

#include "/tmp/buildd/tde-packaging/arch/tde-core/tde-tdelibs/src/tdelibs-trinity-14.1.6/tdeio/misc/uiserver.h"

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


static const int UIServer_fhash = 37;
static const char* const UIServer_ftable[35][3] = {
    { "int", "newJob(TQCString,bool)", "newJob(TQCString appId,bool showProgress)" },
    { "ASYNC", "jobFinished(int)", "jobFinished(int id)" },
    { "ASYNC", "totalSize(int,unsigned long int)", "totalSize(int id,unsigned long int size)" },
    { "ASYNC", "totalSize64(int,TDEIO::filesize_t)", "totalSize64(int id,TDEIO::filesize_t size)" },
    { "ASYNC", "totalFiles(int,unsigned long int)", "totalFiles(int id,unsigned long int files)" },
    { "ASYNC", "totalDirs(int,unsigned long int)", "totalDirs(int id,unsigned long int dirs)" },
    { "ASYNC", "processedSize(int,unsigned long int)", "processedSize(int id,unsigned long int bytes)" },
    { "ASYNC", "processedSize64(int,TDEIO::filesize_t)", "processedSize64(int id,TDEIO::filesize_t bytes)" },
    { "ASYNC", "processedFiles(int,unsigned long int)", "processedFiles(int id,unsigned long int files)" },
    { "ASYNC", "processedDirs(int,unsigned long int)", "processedDirs(int id,unsigned long int dirs)" },
    { "ASYNC", "percent(int,unsigned long int)", "percent(int id,unsigned long int ipercent)" },
    { "ASYNC", "speed(int,unsigned long int)", "speed(int id,unsigned long int bytes_per_second)" },
    { "ASYNC", "infoMessage(int,TQString)", "infoMessage(int id,TQString msg)" },
    { "ASYNC", "copying(int,KURL,KURL)", "copying(int id,KURL from,KURL to)" },
    { "ASYNC", "moving(int,KURL,KURL)", "moving(int id,KURL from,KURL to)" },
    { "ASYNC", "deleting(int,KURL)", "deleting(int id,KURL url)" },
    { "ASYNC", "transferring(int,KURL)", "transferring(int id,KURL url)" },
    { "ASYNC", "creatingDir(int,KURL)", "creatingDir(int id,KURL dir)" },
    { "ASYNC", "stating(int,KURL)", "stating(int id,KURL url)" },
    { "ASYNC", "mounting(int,TQString,TQString)", "mounting(int id,TQString dev,TQString point)" },
    { "ASYNC", "unmounting(int,TQString)", "unmounting(int id,TQString point)" },
    { "ASYNC", "canResume(int,unsigned long int)", "canResume(int id,unsigned long int offset)" },
    { "ASYNC", "canResume64(int,TDEIO::filesize_t)", "canResume64(int id,TDEIO::filesize_t offset)" },
    { "TQByteArray", "openPassDlg(TDEIO::AuthInfo)", "openPassDlg(TDEIO::AuthInfo info)" },
    { "int", "messageBox(int,int,TQString,TQString,TQString,TQString)", "messageBox(int id,int type,TQString text,TQString caption,TQString buttonYes,TQString buttonNo)" },
    { "TQByteArray", "open_RenameDlg64(int,TQString,TQString,TQString,int,TDEIO::filesize_t,TDEIO::filesize_t,unsigned long int,unsigned long int,unsigned long int,unsigned long int)", "open_RenameDlg64(int id,TQString caption,TQString src,TQString dest,int mode,TDEIO::filesize_t sizeSrc,TDEIO::filesize_t sizeDest,unsigned long int ctimeSrc,unsigned long int ctimeDest,unsigned long int mtimeSrc,unsigned long int mtimeDest)" },
    { "TQByteArray", "open_RenameDlg(int,TQString,TQString,TQString,int,unsigned long int,unsigned long int,unsigned long int,unsigned long int,unsigned long int,unsigned long int)", "open_RenameDlg(int id,TQString caption,TQString src,TQString dest,int mode,unsigned long int sizeSrc,unsigned long int sizeDest,unsigned long int ctimeSrc,unsigned long int ctimeDest,unsigned long int mtimeSrc,unsigned long int mtimeDest)" },
    { "int", "open_SkipDlg(int,int,TQString)", "open_SkipDlg(int id,int multi,TQString error_text)" },
    { "void", "setListMode(bool)", "setListMode(bool list)" },
    { "void", "setJobVisible(int,bool)", "setJobVisible(int id,bool visible)" },
    { "void", "showSSLInfoDialog(TQString,TDEIO::MetaData,int)", "showSSLInfoDialog(TQString url,TDEIO::MetaData data,int mainwindow)" },
    { "void", "showSSLInfoDialog(TQString,TDEIO::MetaData)", "showSSLInfoDialog(TQString url,TDEIO::MetaData data)" },
    { "KSSLCertDlgRet", "showSSLCertDialog(TQString,TQStringList,int)", "showSSLCertDialog(TQString host,TQStringList certList,int mainwindow)" },
    { "KSSLCertDlgRet", "showSSLCertDialog(TQString,TQStringList)", "showSSLCertDialog(TQString host,TQStringList certList)" },
    { 0, 0, 0 }
};
static const int UIServer_ftable_hiddens[34] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool UIServer::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( UIServer_fhash, true, false );
	for ( int i = 0; UIServer_ftable[i][1]; i++ )
	    fdict->insert( UIServer_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // int newJob(TQCString,bool)
	TQCString arg0;
	bool arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << newJob(arg0, arg1 );
    } break;
    case 1: { // void jobFinished(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = UIServer_ftable[1][0]; 
	jobFinished(arg0 );
    } break;
    case 2: { // void totalSize(int,unsigned long int)
	int arg0;
	unsigned long int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[2][0]; 
	totalSize(arg0, arg1 );
    } break;
    case 3: { // void totalSize64(int,TDEIO::filesize_t)
	int arg0;
	TDEIO::filesize_t arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[3][0]; 
	totalSize64(arg0, arg1 );
    } break;
    case 4: { // void totalFiles(int,unsigned long int)
	int arg0;
	unsigned long int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[4][0]; 
	totalFiles(arg0, arg1 );
    } break;
    case 5: { // void totalDirs(int,unsigned long int)
	int arg0;
	unsigned long int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[5][0]; 
	totalDirs(arg0, arg1 );
    } break;
    case 6: { // void processedSize(int,unsigned long int)
	int arg0;
	unsigned long int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[6][0]; 
	processedSize(arg0, arg1 );
    } break;
    case 7: { // void processedSize64(int,TDEIO::filesize_t)
	int arg0;
	TDEIO::filesize_t arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[7][0]; 
	processedSize64(arg0, arg1 );
    } break;
    case 8: { // void processedFiles(int,unsigned long int)
	int arg0;
	unsigned long int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[8][0]; 
	processedFiles(arg0, arg1 );
    } break;
    case 9: { // void processedDirs(int,unsigned long int)
	int arg0;
	unsigned long int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[9][0]; 
	processedDirs(arg0, arg1 );
    } break;
    case 10: { // void percent(int,unsigned long int)
	int arg0;
	unsigned long int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[10][0]; 
	percent(arg0, arg1 );
    } break;
    case 11: { // void speed(int,unsigned long int)
	int arg0;
	unsigned long int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[11][0]; 
	speed(arg0, arg1 );
    } break;
    case 12: { // void infoMessage(int,TQString)
	int arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[12][0]; 
	infoMessage(arg0, arg1 );
    } break;
    case 13: { // void copying(int,KURL,KURL)
	int arg0;
	KURL arg1;
	KURL 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 = UIServer_ftable[13][0]; 
	copying(arg0, arg1, arg2 );
    } break;
    case 14: { // void moving(int,KURL,KURL)
	int arg0;
	KURL arg1;
	KURL 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 = UIServer_ftable[14][0]; 
	moving(arg0, arg1, arg2 );
    } break;
    case 15: { // void deleting(int,KURL)
	int arg0;
	KURL arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[15][0]; 
	deleting(arg0, arg1 );
    } break;
    case 16: { // void transferring(int,KURL)
	int arg0;
	KURL arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[16][0]; 
	transferring(arg0, arg1 );
    } break;
    case 17: { // void creatingDir(int,KURL)
	int arg0;
	KURL arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[17][0]; 
	creatingDir(arg0, arg1 );
    } break;
    case 18: { // void stating(int,KURL)
	int arg0;
	KURL arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[18][0]; 
	stating(arg0, arg1 );
    } break;
    case 19: { // void mounting(int,TQString,TQString)
	int 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 = UIServer_ftable[19][0]; 
	mounting(arg0, arg1, arg2 );
    } break;
    case 20: { // void unmounting(int,TQString)
	int arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[20][0]; 
	unmounting(arg0, arg1 );
    } break;
    case 21: { // void canResume(int,unsigned long int)
	int arg0;
	unsigned long int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[21][0]; 
	canResume(arg0, arg1 );
    } break;
    case 22: { // void canResume64(int,TDEIO::filesize_t)
	int arg0;
	TDEIO::filesize_t arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[22][0]; 
	canResume64(arg0, arg1 );
    } break;
    case 23: { // TQByteArray openPassDlg(TDEIO::AuthInfo)
	TDEIO::AuthInfo arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = UIServer_ftable[23][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << openPassDlg(arg0 );
    } break;
    case 24: { // int messageBox(int,int,TQString,TQString,TQString,TQString)
	int arg0;
	int arg1;
	TQString arg2;
	TQString arg3;
	TQString arg4;
	TQString 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 = UIServer_ftable[24][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << messageBox(arg0, arg1, arg2, arg3, arg4, arg5 );
    } break;
    case 25: { // TQByteArray open_RenameDlg64(int,TQString,TQString,TQString,int,TDEIO::filesize_t,TDEIO::filesize_t,unsigned long int,unsigned long int,unsigned long int,unsigned long int)
	int arg0;
	TQString arg1;
	TQString arg2;
	TQString arg3;
	int arg4;
	TDEIO::filesize_t arg5;
	TDEIO::filesize_t arg6;
	unsigned long int arg7;
	unsigned long int arg8;
	unsigned long int arg9;
	unsigned long int 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 = UIServer_ftable[25][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << open_RenameDlg64(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10 );
    } break;
    case 26: { // TQByteArray open_RenameDlg(int,TQString,TQString,TQString,int,unsigned long int,unsigned long int,unsigned long int,unsigned long int,unsigned long int,unsigned long int)
	int arg0;
	TQString arg1;
	TQString arg2;
	TQString arg3;
	int arg4;
	unsigned long int arg5;
	unsigned long int arg6;
	unsigned long int arg7;
	unsigned long int arg8;
	unsigned long int arg9;
	unsigned long int 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 = UIServer_ftable[26][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << open_RenameDlg(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10 );
    } break;
    case 27: { // int open_SkipDlg(int,int,TQString)
	int arg0;
	int 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 = UIServer_ftable[27][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << open_SkipDlg(arg0, arg1, arg2 );
    } break;
    case 28: { // void setListMode(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = UIServer_ftable[28][0]; 
	setListMode(arg0 );
    } break;
    case 29: { // void setJobVisible(int,bool)
	int arg0;
	bool arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[29][0]; 
	setJobVisible(arg0, arg1 );
    } break;
    case 30: { // void showSSLInfoDialog(TQString,TDEIO::MetaData,int)
	TQString arg0;
	TDEIO::MetaData arg1;
	int 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 = UIServer_ftable[30][0]; 
	showSSLInfoDialog(arg0, arg1, arg2 );
    } break;
    case 31: { // void showSSLInfoDialog(TQString,TDEIO::MetaData)
	TQString arg0;
	TDEIO::MetaData arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[31][0]; 
	showSSLInfoDialog(arg0, arg1 );
    } break;
    case 32: { // KSSLCertDlgRet showSSLCertDialog(TQString,TQStringList,int)
	TQString arg0;
	TQStringList arg1;
	int 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 = UIServer_ftable[32][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << showSSLCertDialog(arg0, arg1, arg2 );
    } break;
    case 33: { // KSSLCertDlgRet showSSLCertDialog(TQString,TQStringList)
	TQString arg0;
	TQStringList arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[33][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << showSSLCertDialog(arg0, arg1 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


