KoViewIface_skel.cc
00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "./KoViewIface.h"
00010
00011 #include <kdatastream.h>
00012
00013
00014 static const char* const KoViewIface_ftable[4][3] = {
00015 { "DCOPRef", "action(QCString)", "action(QCString name)" },
00016 { "QCStringList", "actions()", "actions()" },
00017 { "QMap<QCString,DCOPRef>", "actionMap()", "actionMap()" },
00018 { 0, 0, 0 }
00019 };
00020 static const int KoViewIface_ftable_hiddens[3] = {
00021 0,
00022 0,
00023 0,
00024 };
00025
00026 bool KoViewIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00027 {
00028 if ( fun == KoViewIface_ftable[0][1] ) {
00029 QCString arg0;
00030 QDataStream arg( data, IO_ReadOnly );
00031 arg >> arg0;
00032 replyType = KoViewIface_ftable[0][0];
00033 QDataStream _replyStream( replyData, IO_WriteOnly );
00034 _replyStream << action(arg0 );
00035 } else if ( fun == KoViewIface_ftable[1][1] ) {
00036 replyType = KoViewIface_ftable[1][0];
00037 QDataStream _replyStream( replyData, IO_WriteOnly );
00038 _replyStream << actions( );
00039 } else if ( fun == KoViewIface_ftable[2][1] ) {
00040 replyType = KoViewIface_ftable[2][0];
00041 QDataStream _replyStream( replyData, IO_WriteOnly );
00042 _replyStream << actionMap( );
00043 } else {
00044 return DCOPObject::process( fun, data, replyType, replyData );
00045 }
00046 return true;
00047 }
00048
00049 QCStringList KoViewIface::interfaces()
00050 {
00051 QCStringList ifaces = DCOPObject::interfaces();
00052 ifaces += "KoViewIface";
00053 return ifaces;
00054 }
00055
00056 QCStringList KoViewIface::functions()
00057 {
00058 QCStringList funcs = DCOPObject::functions();
00059 for ( int i = 0; KoViewIface_ftable[i][2]; i++ ) {
00060 if (KoViewIface_ftable_hiddens[i])
00061 continue;
00062 QCString func = KoViewIface_ftable[i][0];
00063 func += ' ';
00064 func += KoViewIface_ftable[i][2];
00065 funcs << func;
00066 }
00067 return funcs;
00068 }
00069
00070
This file is part of the documentation for lib Library Version 1.3.5.