00001
00002
00003
00004
00005
00006
00007
00008
00009
#include "./kwallet.h"
00010
00011
#include <kdatastream.h>
00012
00013
namespace KWallet {
00014
00015
static const char*
const Wallet_ftable[6][3] = {
00016 {
"ASYNC",
"slotWalletClosed(int)",
"slotWalletClosed(int handle)" },
00017 {
"ASYNC",
"slotFolderUpdated(QString,QString)",
"slotFolderUpdated(QString wallet,QString folder)" },
00018 {
"ASYNC",
"slotFolderListUpdated(QString)",
"slotFolderListUpdated(QString wallet)" },
00019 {
"ASYNC",
"slotApplicationDisconnected(QString,QCString)",
"slotApplicationDisconnected(QString wallet,QCString application)" },
00020 {
"ASYNC",
"walletOpenResult(int)",
"walletOpenResult(int rc)" },
00021 { 0, 0, 0 }
00022 };
00023
static const int Wallet_ftable_hiddens[5] = {
00024 0,
00025 0,
00026 0,
00027 0,
00028 0,
00029 };
00030
00031
bool Wallet::process(
const QCString &fun,
const QByteArray &data,
QCString& replyType,
QByteArray &replyData)
00032 {
00033
if ( fun == Wallet_ftable[0][1] ) {
00034
int arg0;
00035
QDataStream arg( data, IO_ReadOnly );
00036 arg >> arg0;
00037 replyType = Wallet_ftable[0][0];
00038 slotWalletClosed(arg0 );
00039 }
else if ( fun == Wallet_ftable[1][1] ) {
00040
QString arg0;
00041
QString arg1;
00042
QDataStream arg( data, IO_ReadOnly );
00043 arg >> arg0;
00044 arg >> arg1;
00045 replyType = Wallet_ftable[1][0];
00046 slotFolderUpdated(arg0, arg1 );
00047 }
else if ( fun == Wallet_ftable[2][1] ) {
00048
QString arg0;
00049
QDataStream arg( data, IO_ReadOnly );
00050 arg >> arg0;
00051 replyType = Wallet_ftable[2][0];
00052 slotFolderListUpdated(arg0 );
00053 }
else if ( fun == Wallet_ftable[3][1] ) {
00054
QString arg0;
00055
QCString arg1;
00056
QDataStream arg( data, IO_ReadOnly );
00057 arg >> arg0;
00058 arg >> arg1;
00059 replyType = Wallet_ftable[3][0];
00060 slotApplicationDisconnected(arg0, arg1 );
00061 }
else if ( fun == Wallet_ftable[4][1] ) {
00062
int arg0;
00063
QDataStream arg( data, IO_ReadOnly );
00064 arg >> arg0;
00065 replyType = Wallet_ftable[4][0];
00066 walletOpenResult(arg0 );
00067 }
else {
00068
return DCOPObject::process( fun, data, replyType, replyData );
00069 }
00070
return true;
00071 }
00072
00073 QCStringList
Wallet::interfaces()
00074 {
00075 QCStringList ifaces =
DCOPObject::interfaces();
00076 ifaces +=
"KWallet::Wallet";
00077
return ifaces;
00078 }
00079
00080 QCStringList
Wallet::functions()
00081 {
00082 QCStringList funcs =
DCOPObject::functions();
00083
for (
int i = 0; Wallet_ftable[i][2]; i++ ) {
00084
if (Wallet_ftable_hiddens[i])
00085
continue;
00086
QCString func = Wallet_ftable[i][0];
00087 func +=
' ';
00088 func += Wallet_ftable[i][2];
00089 funcs << func;
00090 }
00091
return funcs;
00092 }
00093
00094 }
00095