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

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-basket/src/basket-trinity-14.1.6/src/basketdcopiface.h"

#include <kdatastream.h>


static const char* const BasketDcopInterface_ftable[3][3] = {
    { "ASYNC", "newBasket()", "newBasket()" },
    { "void", "handleCommandLine()", "handleCommandLine()" },
    { 0, 0, 0 }
};
static const int BasketDcopInterface_ftable_hiddens[2] = {
    0,
    0,
};

bool BasketDcopInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == BasketDcopInterface_ftable[0][1] ) { // void newBasket()
	replyType = BasketDcopInterface_ftable[0][0]; 
	newBasket( );
    } else if ( fun == BasketDcopInterface_ftable[1][1] ) { // void handleCommandLine()
	replyType = BasketDcopInterface_ftable[1][0]; 
	handleCommandLine( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


