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

#include "/usr/src/ports/kdelibs3/kdelibs3-3.5.10-11.i686/src/kdelibs-3.5.10/interfaces/ktexteditor/selectionextdcopinterface.h"

#include <kdatastream.h>

namespace KTextEditor {

static const char* const SelectionExtDCOPInterface_ftable[5][3] = {
    { "int", "selStartLine()", "selStartLine()" },
    { "int", "selStartCol()", "selStartCol()" },
    { "int", "selEndLine()", "selEndLine()" },
    { "int", "selEndCol()", "selEndCol()" },
    { 0, 0, 0 }
};
static const int SelectionExtDCOPInterface_ftable_hiddens[4] = {
    0,
    0,
    0,
    0,
};

bool SelectionExtDCOPInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    if ( fun == SelectionExtDCOPInterface_ftable[0][1] ) { // int selStartLine()
	replyType = SelectionExtDCOPInterface_ftable[0][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << selStartLine( );
    } else if ( fun == SelectionExtDCOPInterface_ftable[1][1] ) { // int selStartCol()
	replyType = SelectionExtDCOPInterface_ftable[1][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << selStartCol( );
    } else if ( fun == SelectionExtDCOPInterface_ftable[2][1] ) { // int selEndLine()
	replyType = SelectionExtDCOPInterface_ftable[2][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << selEndLine( );
    } else if ( fun == SelectionExtDCOPInterface_ftable[3][1] ) { // int selEndCol()
	replyType = SelectionExtDCOPInterface_ftable[3][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << selEndCol( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

QCStringList SelectionExtDCOPInterface::functions()
{
    QCStringList funcs = DCOPObject::functions();
    for ( int i = 0; SelectionExtDCOPInterface_ftable[i][2]; i++ ) {
	if (SelectionExtDCOPInterface_ftable_hiddens[i])
	    continue;
	QCString func = SelectionExtDCOPInterface_ftable[i][0];
	func += ' ';
	func += SelectionExtDCOPInterface_ftable[i][2];
	funcs << func;
    }
    return funcs;
}

} // namespace

