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

#include <kdatastream.h>


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

bool KPasswdServer::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KPasswdServer_ftable[0][1] ) { // TDEIO::AuthInfo checkAuthInfo(TDEIO::AuthInfo,long int,unsigned long int)
	TDEIO::AuthInfo arg0;
	long int arg1;
	unsigned long 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 = KPasswdServer_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << checkAuthInfo(arg0, arg1, arg2 );
    } else if ( fun == KPasswdServer_ftable[1][1] ) { // TDEIO::AuthInfo checkAuthInfo(TDEIO::AuthInfo,long int)
	TDEIO::AuthInfo arg0;
	long int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KPasswdServer_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << checkAuthInfo(arg0, arg1 );
    } else if ( fun == KPasswdServer_ftable[2][1] ) { // TDEIO::AuthInfo queryAuthInfo(TDEIO::AuthInfo,TQString,long int,long int,unsigned long int)
	TDEIO::AuthInfo arg0;
	TQString arg1;
	long int arg2;
	long int arg3;
	unsigned long int arg4;
	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;
	replyType = KPasswdServer_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << queryAuthInfo(arg0, arg1, arg2, arg3, arg4 );
    } else if ( fun == KPasswdServer_ftable[3][1] ) { // TDEIO::AuthInfo queryAuthInfo(TDEIO::AuthInfo,TQString,long int,long int)
	TDEIO::AuthInfo arg0;
	TQString arg1;
	long int arg2;
	long int arg3;
	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;
	replyType = KPasswdServer_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << queryAuthInfo(arg0, arg1, arg2, arg3 );
    } else if ( fun == KPasswdServer_ftable[4][1] ) { // void addAuthInfo(TDEIO::AuthInfo,long int)
	TDEIO::AuthInfo arg0;
	long int arg1;
	TQDataStream 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;
	TQCString func = KPasswdServer_ftable[i][0];
	func += ' ';
	func += KPasswdServer_ftable[i][2];
	funcs << func;
    }
    return funcs;
}


