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

#include "/usr/src/ports/kdelibs3/kdelibs3-3.5.10-11.i686/src/kdelibs-3.5.10/kio/misc/kpac/proxyscout.h"

#include <kdatastream.h>

namespace KPAC {

static const char* const ProxyScout_ftable[4][3] = {
    { "QString", "proxyForURL(KURL)", "proxyForURL(KURL url)" },
    { "ASYNC", "blackListProxy(QString)", "blackListProxy(QString proxy)" },
    { "ASYNC", "reset()", "reset()" },
    { 0, 0, 0 }
};
static const int ProxyScout_ftable_hiddens[3] = {
    0,
    0,
    0,
};

bool ProxyScout::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    if ( fun == ProxyScout_ftable[0][1] ) { // QString proxyForURL(KURL)
	KURL arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = ProxyScout_ftable[0][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << proxyForURL(arg0 );
    } else if ( fun == ProxyScout_ftable[1][1] ) { // void blackListProxy(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = ProxyScout_ftable[1][0]; 
	blackListProxy(arg0 );
    } else if ( fun == ProxyScout_ftable[2][1] ) { // void reset()
	replyType = ProxyScout_ftable[2][0]; 
	reset( );
    } else {
	return KDEDModule::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList ProxyScout::interfaces()
{
    QCStringList ifaces = KDEDModule::interfaces();
    ifaces += "KPAC::ProxyScout";
    return ifaces;
}

QCStringList ProxyScout::functions()
{
    QCStringList funcs = KDEDModule::functions();
    for ( int i = 0; ProxyScout_ftable[i][2]; i++ ) {
	if (ProxyScout_ftable_hiddens[i])
	    continue;
	QCString func = ProxyScout_ftable[i][0];
	func += ' ';
	func += ProxyScout_ftable[i][2];
	funcs << func;
    }
    return funcs;
}

} // namespace

