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 
00023 bool BlockSelectionDCOPInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00024 {
00025     if ( fun == BlockSelectionDCOPInterface_ftable[0][1] ) { // uint blockSelectionInterfaceNumber()
00026     replyType = BlockSelectionDCOPInterface_ftable[0][0]; 
00027     QDataStream _replyStream( replyData, IO_WriteOnly );
00028     _replyStream << blockSelectionInterfaceNumber( );
00029     } else if ( fun == BlockSelectionDCOPInterface_ftable[1][1] ) { // bool blockSelectionMode()
00030     replyType = BlockSelectionDCOPInterface_ftable[1][0]; 
00031     QDataStream _replyStream( replyData, IO_WriteOnly );
00032     _replyStream << blockSelectionMode( );
00033     } else if ( fun == BlockSelectionDCOPInterface_ftable[2][1] ) { // bool setBlockSelectionMode(bool)
00034     bool arg0;
00035     QDataStream arg( data, IO_ReadOnly );
00036     arg >> arg0;
00037     replyType = BlockSelectionDCOPInterface_ftable[2][0]; 
00038     QDataStream _replyStream( replyData, IO_WriteOnly );
00039     _replyStream << setBlockSelectionMode(arg0 );
00040     } else if ( fun == BlockSelectionDCOPInterface_ftable[3][1] ) { // bool toggleBlockSelectionMode()
00041     replyType = BlockSelectionDCOPInterface_ftable[3][0]; 
00042     QDataStream _replyStream( replyData, IO_WriteOnly );
00043     _replyStream << toggleBlockSelectionMode( );
00044     } else {
00045     return DCOPObject::process( fun, data, replyType, replyData );
00046     }
00047     return TRUE;
00048 }
00049 
00050 QCStringList BlockSelectionDCOPInterface::interfaces()
00051 {
00052     QCStringList ifaces = DCOPObject::interfaces();
00053     ifaces += "KTextEditor::BlockSelectionDCOPInterface";
00054     return ifaces;
00055 }
00056 
00057 QCStringList BlockSelectionDCOPInterface::functions()
00058 {
00059     QCStringList funcs = DCOPObject::functions();
00060     for ( int i = 0; BlockSelectionDCOPInterface_ftable[i][2]; i++ ) {
00061     QCString func = BlockSelectionDCOPInterface_ftable[i][0];
00062     func += ' ';
00063     func += BlockSelectionDCOPInterface_ftable[i][2];
00064     funcs << func;
00065     }
00066     return funcs;
00067 }
00068 
00069 } // namespace
00070 
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:22:15 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001