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

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

#include <kdatastream.h>

namespace Digikam {

static const char* const DCOPIface_ftable[3][3] = {
    { "ASYNC", "detectCamera()", "detectCamera()" },
    { "ASYNC", "downloadFrom(TQString)", "downloadFrom(TQString folder)" },
    { 0, 0, 0 }
};
static const int DCOPIface_ftable_hiddens[2] = {
    0,
    0,
};

bool DCOPIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == DCOPIface_ftable[0][1] ) { // void detectCamera()
	replyType = DCOPIface_ftable[0][0]; 
	detectCamera( );
    } else if ( fun == DCOPIface_ftable[1][1] ) { // void downloadFrom(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPIface_ftable[1][0]; 
	downloadFrom(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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

} // namespace

