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

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-tdeaddons/src/tdeaddons-trinity-14.1.6/konq-plugins/sidebar/newsticker/nspanel.h"

#include <kdatastream.h>

namespace KSB_News {

static const char* const NSPanel_ftable[3][3] = {
    { "void", "emitDocumentUpdated(DCOPRef)", "emitDocumentUpdated(DCOPRef)" },
    { "void", "emitPixmapUpdated(DCOPRef)", "emitPixmapUpdated(DCOPRef)" },
    { 0, 0, 0 }
};
static const int NSPanel_ftable_hiddens[2] = {
    0,
    0,
};

bool NSPanel::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == NSPanel_ftable[0][1] ) { // void emitDocumentUpdated(DCOPRef)
	DCOPRef arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = NSPanel_ftable[0][0]; 
	emitDocumentUpdated(arg0 );
    } else if ( fun == NSPanel_ftable[1][1] ) { // void emitPixmapUpdated(DCOPRef)
	DCOPRef arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = NSPanel_ftable[1][0]; 
	emitPixmapUpdated(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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

} // namespace

