/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from kcmoduleproxyIface.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/kutils/kcmoduleproxyIface.h"

#include <kdatastream.h>


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

bool KCModuleProxyIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    if ( fun == KCModuleProxyIface_ftable[0][1] ) { // QString applicationName()
	replyType = KCModuleProxyIface_ftable[0][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << applicationName( );
    } else if ( fun == KCModuleProxyIface_ftable[1][1] ) { // void save()
	replyType = KCModuleProxyIface_ftable[1][0]; 
	save( );
    } else if ( fun == KCModuleProxyIface_ftable[2][1] ) { // void load()
	replyType = KCModuleProxyIface_ftable[2][0]; 
	load( );
    } else if ( fun == KCModuleProxyIface_ftable[3][1] ) { // void defaults()
	replyType = KCModuleProxyIface_ftable[3][0]; 
	defaults( );
    } else if ( fun == KCModuleProxyIface_ftable[4][1] ) { // QString quickHelp()
	replyType = KCModuleProxyIface_ftable[4][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << quickHelp( );
    } else if ( fun == KCModuleProxyIface_ftable[5][1] ) { // bool changed()
	replyType = KCModuleProxyIface_ftable[5][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << changed( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

QCStringList KCModuleProxyIface::functions()
{
    QCStringList funcs = DCOPObject::functions();
    for ( int i = 0; KCModuleProxyIface_ftable[i][2]; i++ ) {
	if (KCModuleProxyIface_ftable_hiddens[i])
	    continue;
	QCString func = KCModuleProxyIface_ftable[i][0];
	func += ' ';
	func += KCModuleProxyIface_ftable[i][2];
	funcs << func;
    }
    return funcs;
}

void KCModuleProxyIface::changed( bool arg0 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "changed(bool)", data );
}

void KCModuleProxyIface::quickHelpChanged()
{
    QByteArray data;
    emitDCOPSignal( "quickHelpChanged()", data );
}


#include <kdatastream.h>


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

bool KCModuleProxyRootDispatcher::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    if ( fun == KCModuleProxyRootDispatcher_ftable[0][1] ) { // void changed(bool)
	bool arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KCModuleProxyRootDispatcher_ftable[0][0]; 
	changed(arg0 );
    } else if ( fun == KCModuleProxyRootDispatcher_ftable[1][1] ) { // void quickHelpChanged()
	replyType = KCModuleProxyRootDispatcher_ftable[1][0]; 
	quickHelpChanged( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

QCStringList KCModuleProxyRootDispatcher::functions()
{
    QCStringList funcs = DCOPObject::functions();
    for ( int i = 0; KCModuleProxyRootDispatcher_ftable[i][2]; i++ ) {
	if (KCModuleProxyRootDispatcher_ftable_hiddens[i])
	    continue;
	QCString func = KCModuleProxyRootDispatcher_ftable[i][0];
	func += ' ';
	func += KCModuleProxyRootDispatcher_ftable[i][2];
	funcs << func;
    }
    return funcs;
}


