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

#include "/tmp/buildd/tde-packaging/arch/tde-devel/tde-tdewebdev/src/tdewebdev-trinity-14.1.6/quanta/src/dcopquantaif.h"

#include <kdatastream.h>


static const char* const DCOPQuantaIf_ftable[4][3] = {
    { "TQStringList", "selectors(TQString)", "selectors(TQString tag)" },
    { "TQStringList", "idSelectors()", "idSelectors()" },
    { "TQStringList", "groupElements(TQString)", "groupElements(TQString group)" },
    { 0, 0, 0 }
};
static const int DCOPQuantaIf_ftable_hiddens[3] = {
    0,
    0,
    0,
};

bool DCOPQuantaIf::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == DCOPQuantaIf_ftable[0][1] ) { // TQStringList selectors(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPQuantaIf_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << selectors(arg0 );
    } else if ( fun == DCOPQuantaIf_ftable[1][1] ) { // TQStringList idSelectors()
	replyType = DCOPQuantaIf_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << idSelectors( );
    } else if ( fun == DCOPQuantaIf_ftable[2][1] ) { // TQStringList groupElements(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPQuantaIf_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << groupElements(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


