katedocument_skel.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "./katedocument.h"
00010
00011 #include <kdatastream.h>
00012
00013
00014 static const char* const KateDocument_ftable[2][3] = {
00015 { "uint", "documentNumber()", "documentNumber()" },
00016 { 0, 0, 0 }
00017 };
00018 static const int KateDocument_ftable_hiddens[1] = {
00019 0,
00020 };
00021
00022 bool KateDocument::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00023 {
00024 if ( fun == KateDocument_ftable[0][1] ) {
00025 replyType = KateDocument_ftable[0][0];
00026 QDataStream _replyStream( replyData, IO_WriteOnly );
00027 _replyStream << documentNumber( );
00028 } else {
00029 return DCOPObject::process( fun, data, replyType, replyData );
00030 }
00031 return true;
00032 }
00033
00034 QCStringList KateDocument::interfaces()
00035 {
00036 QCStringList ifaces = DCOPObject::interfaces();
00037 ifaces += "KateDocument";
00038 return ifaces;
00039 }
00040
00041 QCStringList KateDocument::functions()
00042 {
00043 QCStringList funcs = DCOPObject::functions();
00044 for ( int i = 0; KateDocument_ftable[i][2]; i++ ) {
00045 if (KateDocument_ftable_hiddens[i])
00046 continue;
00047 QCString func = KateDocument_ftable[i][0];
00048 func += ' ';
00049 func += KateDocument_ftable[i][2];
00050 funcs << func;
00051 }
00052 return funcs;
00053 }
00054
00055
|