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

#include <kdatastream.h>

namespace KSB_News {

static const char* const KonqSidebar_News_ftable[3][3] = {
    { "void", "addedRSSSource(TQString)", "addedRSSSource(TQString)" },
    { "void", "removedRSSSource(TQString)", "removedRSSSource(TQString)" },
    { 0, 0, 0 }
};
static const int KonqSidebar_News_ftable_hiddens[2] = {
    0,
    0,
};

bool KonqSidebar_News::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KonqSidebar_News_ftable[0][1] ) { // void addedRSSSource(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonqSidebar_News_ftable[0][0]; 
	addedRSSSource(arg0 );
    } else if ( fun == KonqSidebar_News_ftable[1][1] ) { // void removedRSSSource(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonqSidebar_News_ftable[1][0]; 
	removedRSSSource(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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

} // namespace

