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

#include <kdatastream.h>


static const char* const KPasswdServer_ftable[6][3] = {
    { "KIO::AuthInfo", "checkAuthInfo(KIO::AuthInfo,long int,unsigned long int)", "checkAuthInfo(KIO::AuthInfo,long int,unsigned long int)" },
    { "KIO::AuthInfo", "checkAuthInfo(KIO::AuthInfo,long int)", "checkAuthInfo(KIO::AuthInfo,long int)" },
    { "KIO::AuthInfo", "queryAuthInfo(KIO::AuthInfo,QString,long int,long int,unsigned long int)", "queryAuthInfo(KIO::AuthInfo,QString,long int,long int,unsigned long int)" },
    { "KIO::AuthInfo", "queryAuthInfo(KIO::AuthInfo,QString,long int,long int)", "queryAuthInfo(KIO::AuthInfo,QString,long int,long int)" },
    { "void", "addAuthInfo(KIO::AuthInfo,long int)", "addAuthInfo(KIO::AuthInfo,long int)" },
    { 0, 0, 0 }
};
static const int KPasswdServer_ftable_hiddens[5] = {
    0,
    0,
    0,
    0,
    0,
};

bool KPasswdServer::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    if ( fun == KPasswdServer_ftable[0][1] ) { // KIO::AuthInfo checkAuthInfo(KIO::AuthInfo,long int,unsigned long int)
	KIO::AuthInfo arg0;
	long int arg1;
	unsigned long 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 = KPasswdServer_ftable[0][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << checkAuthInfo(arg0, arg1, arg2 );
    } else if ( fun == KPasswdServer_ftable[1][1] ) { // KIO::AuthInfo checkAuthInfo(KIO::AuthInfo,long int)
	KIO::AuthInfo arg0;
	long int arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KPasswdServer_ftable[1][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << checkAuthInfo(arg0, arg1 );
    } else if ( fun == KPasswdServer_ftable[2][1] ) { // KIO::AuthInfo queryAuthInfo(KIO::AuthInfo,QString,long int,long int,unsigned long int)
	KIO::AuthInfo arg0;
	QString arg1;
	long int arg2;
	long int arg3;
	unsigned long int arg4;
	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;
	replyType = KPasswdServer_ftable[2][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << queryAuthInfo(arg0, arg1, arg2, arg3, arg4 );
    } else if ( fun == KPasswdServer_ftable[3][1] ) { // KIO::AuthInfo queryAuthInfo(KIO::AuthInfo,QString,long int,long int)
	KIO::AuthInfo arg0;
	QString arg1;
	long int arg2;
	long int arg3;
	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;
	replyType = KPasswdServer_ftable[3][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << queryAuthInfo(arg0, arg1, arg2, arg3 );
    } else if ( fun == KPasswdServer_ftable[4][1] ) { // void addAuthInfo(KIO::AuthInfo,long int)
	KIO::AuthInfo arg0;
	long int arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KPasswdServer_ftable[4][0]; 
	addAuthInfo(arg0, arg1 );
    } else {
	return KDEDModule::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList KPasswdServer::interfaces()
{
    QCStringList ifaces = KDEDModule::interfaces();
    ifaces += "KPasswdServer";
    return ifaces;
}

QCStringList KPasswdServer::functions()
{
    QCStringList funcs = KDEDModule::functions();
    for ( int i = 0; KPasswdServer_ftable[i][2]; i++ ) {
	if (KPasswdServer_ftable_hiddens[i])
	    continue;
	QCString func = KPasswdServer_ftable[i][0];
	func += ' ';
	func += KPasswdServer_ftable[i][2];
	funcs << func;
    }
    return funcs;
}


