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