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

#include <kdatastream.h>

namespace KTextEditor {

static const char* const ViewStatusMsgDCOPInterface_ftable[3][3] = {
    { "uint", "viewStatusMsgInterfaceNumber()", "viewStatusMsgInterfaceNumber()" },
    { "void", "viewStatusMsg(TQString)", "viewStatusMsg(TQString msg)" },
    { 0, 0, 0 }
};
static const int ViewStatusMsgDCOPInterface_ftable_hiddens[2] = {
    0,
    0,
};

bool ViewStatusMsgDCOPInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == ViewStatusMsgDCOPInterface_ftable[0][1] ) { // uint viewStatusMsgInterfaceNumber()
	replyType = ViewStatusMsgDCOPInterface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << viewStatusMsgInterfaceNumber( );
    } else if ( fun == ViewStatusMsgDCOPInterface_ftable[1][1] ) { // void viewStatusMsg(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = ViewStatusMsgDCOPInterface_ftable[1][0]; 
	viewStatusMsg(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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

} // namespace

