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

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


static const int KWalletD_fhash = 41;
static const char* const KWalletD_ftable[40][3] = {
    { "bool", "isEnabled()", "isEnabled()" },
    { "int", "open(QString,uint)", "open(QString wallet,uint wId)" },
    { "int", "openPath(QString,uint)", "openPath(QString path,uint wId)" },
    { "void", "openAsynchronous(QString,QCString,uint)", "openAsynchronous(QString wallet,QCString returnObject,uint wId)" },
    { "int", "close(QString,bool)", "close(QString wallet,bool force)" },
    { "int", "close(int,bool)", "close(int handle,bool force)" },
    { "ASYNC", "sync(int)", "sync(int handle)" },
    { "int", "deleteWallet(QString)", "deleteWallet(QString wallet)" },
    { "bool", "isOpen(QString)", "isOpen(QString wallet)" },
    { "bool", "isOpen(int)", "isOpen(int handle)" },
    { "QStringList", "users(QString)", "users(QString wallet)" },
    { "void", "changePassword(QString,uint)", "changePassword(QString wallet,uint wId)" },
    { "QStringList", "wallets()", "wallets()" },
    { "QStringList", "folderList(int)", "folderList(int handle)" },
    { "bool", "hasFolder(int,QString)", "hasFolder(int handle,QString folder)" },
    { "bool", "createFolder(int,QString)", "createFolder(int handle,QString folder)" },
    { "bool", "removeFolder(int,QString)", "removeFolder(int handle,QString folder)" },
    { "QStringList", "entryList(int,QString)", "entryList(int handle,QString folder)" },
    { "QByteArray", "readEntry(int,QString,QString)", "readEntry(int handle,QString folder,QString key)" },
    { "QByteArray", "readMap(int,QString,QString)", "readMap(int handle,QString folder,QString key)" },
    { "QString", "readPassword(int,QString,QString)", "readPassword(int handle,QString folder,QString key)" },
    { "QMap<QString,QByteArray>", "readEntryList(int,QString,QString)", "readEntryList(int handle,QString folder,QString key)" },
    { "QMap<QString,QByteArray>", "readMapList(int,QString,QString)", "readMapList(int handle,QString folder,QString key)" },
    { "QMap<QString,QString>", "readPasswordList(int,QString,QString)", "readPasswordList(int handle,QString folder,QString key)" },
    { "int", "renameEntry(int,QString,QString,QString)", "renameEntry(int handle,QString folder,QString oldName,QString newName)" },
    { "int", "writeEntry(int,QString,QString,QByteArray,int)", "writeEntry(int handle,QString folder,QString key,QByteArray value,int entryType)" },
    { "int", "writeEntry(int,QString,QString,QByteArray)", "writeEntry(int handle,QString folder,QString key,QByteArray value)" },
    { "int", "writeMap(int,QString,QString,QByteArray)", "writeMap(int handle,QString folder,QString key,QByteArray value)" },
    { "int", "writePassword(int,QString,QString,QString)", "writePassword(int handle,QString folder,QString key,QString value)" },
    { "bool", "hasEntry(int,QString,QString)", "hasEntry(int handle,QString folder,QString key)" },
    { "int", "entryType(int,QString,QString)", "entryType(int handle,QString folder,QString key)" },
    { "int", "removeEntry(int,QString,QString)", "removeEntry(int handle,QString folder,QString key)" },
    { "bool", "disconnectApplication(QString,QCString)", "disconnectApplication(QString wallet,QCString application)" },
    { "void", "reconfigure()", "reconfigure()" },
    { "bool", "folderDoesNotExist(QString,QString)", "folderDoesNotExist(QString wallet,QString folder)" },
    { "bool", "keyDoesNotExist(QString,QString,QString)", "keyDoesNotExist(QString wallet,QString folder,QString key)" },
    { "void", "closeAllWallets()", "closeAllWallets()" },
    { "QString", "networkWallet()", "networkWallet()" },
    { "QString", "localWallet()", "localWallet()" },
    { 0, 0, 0 }
};
static const int KWalletD_ftable_hiddens[39] = {
    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,
    0,
    0,
    0,
    0,
    0,
};

bool KWalletD::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    static QAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new QAsciiDict<int>( KWalletD_fhash, true, false );
	for ( int i = 0; KWalletD_ftable[i][1]; i++ )
	    fdict->insert( KWalletD_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // bool isEnabled()
	replyType = KWalletD_ftable[0][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isEnabled( );
    } break;
    case 1: { // int open(QString,uint)
	QString arg0;
	uint arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KWalletD_ftable[1][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << open(arg0, arg1 );
    } break;
    case 2: { // int openPath(QString,uint)
	QString arg0;
	uint arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KWalletD_ftable[2][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << openPath(arg0, arg1 );
    } break;
    case 3: { // void openAsynchronous(QString,QCString,uint)
	QString arg0;
	QCString arg1;
	uint 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 = KWalletD_ftable[3][0]; 
	openAsynchronous(arg0, arg1, arg2 );
    } break;
    case 4: { // int close(QString,bool)
	QString arg0;
	bool arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KWalletD_ftable[4][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << close(arg0, arg1 );
    } break;
    case 5: { // int close(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 = KWalletD_ftable[5][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << close(arg0, arg1 );
    } break;
    case 6: { // void sync(int)
	int arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KWalletD_ftable[6][0]; 
	sync(arg0 );
    } break;
    case 7: { // int deleteWallet(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KWalletD_ftable[7][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << deleteWallet(arg0 );
    } break;
    case 8: { // bool isOpen(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KWalletD_ftable[8][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isOpen(arg0 );
    } break;
    case 9: { // bool isOpen(int)
	int arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KWalletD_ftable[9][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isOpen(arg0 );
    } break;
    case 10: { // QStringList users(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KWalletD_ftable[10][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << users(arg0 );
    } break;
    case 11: { // void changePassword(QString,uint)
	QString arg0;
	uint arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KWalletD_ftable[11][0]; 
	changePassword(arg0, arg1 );
    } break;
    case 12: { // QStringList wallets()
	replyType = KWalletD_ftable[12][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << wallets( );
    } break;
    case 13: { // QStringList folderList(int)
	int arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KWalletD_ftable[13][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << folderList(arg0 );
    } break;
    case 14: { // bool hasFolder(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 = KWalletD_ftable[14][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << hasFolder(arg0, arg1 );
    } break;
    case 15: { // bool createFolder(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 = KWalletD_ftable[15][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createFolder(arg0, arg1 );
    } break;
    case 16: { // bool removeFolder(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 = KWalletD_ftable[16][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << removeFolder(arg0, arg1 );
    } break;
    case 17: { // QStringList entryList(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 = KWalletD_ftable[17][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << entryList(arg0, arg1 );
    } break;
    case 18: { // QByteArray readEntry(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 = KWalletD_ftable[18][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << readEntry(arg0, arg1, arg2 );
    } break;
    case 19: { // QByteArray readMap(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 = KWalletD_ftable[19][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << readMap(arg0, arg1, arg2 );
    } break;
    case 20: { // QString readPassword(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 = KWalletD_ftable[20][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << readPassword(arg0, arg1, arg2 );
    } break;
    case 21: { // QMap<QString,QByteArray> readEntryList(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 = KWalletD_ftable[21][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << readEntryList(arg0, arg1, arg2 );
    } break;
    case 22: { // QMap<QString,QByteArray> readMapList(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 = KWalletD_ftable[22][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << readMapList(arg0, arg1, arg2 );
    } break;
    case 23: { // QMap<QString,QString> readPasswordList(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 = KWalletD_ftable[23][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << readPasswordList(arg0, arg1, arg2 );
    } break;
    case 24: { // int renameEntry(int,QString,QString,QString)
	int arg0;
	QString arg1;
	QString arg2;
	QString 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 = KWalletD_ftable[24][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << renameEntry(arg0, arg1, arg2, arg3 );
    } break;
    case 25: { // int writeEntry(int,QString,QString,QByteArray,int)
	int arg0;
	QString arg1;
	QString arg2;
	QByteArray arg3;
	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 = KWalletD_ftable[25][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << writeEntry(arg0, arg1, arg2, arg3, arg4 );
    } break;
    case 26: { // int writeEntry(int,QString,QString,QByteArray)
	int arg0;
	QString arg1;
	QString arg2;
	QByteArray 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 = KWalletD_ftable[26][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << writeEntry(arg0, arg1, arg2, arg3 );
    } break;
    case 27: { // int writeMap(int,QString,QString,QByteArray)
	int arg0;
	QString arg1;
	QString arg2;
	QByteArray 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 = KWalletD_ftable[27][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << writeMap(arg0, arg1, arg2, arg3 );
    } break;
    case 28: { // int writePassword(int,QString,QString,QString)
	int arg0;
	QString arg1;
	QString arg2;
	QString 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 = KWalletD_ftable[28][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << writePassword(arg0, arg1, arg2, arg3 );
    } break;
    case 29: { // bool hasEntry(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 = KWalletD_ftable[29][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << hasEntry(arg0, arg1, arg2 );
    } break;
    case 30: { // int entryType(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 = KWalletD_ftable[30][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << entryType(arg0, arg1, arg2 );
    } break;
    case 31: { // int removeEntry(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 = KWalletD_ftable[31][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << removeEntry(arg0, arg1, arg2 );
    } break;
    case 32: { // bool disconnectApplication(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 = KWalletD_ftable[32][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << disconnectApplication(arg0, arg1 );
    } break;
    case 33: { // void reconfigure()
	replyType = KWalletD_ftable[33][0]; 
	reconfigure( );
    } break;
    case 34: { // bool folderDoesNotExist(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 = KWalletD_ftable[34][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << folderDoesNotExist(arg0, arg1 );
    } break;
    case 35: { // bool keyDoesNotExist(QString,QString,QString)
	QString 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 = KWalletD_ftable[35][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << keyDoesNotExist(arg0, arg1, arg2 );
    } break;
    case 36: { // void closeAllWallets()
	replyType = KWalletD_ftable[36][0]; 
	closeAllWallets( );
    } break;
    case 37: { // QString networkWallet()
	replyType = KWalletD_ftable[37][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << networkWallet( );
    } break;
    case 38: { // QString localWallet()
	replyType = KWalletD_ftable[38][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << localWallet( );
    } break;
    default: 
	return KDEDModule::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


