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

#include "/tmp/buildd/tde-packaging/arch/tde-core/tde-tdelibs/src/tdelibs-trinity-14.1.6/tdeutils/tdecmoduleproxyIface.h"

#include <kdatastream.h>


static const char* const TDECModuleProxyIface_ftable[7][3] = {
    { "TQString", "applicationName()", "applicationName()" },
    { "void", "save()", "save()" },
    { "void", "load()", "load()" },
    { "void", "defaults()", "defaults()" },
    { "TQString", "quickHelp()", "quickHelp()" },
    { "bool", "changed()", "changed()" },
    { 0, 0, 0 }
};
static const int TDECModuleProxyIface_ftable_hiddens[6] = {
    0,
    0,
    0,
    0,
    0,
    0,
};

bool TDECModuleProxyIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == TDECModuleProxyIface_ftable[0][1] ) { // TQString applicationName()
	replyType = TDECModuleProxyIface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << applicationName( );
    } else if ( fun == TDECModuleProxyIface_ftable[1][1] ) { // void save()
	replyType = TDECModuleProxyIface_ftable[1][0]; 
	save( );
    } else if ( fun == TDECModuleProxyIface_ftable[2][1] ) { // void load()
	replyType = TDECModuleProxyIface_ftable[2][0]; 
	load( );
    } else if ( fun == TDECModuleProxyIface_ftable[3][1] ) { // void defaults()
	replyType = TDECModuleProxyIface_ftable[3][0]; 
	defaults( );
    } else if ( fun == TDECModuleProxyIface_ftable[4][1] ) { // TQString quickHelp()
	replyType = TDECModuleProxyIface_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << quickHelp( );
    } else if ( fun == TDECModuleProxyIface_ftable[5][1] ) { // bool changed()
	replyType = TDECModuleProxyIface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << changed( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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

void TDECModuleProxyIface::changed( bool arg0 )
{
    TQByteArray data;
    TQDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "changed(bool)", data );
}

void TDECModuleProxyIface::quickHelpChanged()
{
    TQByteArray data;
    emitDCOPSignal( "quickHelpChanged()", data );
}


#include <kdatastream.h>


static const char* const TDECModuleProxyRootDispatcher_ftable[3][3] = {
    { "void", "changed(bool)", "changed(bool c)" },
    { "void", "quickHelpChanged()", "quickHelpChanged()" },
    { 0, 0, 0 }
};
static const int TDECModuleProxyRootDispatcher_ftable_hiddens[2] = {
    0,
    0,
};

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

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

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


