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