00001
00002
00003
00004
00005
00006
00007
00008
00009
#include "./interfaces/AddressBookServiceIface.h"
00010
00011
#include <kdatastream.h>
00012
00013 namespace KPIM {
00014
00015
static const char*
const AddressBookServiceIface_ftable[3][3] = {
00016 {
"void",
"importVCard(QString)",
"importVCard(QString vCard)" },
00017 {
"void",
"importVCard(KURL)",
"importVCard(KURL url)" },
00018 { 0, 0, 0 }
00019 };
00020
static const int AddressBookServiceIface_ftable_hiddens[2] = {
00021 0,
00022 0,
00023 };
00024
00025
bool AddressBookServiceIface::process(
const QCString &fun,
const QByteArray &data,
QCString& replyType,
QByteArray &replyData)
00026 {
00027
if ( fun == AddressBookServiceIface_ftable[0][1] ) {
00028
QString arg0;
00029
QDataStream arg( data, IO_ReadOnly );
00030 arg >> arg0;
00031 replyType = AddressBookServiceIface_ftable[0][0];
00032 importVCard(arg0 );
00033 }
else if ( fun == AddressBookServiceIface_ftable[1][1] ) {
00034 KURL arg0;
00035
QDataStream arg( data, IO_ReadOnly );
00036 arg >> arg0;
00037 replyType = AddressBookServiceIface_ftable[1][0];
00038 importVCard(arg0 );
00039 }
else {
00040
return DCOPObject::process( fun, data, replyType, replyData );
00041 }
00042
return true;
00043 }
00044
00045 QCStringList AddressBookServiceIface::interfaces()
00046 {
00047 QCStringList ifaces = DCOPObject::interfaces();
00048 ifaces +=
"KPIM::AddressBookServiceIface";
00049
return ifaces;
00050 }
00051
00052 QCStringList AddressBookServiceIface::functions()
00053 {
00054 QCStringList funcs = DCOPObject::functions();
00055
for (
int i = 0; AddressBookServiceIface_ftable[i][2]; i++ ) {
00056
if (AddressBookServiceIface_ftable_hiddens[i])
00057
continue;
00058
QCString func = AddressBookServiceIface_ftable[i][0];
00059 func +=
' ';
00060 func += AddressBookServiceIface_ftable[i][2];
00061 funcs << func;
00062 }
00063
return funcs;
00064 }
00065
00066 }
00067