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

#include <kdatastream.h>


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

bool KAppDCOPInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KAppDCOPInterface_ftable[0][1] ) { // void disableSessionManagement()
	replyType = KAppDCOPInterface_ftable[0][0]; 
	disableSessionManagement( );
    } else if ( fun == KAppDCOPInterface_ftable[1][1] ) { // TQCString startupId()
	replyType = KAppDCOPInterface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << startupId( );
    } else if ( fun == KAppDCOPInterface_ftable[2][1] ) { // TQCString caption()
	replyType = KAppDCOPInterface_ftable[2][0]; 
	TQDataStream _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;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KAppDCOPInterface_ftable[5][0]; 
	updateUserTimestamp(arg0 );
    } else if ( fun == KAppDCOPInterface_ftable[6][1] ) { // void sendFakeKey(unsigned int)
	unsigned int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KAppDCOPInterface_ftable[6][0]; 
	sendFakeKey(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;
	TQCString func = KAppDCOPInterface_ftable[i][0];
	func += ' ';
	func += KAppDCOPInterface_ftable[i][2];
	funcs << func;
    }
    return funcs;
}


