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 if (arg.atEnd()) return false;
00038 arg >> arg0;
00039 if (arg.atEnd()) return false;
00040 arg >> arg1;
00041 if (arg.atEnd()) return false;
00042 arg >> arg2;
00043 replyType = KateMainWindowDCOPIface_ftable[1][0];
00044 QDataStream _replyStream( replyData, IO_WriteOnly );
00045 _replyStream << createProject(arg0, arg1, arg2 );
00046 } else if ( fun == KateMainWindowDCOPIface_ftable[2][1] ) {
00047 QString arg0;
00048 QDataStream arg( data, IO_ReadOnly );
00049 if (arg.atEnd()) return false;
00050 arg >> arg0;
00051 replyType = KateMainWindowDCOPIface_ftable[2][0];
00052 QDataStream _replyStream( replyData, IO_WriteOnly );
00053 _replyStream << openProject(arg0 );
00054 } else {
00055 return DCOPObject::process( fun, data, replyType, replyData );
00056 }
00057 return true;
00058 }
00059
00060 QCStringList KateMainWindowDCOPIface::interfaces()
00061 {
00062 QCStringList ifaces = DCOPObject::interfaces();
00063 ifaces += "KateMainWindowDCOPIface";
00064 return ifaces;
00065 }
00066
00067 QCStringList KateMainWindowDCOPIface::functions()
00068 {
00069 QCStringList funcs = DCOPObject::functions();
00070 for ( int i = 0; KateMainWindowDCOPIface_ftable[i][2]; i++ ) {
00071 if (KateMainWindowDCOPIface_ftable_hiddens[i])
00072 continue;
00073 QCString func = KateMainWindowDCOPIface_ftable[i][0];
00074 func += ' ';
00075 func += KateMainWindowDCOPIface_ftable[i][2];
00076 funcs << func;
00077 }
00078 return funcs;
00079 }
00080
00081
This file is part of the documentation for kate Library Version 3.4.1.