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