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