kimproxyiface_skel.cpp
00001
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 arg >> arg0;
00030 arg >> arg1;
00031 arg >> arg2;
00032 replyType = KIMProxyIface_ftable[0][0];
00033 contactPresenceChanged(arg0, arg1, arg2 );
00034 } else {
00035 return DCOPObject::process( fun, data, replyType, replyData );
00036 }
00037 return true;
00038 }
00039
00040 QCStringList KIMProxyIface::interfaces()
00041 {
00042 QCStringList ifaces = DCOPObject::interfaces();
00043 ifaces += "KIMProxyIface";
00044 return ifaces;
00045 }
00046
00047 QCStringList KIMProxyIface::functions()
00048 {
00049 QCStringList funcs = DCOPObject::functions();
00050 for ( int i = 0; KIMProxyIface_ftable[i][2]; i++ ) {
00051 if (KIMProxyIface_ftable_hiddens[i])
00052 continue;
00053 QCString func = KIMProxyIface_ftable[i][0];
00054 func += ' ';
00055 func += KIMProxyIface_ftable[i][2];
00056 funcs << func;
00057 }
00058 return funcs;
00059 }
00060
00061
This file is part of the documentation for libkdepim Library Version 3.3.2.