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

#include <kdatastream.h>


static const char* const K3bJobInterface_ftable[4][3] = {
    { "bool", "jobRunning()", "jobRunning()" },
    { "TQString", "jobDescription()", "jobDescription()" },
    { "TQString", "jobDetails()", "jobDetails()" },
    { 0, 0, 0 }
};
static const int K3bJobInterface_ftable_hiddens[3] = {
    0,
    0,
    0,
};

bool K3bJobInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == K3bJobInterface_ftable[0][1] ) { // bool jobRunning()
	replyType = K3bJobInterface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << jobRunning( );
    } else if ( fun == K3bJobInterface_ftable[1][1] ) { // TQString jobDescription()
	replyType = K3bJobInterface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << jobDescription( );
    } else if ( fun == K3bJobInterface_ftable[2][1] ) { // TQString jobDetails()
	replyType = K3bJobInterface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << jobDetails( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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

void K3bJobInterface::started()
{
    TQByteArray data;
    emitDCOPSignal( "started()", data );
}

void K3bJobInterface::canceled()
{
    TQByteArray data;
    emitDCOPSignal( "canceled()", data );
}

void K3bJobInterface::finished( bool arg0 )
{
    TQByteArray data;
    TQDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "finished(bool)", data );
}

void K3bJobInterface::infoMessage( const TQString& arg0, int arg1 )
{
    TQByteArray data;
    TQDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    arg << arg1;
    emitDCOPSignal( "infoMessage(TQString,int)", data );
}

void K3bJobInterface::progress( int arg0 )
{
    TQByteArray data;
    TQDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "progress(int)", data );
}

void K3bJobInterface::subProgress( int arg0 )
{
    TQByteArray data;
    TQDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "subProgress(int)", data );
}

void K3bJobInterface::newTask( const TQString& arg0 )
{
    TQByteArray data;
    TQDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "newTask(TQString)", data );
}

void K3bJobInterface::newSubTask( const TQString& arg0 )
{
    TQByteArray data;
    TQDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "newSubTask(TQString)", data );
}

void K3bJobInterface::buffer( int arg0 )
{
    TQByteArray data;
    TQDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "buffer(int)", data );
}

void K3bJobInterface::deviceBuffer( int arg0 )
{
    TQByteArray data;
    TQDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "deviceBuffer(int)", data );
}

void K3bJobInterface::nextTrack( int arg0, int arg1 )
{
    TQByteArray data;
    TQDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    arg << arg1;
    emitDCOPSignal( "nextTrack(int,int)", data );
}


