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

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-tdenetwork/src/tdenetwork-trinity-14.1.6/kget/kget_iface.h"

#include <kdatastream.h>


static const char* const KGetIface_ftable[6][3] = {
    { "ASYNC", "addTransfers(KURL::List,TQString)", "addTransfers(KURL::List src,TQString destDir)" },
    { "bool", "isDropTargetVisible()", "isDropTargetVisible()" },
    { "void", "setDropTargetVisible(bool)", "setDropTargetVisible(bool setVisible)" },
    { "void", "setOfflineMode(bool)", "setOfflineMode(bool offline)" },
    { "bool", "isOfflineMode()", "isOfflineMode()" },
    { 0, 0, 0 }
};
static const int KGetIface_ftable_hiddens[5] = {
    0,
    0,
    0,
    0,
    0,
};

bool KGetIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KGetIface_ftable[0][1] ) { // void addTransfers(KURL::List,TQString)
	KURL::List arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KGetIface_ftable[0][0]; 
	addTransfers(arg0, arg1 );
    } else if ( fun == KGetIface_ftable[1][1] ) { // bool isDropTargetVisible()
	replyType = KGetIface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isDropTargetVisible( );
    } else if ( fun == KGetIface_ftable[2][1] ) { // void setDropTargetVisible(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KGetIface_ftable[2][0]; 
	setDropTargetVisible(arg0 );
    } else if ( fun == KGetIface_ftable[3][1] ) { // void setOfflineMode(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KGetIface_ftable[3][0]; 
	setOfflineMode(arg0 );
    } else if ( fun == KGetIface_ftable[4][1] ) { // bool isOfflineMode()
	replyType = KGetIface_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isOfflineMode( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


