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

#include <kdatastream.h>

namespace TDEWallet {

static const char* const Wallet_ftable[6][3] = {
    { "ASYNC", "slotWalletClosed(int)", "slotWalletClosed(int handle)" },
    { "ASYNC", "slotFolderUpdated(TQString,TQString)", "slotFolderUpdated(TQString wallet,TQString folder)" },
    { "ASYNC", "slotFolderListUpdated(TQString)", "slotFolderListUpdated(TQString wallet)" },
    { "ASYNC", "slotApplicationDisconnected(TQString,TQCString)", "slotApplicationDisconnected(TQString wallet,TQCString 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 TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == Wallet_ftable[0][1] ) { // void slotWalletClosed(int)
	int arg0;
	TQDataStream 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(TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQDataStream 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(TQString)
	TQString arg0;
	TQDataStream 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(TQString,TQCString)
	TQString arg0;
	TQCString arg1;
	TQDataStream 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;
	TQDataStream 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 += "TDEWallet::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;
	TQCString func = Wallet_ftable[i][0];
	func += ' ';
	func += Wallet_ftable[i][2];
	funcs << func;
    }
    return funcs;
}

} // namespace

