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

#include <kdatastream.h>


static const char* const KonqSidebarDelicious_ftable[4][3] = {
    { "TQStringList", "tags()", "tags()" },
    { "TQStringList", "bookmarks()", "bookmarks()" },
    { "void", "newBookmark()", "newBookmark()" },
    { 0, 0, 0 }
};
static const int KonqSidebarDelicious_ftable_hiddens[3] = {
    0,
    0,
    0,
};

bool KonqSidebarDelicious::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KonqSidebarDelicious_ftable[0][1] ) { // TQStringList tags()
	replyType = KonqSidebarDelicious_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << tags( );
    } else if ( fun == KonqSidebarDelicious_ftable[1][1] ) { // TQStringList bookmarks()
	replyType = KonqSidebarDelicious_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << bookmarks( );
    } else if ( fun == KonqSidebarDelicious_ftable[2][1] ) { // void newBookmark()
	replyType = KonqSidebarDelicious_ftable[2][0]; 
	newBookmark( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


