/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from clipboarddcopinterface.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/clipboarddcopinterface.h"

#include <kdatastream.h>

namespace KTextEditor {

static const char* const ClipboardDCOPInterface_ftable[4][3] = {
    { "void", "copy()", "copy()" },
    { "void", "cut()", "cut()" },
    { "void", "paste()", "paste()" },
    { 0, 0, 0 }
};
static const int ClipboardDCOPInterface_ftable_hiddens[3] = {
    0,
    0,
    0,
};

bool ClipboardDCOPInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    if ( fun == ClipboardDCOPInterface_ftable[0][1] ) { // void copy()
	replyType = ClipboardDCOPInterface_ftable[0][0]; 
	copy( );
    } else if ( fun == ClipboardDCOPInterface_ftable[1][1] ) { // void cut()
	replyType = ClipboardDCOPInterface_ftable[1][0]; 
	cut( );
    } else if ( fun == ClipboardDCOPInterface_ftable[2][1] ) { // void paste()
	replyType = ClipboardDCOPInterface_ftable[2][0]; 
	paste( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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

} // namespace

