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

#include <kdatastream.h>

namespace KWallet {

static const char* const Wallet_ftable[6][3] = {
    { "ASYNC", "slotWalletClosed(int)", "slotWalletClosed(int handle)" },
    { "ASYNC", "slotFolderUpdated(QString,QString)", "slotFolderUpdated(QString wallet,QString folder)" },
    { "ASYNC", "slotFolderListUpdated(QString)", "slotFolderListUpdated(QString wallet)" },
    { "ASYNC", "slotApplicationDisconnected(QString,QCString)", "slotApplicationDisconnected(QString wallet,QCString application)" },
    { "ASYNC", "walletOpenResult(int)", "walletOpenResult(int rc)" },
    { 0, 0, 0 }
};
static const int Wallet_ftable_hiddens[5] = {
    0,
    0,
    0,
    0,
    0,
};

bool Wallet::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    if ( fun == Wallet_ftable[0][1] ) { // void slotWalletClosed(int)
	int arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = Wallet_ftable[0][0]; 
	slotWalletClosed(arg0 );
    } else if ( fun == Wallet_ftable[1][1] ) { // void slotFolderUpdated(QString,QString)
	QString arg0;
	QString arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = Wallet_ftable[1][0]; 
	slotFolderUpdated(arg0, arg1 );
    } else if ( fun == Wallet_ftable[2][1] ) { // void slotFolderListUpdated(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = Wallet_ftable[2][0]; 
	slotFolderListUpdated(arg0 );
    } else if ( fun == Wallet_ftable[3][1] ) { // void slotApplicationDisconnected(QString,QCString)
	QString arg0;
	QCString arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = Wallet_ftable[3][0]; 
	slotApplicationDisconnected(arg0, arg1 );
    } else if ( fun == Wallet_ftable[4][1] ) { // void walletOpenResult(int)
	int arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = Wallet_ftable[4][0]; 
	walletOpenResult(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

QCStringList Wallet::functions()
{
    QCStringList funcs = DCOPObject::functions();
    for ( int i = 0; Wallet_ftable[i][2]; i++ ) {
	if (Wallet_ftable_hiddens[i])
	    continue;
	QCString func = Wallet_ftable[i][0];
	func += ' ';
	func += Wallet_ftable[i][2];
	funcs << func;
    }
    return funcs;
}

} // namespace

