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