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

#include "/tmp/buildd/tde-packaging/arch/tde-base/tde-tdeutils/src/tdeutils-trinity-14.1.6/klaptopdaemon/laptop_daemon.h"

#include <kdatastream.h>


static const char* const laptop_daemon_ftable[3][3] = {
    { "void", "restart()", "restart()" },
    { "void", "quit()", "quit()" },
    { 0, 0, 0 }
};
static const int laptop_daemon_ftable_hiddens[2] = {
    0,
    0,
};

bool laptop_daemon::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == laptop_daemon_ftable[0][1] ) { // void restart()
	replyType = laptop_daemon_ftable[0][0]; 
	restart( );
    } else if ( fun == laptop_daemon_ftable[1][1] ) { // void quit()
	replyType = laptop_daemon_ftable[1][0]; 
	quit( );
    } else {
	return KDEDModule::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList laptop_daemon::interfaces()
{
    QCStringList ifaces = KDEDModule::interfaces();
    ifaces += "laptop_daemon";
    return ifaces;
}

QCStringList laptop_daemon::functions()
{
    QCStringList funcs = KDEDModule::functions();
    for ( int i = 0; laptop_daemon_ftable[i][2]; i++ ) {
	if (laptop_daemon_ftable_hiddens[i])
	    continue;
	TQCString func = laptop_daemon_ftable[i][0];
	func += ' ';
	func += laptop_daemon_ftable[i][2];
	funcs << func;
    }
    return funcs;
}


