kwallet Library API Documentation

kwallet_skel.cc

00001 /**************************************************************************** 00002 ** 00003 ** DCOP Skeleton created by dcopidl2cpp from kwallet.kidl 00004 ** 00005 ** WARNING! All changes made in this file will be lost! 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] ) { // void slotWalletClosed(int) 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] ) { // void slotFolderUpdated(QString,QString) 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] ) { // void slotFolderListUpdated(QString) 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] ) { // void slotApplicationDisconnected(QString,QCString) 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] ) { // void walletOpenResult(int) 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 } // namespace 00095
KDE Logo
This file is part of the documentation for kwallet Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 8 11:14:44 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003