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

#include <kdatastream.h>


static const char* const KNotify_ftable[7][3] = {
    { "void", "notify(QString,QString,QString,QString,QString,int,int)", "notify(QString event,QString fromApp,QString text,QString sound,QString file,int present,int level)" },
    { "void", "notify(QString,QString,QString,QString,QString,int,int,int)", "notify(QString event,QString fromApp,QString text,QString sound,QString file,int present,int level,int winId)" },
    { "void", "notify(QString,QString,QString,QString,QString,int,int,int,int)", "notify(QString event,QString fromApp,QString text,QString sound,QString 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 QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    if ( fun == KNotify_ftable[0][1] ) { // void notify(QString,QString,QString,QString,QString,int,int)
	QString arg0;
	QString arg1;
	QString arg2;
	QString arg3;
	QString arg4;
	int arg5;
	int arg6;
	QDataStream 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(QString,QString,QString,QString,QString,int,int,int)
	QString arg0;
	QString arg1;
	QString arg2;
	QString arg3;
	QString arg4;
	int arg5;
	int arg6;
	int arg7;
	QDataStream 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(QString,QString,QString,QString,QString,int,int,int,int)
	QString arg0;
	QString arg1;
	QString arg2;
	QString arg3;
	QString arg4;
	int arg5;
	int arg6;
	int arg7;
	int arg8;
	QDataStream 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;
	QDataStream 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;
	QCString func = KNotify_ftable[i][0];
	func += ' ';
	func += KNotify_ftable[i][2];
	funcs << func;
    }
    return funcs;
}


