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

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

#include <kdatastream.h>


static const char* const K3bMixedProjectInterface_ftable[3][3] = {
    { "DCOPRef", "dataPart()", "dataPart()" },
    { "DCOPRef", "audioPart()", "audioPart()" },
    { 0, 0, 0 }
};
static const int K3bMixedProjectInterface_ftable_hiddens[2] = {
    0,
    0,
};

bool K3bMixedProjectInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == K3bMixedProjectInterface_ftable[0][1] ) { // DCOPRef dataPart()
	replyType = K3bMixedProjectInterface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << dataPart( );
    } else if ( fun == K3bMixedProjectInterface_ftable[1][1] ) { // DCOPRef audioPart()
	replyType = K3bMixedProjectInterface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << audioPart( );
    } else {
	return K3bProjectInterface::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList K3bMixedProjectInterface::interfaces()
{
    QCStringList ifaces = K3bProjectInterface::interfaces();
    ifaces += "K3bMixedProjectInterface";
    return ifaces;
}

QCStringList K3bMixedProjectInterface::functions()
{
    QCStringList funcs = K3bProjectInterface::functions();
    for ( int i = 0; K3bMixedProjectInterface_ftable[i][2]; i++ ) {
	if (K3bMixedProjectInterface_ftable_hiddens[i])
	    continue;
	TQCString func = K3bMixedProjectInterface_ftable[i][0];
	func += ' ';
	func += K3bMixedProjectInterface_ftable[i][2];
	funcs << func;
    }
    return funcs;
}


