libkdepim
AddressBookServiceIface_skel.cpp00001
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 if (arg.atEnd()) return false;
00031 arg >> arg0;
00032 replyType = AddressBookServiceIface_ftable[0][0];
00033 importVCard(arg0 );
00034 } else if ( fun == AddressBookServiceIface_ftable[1][1] ) {
00035 KURL arg0;
00036 QDataStream arg( data, IO_ReadOnly );
00037 if (arg.atEnd()) return false;
00038 arg >> arg0;
00039 replyType = AddressBookServiceIface_ftable[1][0];
00040 importVCard(arg0 );
00041 } else {
00042 return DCOPObject::process( fun, data, replyType, replyData );
00043 }
00044 return true;
00045 }
00046
00047 QCStringList AddressBookServiceIface::interfaces()
00048 {
00049 QCStringList ifaces = DCOPObject::interfaces();
00050 ifaces += "KPIM::AddressBookServiceIface";
00051 return ifaces;
00052 }
00053
00054 QCStringList AddressBookServiceIface::functions()
00055 {
00056 QCStringList funcs = DCOPObject::functions();
00057 for ( int i = 0; AddressBookServiceIface_ftable[i][2]; i++ ) {
00058 if (AddressBookServiceIface_ftable_hiddens[i])
00059 continue;
00060 QCString func = AddressBookServiceIface_ftable[i][0];
00061 func += ' ';
00062 func += AddressBookServiceIface_ftable[i][2];
00063 funcs << func;
00064 }
00065 return funcs;
00066 }
00067
00068 }
00069
|