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

#include <kdatastream.h>


static const char* const KAppDCOPInterface_ftable[7][3] = {
    { "void", "disableSessionManagement()", "disableSessionManagement()" },
    { "QCString", "startupId()", "startupId()" },
    { "QCString", "caption()", "caption()" },
    { "void", "quit()", "quit()" },
    { "void", "reparseConfiguration()", "reparseConfiguration()" },
    { "void", "updateUserTimestamp(ulong)", "updateUserTimestamp(ulong time)" },
    { 0, 0, 0 }
};
static const int KAppDCOPInterface_ftable_hiddens[6] = {
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KAppDCOPInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    if ( fun == KAppDCOPInterface_ftable[0][1] ) { // void disableSessionManagement()
	replyType = KAppDCOPInterface_ftable[0][0]; 
	disableSessionManagement( );
    } else if ( fun == KAppDCOPInterface_ftable[1][1] ) { // QCString startupId()
	replyType = KAppDCOPInterface_ftable[1][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << startupId( );
    } else if ( fun == KAppDCOPInterface_ftable[2][1] ) { // QCString caption()
	replyType = KAppDCOPInterface_ftable[2][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << caption( );
    } else if ( fun == KAppDCOPInterface_ftable[3][1] ) { // void quit()
	replyType = KAppDCOPInterface_ftable[3][0]; 
	quit( );
    } else if ( fun == KAppDCOPInterface_ftable[4][1] ) { // void reparseConfiguration()
	replyType = KAppDCOPInterface_ftable[4][0]; 
	reparseConfiguration( );
    } else if ( fun == KAppDCOPInterface_ftable[5][1] ) { // void updateUserTimestamp(ulong)
	ulong arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KAppDCOPInterface_ftable[5][0]; 
	updateUserTimestamp(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


