/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from blockselectiondcopinterface.kidl
**
** WARNING! All changes made in this file will be lost!
**
*****************************************************************************/

#include "/tmp/buildd/tde-packaging/arch/tde-core/tde-tdelibs/src/tdelibs-trinity-14.1.6/interfaces/tdetexteditor/blockselectiondcopinterface.h"

#include <kdatastream.h>

namespace KTextEditor {

static const char* const BlockSelectionDCOPInterface_ftable[5][3] = {
    { "uint", "blockSelectionInterfaceNumber()", "blockSelectionInterfaceNumber()" },
    { "bool", "blockSelectionMode()", "blockSelectionMode()" },
    { "bool", "setBlockSelectionMode(bool)", "setBlockSelectionMode(bool on)" },
    { "bool", "toggleBlockSelectionMode()", "toggleBlockSelectionMode()" },
    { 0, 0, 0 }
};
static const int BlockSelectionDCOPInterface_ftable_hiddens[4] = {
    0,
    0,
    0,
    0,
};

bool BlockSelectionDCOPInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == BlockSelectionDCOPInterface_ftable[0][1] ) { // uint blockSelectionInterfaceNumber()
	replyType = BlockSelectionDCOPInterface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << blockSelectionInterfaceNumber( );
    } else if ( fun == BlockSelectionDCOPInterface_ftable[1][1] ) { // bool blockSelectionMode()
	replyType = BlockSelectionDCOPInterface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << blockSelectionMode( );
    } else if ( fun == BlockSelectionDCOPInterface_ftable[2][1] ) { // bool setBlockSelectionMode(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = BlockSelectionDCOPInterface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << setBlockSelectionMode(arg0 );
    } else if ( fun == BlockSelectionDCOPInterface_ftable[3][1] ) { // bool toggleBlockSelectionMode()
	replyType = BlockSelectionDCOPInterface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << toggleBlockSelectionMode( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList BlockSelectionDCOPInterface::interfaces()
{
    QCStringList ifaces = DCOPObject::interfaces();
    ifaces += "KTextEditor::BlockSelectionDCOPInterface";
    return ifaces;
}

QCStringList BlockSelectionDCOPInterface::functions()
{
    QCStringList funcs = DCOPObject::functions();
    for ( int i = 0; BlockSelectionDCOPInterface_ftable[i][2]; i++ ) {
	if (BlockSelectionDCOPInterface_ftable_hiddens[i])
	    continue;
	TQCString func = BlockSelectionDCOPInterface_ftable[i][0];
	func += ' ';
	func += BlockSelectionDCOPInterface_ftable[i][2];
	funcs << func;
    }
    return funcs;
}

} // namespace

