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