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

#include <kdatastream.h>


static const char* const KNotify_ftable[7][3] = {
    { "void", "notify(TQString,TQString,TQString,TQString,TQString,int,int)", "notify(TQString event,TQString fromApp,TQString text,TQString sound,TQString file,int present,int level)" },
    { "void", "notify(TQString,TQString,TQString,TQString,TQString,int,int,int)", "notify(TQString event,TQString fromApp,TQString text,TQString sound,TQString file,int present,int level,int winId)" },
    { "void", "notify(TQString,TQString,TQString,TQString,TQString,int,int,int,int)", "notify(TQString event,TQString fromApp,TQString text,TQString sound,TQString file,int present,int level,int winId,int eventId)" },
    { "void", "reconfigure()", "reconfigure()" },
    { "void", "setVolume(int)", "setVolume(int volume)" },
    { "void", "sessionReady()", "sessionReady()" },
    { 0, 0, 0 }
};
static const int KNotify_ftable_hiddens[6] = {
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KNotify::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KNotify_ftable[0][1] ) { // void notify(TQString,TQString,TQString,TQString,TQString,int,int)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	TQString arg3;
	TQString arg4;
	int arg5;
	int arg6;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	if (arg.atEnd()) return false;
	arg >> arg2;
	if (arg.atEnd()) return false;
	arg >> arg3;
	if (arg.atEnd()) return false;
	arg >> arg4;
	if (arg.atEnd()) return false;
	arg >> arg5;
	if (arg.atEnd()) return false;
	arg >> arg6;
	replyType = KNotify_ftable[0][0]; 
	notify(arg0, arg1, arg2, arg3, arg4, arg5, arg6 );
    } else if ( fun == KNotify_ftable[1][1] ) { // void notify(TQString,TQString,TQString,TQString,TQString,int,int,int)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	TQString arg3;
	TQString arg4;
	int arg5;
	int arg6;
	int arg7;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	if (arg.atEnd()) return false;
	arg >> arg2;
	if (arg.atEnd()) return false;
	arg >> arg3;
	if (arg.atEnd()) return false;
	arg >> arg4;
	if (arg.atEnd()) return false;
	arg >> arg5;
	if (arg.atEnd()) return false;
	arg >> arg6;
	if (arg.atEnd()) return false;
	arg >> arg7;
	replyType = KNotify_ftable[1][0]; 
	notify(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 );
    } else if ( fun == KNotify_ftable[2][1] ) { // void notify(TQString,TQString,TQString,TQString,TQString,int,int,int,int)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	TQString arg3;
	TQString arg4;
	int arg5;
	int arg6;
	int arg7;
	int arg8;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	if (arg.atEnd()) return false;
	arg >> arg2;
	if (arg.atEnd()) return false;
	arg >> arg3;
	if (arg.atEnd()) return false;
	arg >> arg4;
	if (arg.atEnd()) return false;
	arg >> arg5;
	if (arg.atEnd()) return false;
	arg >> arg6;
	if (arg.atEnd()) return false;
	arg >> arg7;
	if (arg.atEnd()) return false;
	arg >> arg8;
	replyType = KNotify_ftable[2][0]; 
	notify(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 );
    } else if ( fun == KNotify_ftable[3][1] ) { // void reconfigure()
	replyType = KNotify_ftable[3][0]; 
	reconfigure( );
    } else if ( fun == KNotify_ftable[4][1] ) { // void setVolume(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNotify_ftable[4][0]; 
	setVolume(arg0 );
    } else if ( fun == KNotify_ftable[5][1] ) { // void sessionReady()
	replyType = KNotify_ftable[5][0]; 
	sessionReady( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


