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

#include "/usr/src/ports/kdelibs3/kdelibs3-3.5.10-11.i686/src/kdelibs-3.5.10/kio/misc/uiserver.h"

#include <kdatastream.h>
#include <qasciidict.h>


static const int UIServer_fhash = 37;
static const char* const UIServer_ftable[35][3] = {
    { "int", "newJob(QCString,bool)", "newJob(QCString 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,KIO::filesize_t)", "totalSize64(int id,KIO::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,KIO::filesize_t)", "processedSize64(int id,KIO::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,QString)", "infoMessage(int id,QString 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,QString,QString)", "mounting(int id,QString dev,QString point)" },
    { "ASYNC", "unmounting(int,QString)", "unmounting(int id,QString point)" },
    { "ASYNC", "canResume(int,unsigned long int)", "canResume(int id,unsigned long int offset)" },
    { "ASYNC", "canResume64(int,KIO::filesize_t)", "canResume64(int id,KIO::filesize_t offset)" },
    { "QByteArray", "openPassDlg(KIO::AuthInfo)", "openPassDlg(KIO::AuthInfo info)" },
    { "int", "messageBox(int,int,QString,QString,QString,QString)", "messageBox(int id,int type,QString text,QString caption,QString buttonYes,QString buttonNo)" },
    { "QByteArray", "open_RenameDlg64(int,QString,QString,QString,int,KIO::filesize_t,KIO::filesize_t,unsigned long int,unsigned long int,unsigned long int,unsigned long int)", "open_RenameDlg64(int id,QString caption,QString src,QString dest,int mode,KIO::filesize_t sizeSrc,KIO::filesize_t sizeDest,unsigned long int ctimeSrc,unsigned long int ctimeDest,unsigned long int mtimeSrc,unsigned long int mtimeDest)" },
    { "QByteArray", "open_RenameDlg(int,QString,QString,QString,int,unsigned long int,unsigned long int,unsigned long int,unsigned long int,unsigned long int,unsigned long int)", "open_RenameDlg(int id,QString caption,QString src,QString 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,QString)", "open_SkipDlg(int id,int multi,QString error_text)" },
    { "void", "setListMode(bool)", "setListMode(bool list)" },
    { "void", "setJobVisible(int,bool)", "setJobVisible(int id,bool visible)" },
    { "void", "showSSLInfoDialog(QString,KIO::MetaData,int)", "showSSLInfoDialog(QString url,KIO::MetaData data,int mainwindow)" },
    { "void", "showSSLInfoDialog(QString,KIO::MetaData)", "showSSLInfoDialog(QString url,KIO::MetaData data)" },
    { "KSSLCertDlgRet", "showSSLCertDialog(QString,QStringList,int)", "showSSLCertDialog(QString host,QStringList certList,int mainwindow)" },
    { "KSSLCertDlgRet", "showSSLCertDialog(QString,QStringList)", "showSSLCertDialog(QString host,QStringList 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 QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    static QAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new QAsciiDict<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(QCString,bool)
	QCString arg0;
	bool arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[0][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << newJob(arg0, arg1 );
    } break;
    case 1: { // void jobFinished(int)
	int arg0;
	QDataStream 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;
	QDataStream 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,KIO::filesize_t)
	int arg0;
	KIO::filesize_t arg1;
	QDataStream 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;
	QDataStream 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;
	QDataStream 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;
	QDataStream 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,KIO::filesize_t)
	int arg0;
	KIO::filesize_t arg1;
	QDataStream 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;
	QDataStream 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;
	QDataStream 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;
	QDataStream 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;
	QDataStream 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,QString)
	int arg0;
	QString arg1;
	QDataStream 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;
	QDataStream 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;
	QDataStream 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;
	QDataStream 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;
	QDataStream 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;
	QDataStream 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;
	QDataStream 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,QString,QString)
	int arg0;
	QString arg1;
	QString arg2;
	QDataStream 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,QString)
	int arg0;
	QString arg1;
	QDataStream 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;
	QDataStream 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,KIO::filesize_t)
	int arg0;
	KIO::filesize_t arg1;
	QDataStream 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: { // QByteArray openPassDlg(KIO::AuthInfo)
	KIO::AuthInfo arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = UIServer_ftable[23][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << openPassDlg(arg0 );
    } break;
    case 24: { // int messageBox(int,int,QString,QString,QString,QString)
	int arg0;
	int arg1;
	QString arg2;
	QString arg3;
	QString arg4;
	QString arg5;
	QDataStream 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]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << messageBox(arg0, arg1, arg2, arg3, arg4, arg5 );
    } break;
    case 25: { // QByteArray open_RenameDlg64(int,QString,QString,QString,int,KIO::filesize_t,KIO::filesize_t,unsigned long int,unsigned long int,unsigned long int,unsigned long int)
	int arg0;
	QString arg1;
	QString arg2;
	QString arg3;
	int arg4;
	KIO::filesize_t arg5;
	KIO::filesize_t arg6;
	unsigned long int arg7;
	unsigned long int arg8;
	unsigned long int arg9;
	unsigned long int arg10;
	QDataStream 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]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << open_RenameDlg64(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10 );
    } break;
    case 26: { // QByteArray open_RenameDlg(int,QString,QString,QString,int,unsigned long int,unsigned long int,unsigned long int,unsigned long int,unsigned long int,unsigned long int)
	int arg0;
	QString arg1;
	QString arg2;
	QString 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;
	QDataStream 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]; 
	QDataStream _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,QString)
	int arg0;
	int arg1;
	QString arg2;
	QDataStream 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]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << open_SkipDlg(arg0, arg1, arg2 );
    } break;
    case 28: { // void setListMode(bool)
	bool arg0;
	QDataStream 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;
	QDataStream 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(QString,KIO::MetaData,int)
	QString arg0;
	KIO::MetaData arg1;
	int arg2;
	QDataStream 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(QString,KIO::MetaData)
	QString arg0;
	KIO::MetaData arg1;
	QDataStream 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(QString,QStringList,int)
	QString arg0;
	QStringList arg1;
	int arg2;
	QDataStream 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]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << showSSLCertDialog(arg0, arg1, arg2 );
    } break;
    case 33: { // KSSLCertDlgRet showSSLCertDialog(QString,QStringList)
	QString arg0;
	QStringList arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = UIServer_ftable[33][0]; 
	QDataStream _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;
	QCString func = UIServer_ftable[i][0];
	func += ' ';
	func += UIServer_ftable[i][2];
	funcs << func;
    }
    return funcs;
}


