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