kdebugdcopiface_skel.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "./kdebugdcopiface.h"
00010
00011 #include <kdatastream.h>
00012
00013
00014 static const char* const KDebugDCOPIface_ftable[3][3] = {
00015 { "void", "notifyKDebugConfigChanged()", "notifyKDebugConfigChanged()" },
00016 { "void", "printBacktrace()", "printBacktrace()" },
00017 { 0, 0, 0 }
00018 };
00019 static const int KDebugDCOPIface_ftable_hiddens[2] = {
00020 0,
00021 0,
00022 };
00023
00024 bool KDebugDCOPIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00025 {
00026 if ( fun == KDebugDCOPIface_ftable[0][1] ) {
00027 replyType = KDebugDCOPIface_ftable[0][0];
00028 notifyKDebugConfigChanged( );
00029 } else if ( fun == KDebugDCOPIface_ftable[1][1] ) {
00030 replyType = KDebugDCOPIface_ftable[1][0];
00031 printBacktrace( );
00032 } else {
00033 return DCOPObject::process( fun, data, replyType, replyData );
00034 }
00035 return true;
00036 }
00037
00038 QCStringList KDebugDCOPIface::interfaces()
00039 {
00040 QCStringList ifaces = DCOPObject::interfaces();
00041 ifaces += "KDebugDCOPIface";
00042 return ifaces;
00043 }
00044
00045 QCStringList KDebugDCOPIface::functions()
00046 {
00047 QCStringList funcs = DCOPObject::functions();
00048 for ( int i = 0; KDebugDCOPIface_ftable[i][2]; i++ ) {
00049 if (KDebugDCOPIface_ftable_hiddens[i])
00050 continue;
00051 QCString func = KDebugDCOPIface_ftable[i][0];
00052 func += ' ';
00053 func += KDebugDCOPIface_ftable[i][2];
00054 funcs << func;
00055 }
00056 return funcs;
00057 }
00058
00059
|