kimproxyiface_skel.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "./kimproxyiface.h"
00010
00011 #include <kdatastream.h>
00012
00013
00014 static const char* const KIMProxyIface_ftable[2][3] = {
00015 { "void", "contactPresenceChanged(QString,QCString,int)", "contactPresenceChanged(QString uid,QCString appId,int presence)" },
00016 { 0, 0, 0 }
00017 };
00018 static const int KIMProxyIface_ftable_hiddens[1] = {
00019 0,
00020 };
00021
00022 bool KIMProxyIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00023 {
00024 if ( fun == KIMProxyIface_ftable[0][1] ) {
00025 QString arg0;
00026 QCString arg1;
00027 int arg2;
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 if (arg.atEnd()) return false;
00034 arg >> arg2;
00035 replyType = KIMProxyIface_ftable[0][0];
00036 contactPresenceChanged(arg0, arg1, arg2 );
00037 } else {
00038 return DCOPObject::process( fun, data, replyType, replyData );
00039 }
00040 return true;
00041 }
00042
00043 QCStringList KIMProxyIface::interfaces()
00044 {
00045 QCStringList ifaces = DCOPObject::interfaces();
00046 ifaces += "KIMProxyIface";
00047 return ifaces;
00048 }
00049
00050 QCStringList KIMProxyIface::functions()
00051 {
00052 QCStringList funcs = DCOPObject::functions();
00053 for ( int i = 0; KIMProxyIface_ftable[i][2]; i++ ) {
00054 if (KIMProxyIface_ftable_hiddens[i])
00055 continue;
00056 QCString func = KIMProxyIface_ftable[i][0];
00057 func += ' ';
00058 func += KIMProxyIface_ftable[i][2];
00059 funcs << func;
00060 }
00061 return funcs;
00062 }
00063
00064
|