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

#include "/tmp/buildd/tde-packaging/arch/tde-devel/tde-tdesdk/src/tdesdk-trinity-14.1.6/kbabel/catalogmanager/catalogmanageriface.h"

#include <kdatastream.h>


static const char* const CatalogManagerIface_ftable[4][3] = {
    { "void", "setPreferredWindow(WId)", "setPreferredWindow(WId id)" },
    { "TQCString", "findNextFile()", "findNextFile()" },
    { "void", "updatedFile(TQCString)", "updatedFile(TQCString url)" },
    { 0, 0, 0 }
};
static const int CatalogManagerIface_ftable_hiddens[3] = {
    0,
    0,
    0,
};

bool CatalogManagerIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == CatalogManagerIface_ftable[0][1] ) { // void setPreferredWindow(WId)
	WId arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = CatalogManagerIface_ftable[0][0]; 
	setPreferredWindow(arg0 );
    } else if ( fun == CatalogManagerIface_ftable[1][1] ) { // TQCString findNextFile()
	replyType = CatalogManagerIface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << findNextFile( );
    } else if ( fun == CatalogManagerIface_ftable[2][1] ) { // void updatedFile(TQCString)
	TQCString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = CatalogManagerIface_ftable[2][0]; 
	updatedFile(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


