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

#include <kdatastream.h>


static const char* const KateDocument_ftable[2][3] = {
    { "uint", "documentNumber()", "documentNumber()" },
    { 0, 0, 0 }
};
static const int KateDocument_ftable_hiddens[1] = {
    0,
};

bool KateDocument::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    if ( fun == KateDocument_ftable[0][1] ) { // uint documentNumber()
	replyType = KateDocument_ftable[0][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << documentNumber( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


