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

#include <kdatastream.h>
#include <tqasciidict.h>


static const int K3bInterface_fhash = 29;
static const char* const K3bInterface_ftable[24][3] = {
    { "DCOPRef", "createDataCDProject()", "createDataCDProject()" },
    { "DCOPRef", "createAudioCDProject()", "createAudioCDProject()" },
    { "DCOPRef", "createMixedCDProject()", "createMixedCDProject()" },
    { "DCOPRef", "createVideoCDProject()", "createVideoCDProject()" },
    { "DCOPRef", "createMovixCDProject()", "createMovixCDProject()" },
    { "DCOPRef", "createDataDVDProject()", "createDataDVDProject()" },
    { "DCOPRef", "createVideoDVDProject()", "createVideoDVDProject()" },
    { "DCOPRef", "createMovixDVDProject()", "createMovixDVDProject()" },
    { "DCOPRef", "currentProject()", "currentProject()" },
    { "DCOPRef", "openProject(KURL)", "openProject(KURL url)" },
    { "TQValueList<DCOPRef>", "projects()", "projects()" },
    { "void", "copyCd()", "copyCd()" },
    { "void", "copyDvd()", "copyDvd()" },
    { "void", "copyCd(KURL)", "copyCd(KURL dev)" },
    { "void", "copyDvd(KURL)", "copyDvd(KURL dev)" },
    { "void", "eraseCdrw()", "eraseCdrw()" },
    { "void", "formatDvd()", "formatDvd()" },
    { "void", "burnCdImage(KURL)", "burnCdImage(KURL url)" },
    { "void", "burnDvdImage(KURL)", "burnDvdImage(KURL url)" },
    { "void", "cddaRip(KURL)", "cddaRip(KURL dev)" },
    { "void", "addUrls(KURL::List)", "addUrls(KURL::List urls)" },
    { "void", "addUrl(KURL)", "addUrl(KURL url)" },
    { "bool", "blocked()", "blocked()" },
    { 0, 0, 0 }
};
static const int K3bInterface_ftable_hiddens[23] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool K3bInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( K3bInterface_fhash, true, false );
	for ( int i = 0; K3bInterface_ftable[i][1]; i++ )
	    fdict->insert( K3bInterface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // DCOPRef createDataCDProject()
	replyType = K3bInterface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createDataCDProject( );
    } break;
    case 1: { // DCOPRef createAudioCDProject()
	replyType = K3bInterface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createAudioCDProject( );
    } break;
    case 2: { // DCOPRef createMixedCDProject()
	replyType = K3bInterface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createMixedCDProject( );
    } break;
    case 3: { // DCOPRef createVideoCDProject()
	replyType = K3bInterface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createVideoCDProject( );
    } break;
    case 4: { // DCOPRef createMovixCDProject()
	replyType = K3bInterface_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createMovixCDProject( );
    } break;
    case 5: { // DCOPRef createDataDVDProject()
	replyType = K3bInterface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createDataDVDProject( );
    } break;
    case 6: { // DCOPRef createVideoDVDProject()
	replyType = K3bInterface_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createVideoDVDProject( );
    } break;
    case 7: { // DCOPRef createMovixDVDProject()
	replyType = K3bInterface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createMovixDVDProject( );
    } break;
    case 8: { // DCOPRef currentProject()
	replyType = K3bInterface_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << currentProject( );
    } break;
    case 9: { // DCOPRef openProject(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = K3bInterface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << openProject(arg0 );
    } break;
    case 10: { // TQValueList<DCOPRef> projects()
	replyType = K3bInterface_ftable[10][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << projects( );
    } break;
    case 11: { // void copyCd()
	replyType = K3bInterface_ftable[11][0]; 
	copyCd( );
    } break;
    case 12: { // void copyDvd()
	replyType = K3bInterface_ftable[12][0]; 
	copyDvd( );
    } break;
    case 13: { // void copyCd(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = K3bInterface_ftable[13][0]; 
	copyCd(arg0 );
    } break;
    case 14: { // void copyDvd(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = K3bInterface_ftable[14][0]; 
	copyDvd(arg0 );
    } break;
    case 15: { // void eraseCdrw()
	replyType = K3bInterface_ftable[15][0]; 
	eraseCdrw( );
    } break;
    case 16: { // void formatDvd()
	replyType = K3bInterface_ftable[16][0]; 
	formatDvd( );
    } break;
    case 17: { // void burnCdImage(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = K3bInterface_ftable[17][0]; 
	burnCdImage(arg0 );
    } break;
    case 18: { // void burnDvdImage(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = K3bInterface_ftable[18][0]; 
	burnDvdImage(arg0 );
    } break;
    case 19: { // void cddaRip(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = K3bInterface_ftable[19][0]; 
	cddaRip(arg0 );
    } break;
    case 20: { // void addUrls(KURL::List)
	KURL::List arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = K3bInterface_ftable[20][0]; 
	addUrls(arg0 );
    } break;
    case 21: { // void addUrl(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = K3bInterface_ftable[21][0]; 
	addUrl(arg0 );
    } break;
    case 22: { // bool blocked()
	replyType = K3bInterface_ftable[22][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << blocked( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


