interfaces Library API Documentation

blockselectiondcopinterface_skel.cpp

00001 /**************************************************************************** 00002 ** 00003 ** DCOP Skeleton created by dcopidl2cpp from blockselectiondcopinterface.kidl 00004 ** 00005 ** WARNING! All changes made in this file will be lost! 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] ) { // uint blockSelectionInterfaceNumber() 00032 replyType = BlockSelectionDCOPInterface_ftable[0][0]; 00033 QDataStream _replyStream( replyData, IO_WriteOnly ); 00034 _replyStream << blockSelectionInterfaceNumber( ); 00035 } else if ( fun == BlockSelectionDCOPInterface_ftable[1][1] ) { // bool blockSelectionMode() 00036 replyType = BlockSelectionDCOPInterface_ftable[1][0]; 00037 QDataStream _replyStream( replyData, IO_WriteOnly ); 00038 _replyStream << blockSelectionMode( ); 00039 } else if ( fun == BlockSelectionDCOPInterface_ftable[2][1] ) { // bool setBlockSelectionMode(bool) 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] ) { // bool toggleBlockSelectionMode() 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 } // namespace 00078
KDE Logo
This file is part of the documentation for interfaces Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Sep 29 09:44:22 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003