00001
00002
00003
00004
00005
00006
00007
00008
00009
#include "./summarywidget.h"
00010
00011
#include <kdatastream.h>
00012
00013
00014
static const char*
const SummaryWidget_ftable[4][3] = {
00015 {
"void",
"documentUpdated(DCOPRef)",
"documentUpdated(DCOPRef)" },
00016 {
"void",
"documentAdded(QString)",
"documentAdded(QString)" },
00017 {
"void",
"documentRemoved(QString)",
"documentRemoved(QString)" },
00018 { 0, 0, 0 }
00019 };
00020
static const int SummaryWidget_ftable_hiddens[3] = {
00021 0,
00022 0,
00023 0,
00024 };
00025
00026
bool SummaryWidget::process(
const QCString &fun,
const QByteArray &data,
QCString& replyType,
QByteArray &replyData)
00027 {
00028
if ( fun == SummaryWidget_ftable[0][1] ) {
00029 DCOPRef arg0;
00030
QDataStream arg( data, IO_ReadOnly );
00031 arg >> arg0;
00032 replyType = SummaryWidget_ftable[0][0];
00033 documentUpdated(arg0 );
00034 }
else if ( fun == SummaryWidget_ftable[1][1] ) {
00035
QString arg0;
00036
QDataStream arg( data, IO_ReadOnly );
00037 arg >> arg0;
00038 replyType = SummaryWidget_ftable[1][0];
00039 documentAdded(arg0 );
00040 }
else if ( fun == SummaryWidget_ftable[2][1] ) {
00041
QString arg0;
00042
QDataStream arg( data, IO_ReadOnly );
00043 arg >> arg0;
00044 replyType = SummaryWidget_ftable[2][0];
00045 documentRemoved(arg0 );
00046 }
else {
00047
return DCOPObject::process( fun, data, replyType, replyData );
00048 }
00049
return true;
00050 }
00051
00052 QCStringList SummaryWidget::interfaces()
00053 {
00054 QCStringList ifaces = DCOPObject::interfaces();
00055 ifaces +=
"SummaryWidget";
00056
return ifaces;
00057 }
00058
00059 QCStringList SummaryWidget::functions()
00060 {
00061 QCStringList funcs = DCOPObject::functions();
00062
for (
int i = 0; SummaryWidget_ftable[i][2]; i++ ) {
00063
if (SummaryWidget_ftable_hiddens[i])
00064
continue;
00065
QCString func = SummaryWidget_ftable[i][0];
00066 func +=
' ';
00067 func += SummaryWidget_ftable[i][2];
00068 funcs << func;
00069 }
00070
return funcs;
00071 }
00072
00073