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

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-tdetoys/src/tdetoys-trinity-14.1.6/amor/AmorIface.h"

#include <kdatastream.h>


static const char* const AmorIface_ftable[6][3] = {
    { "void", "showTip(TQString)", "showTip(TQString tip)" },
    { "void", "showMessage(TQString)", "showMessage(TQString message)" },
    { "void", "showMessage(TQString,int)", "showMessage(TQString message,int msec)" },
    { "void", "screenSaverStopped()", "screenSaverStopped()" },
    { "void", "screenSaverStarted()", "screenSaverStarted()" },
    { 0, 0, 0 }
};
static const int AmorIface_ftable_hiddens[5] = {
    0,
    0,
    0,
    0,
    0,
};

bool AmorIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == AmorIface_ftable[0][1] ) { // void showTip(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmorIface_ftable[0][0]; 
	showTip(arg0 );
    } else if ( fun == AmorIface_ftable[1][1] ) { // void showMessage(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmorIface_ftable[1][0]; 
	showMessage(arg0 );
    } else if ( fun == AmorIface_ftable[2][1] ) { // void showMessage(TQString,int)
	TQString arg0;
	int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = AmorIface_ftable[2][0]; 
	showMessage(arg0, arg1 );
    } else if ( fun == AmorIface_ftable[3][1] ) { // void screenSaverStopped()
	replyType = AmorIface_ftable[3][0]; 
	screenSaverStopped( );
    } else if ( fun == AmorIface_ftable[4][1] ) { // void screenSaverStarted()
	replyType = AmorIface_ftable[4][0]; 
	screenSaverStarted( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


