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

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-tdenetwork/src/tdenetwork-trinity-14.1.6/knewsticker/knewsticker.h"

#include <kdatastream.h>
#include <tqasciidict.h>


static const int KNewsTicker_fhash = 31;
static const char* const KNewsTicker_ftable[31][3] = {
    { "void", "reparseConfig()", "reparseConfig()" },
    { "void", "updateNews()", "updateNews()" },
    { "uint", "interval()", "interval()" },
    { "uint", "scrollingSpeed()", "scrollingSpeed()" },
    { "uint", "mouseWheelSpeed()", "mouseWheelSpeed()" },
    { "uint", "scrollingDirection()", "scrollingDirection()" },
    { "bool", "customNames()", "customNames()" },
    { "bool", "scrollMostRecentOnly()", "scrollMostRecentOnly()" },
    { "bool", "offlineMode()", "offlineMode()" },
    { "bool", "underlineHighlighted()", "underlineHighlighted()" },
    { "bool", "showIcons()", "showIcons()" },
    { "bool", "slowedScrolling()", "slowedScrolling()" },
    { "TQColor", "foregroundColor()", "foregroundColor()" },
    { "TQColor", "backgroundColor()", "backgroundColor()" },
    { "TQColor", "highlightedColor()", "highlightedColor()" },
    { "TQStringList", "newsSources()", "newsSources()" },
    { "void", "setInterval(uint)", "setInterval(uint)" },
    { "void", "setScrollingSpeed(uint)", "setScrollingSpeed(uint)" },
    { "void", "setMouseWheelSpeed(uint)", "setMouseWheelSpeed(uint)" },
    { "void", "setScrollingDirection(uint)", "setScrollingDirection(uint)" },
    { "void", "setCustomNames(bool)", "setCustomNames(bool)" },
    { "void", "setScrollMostRecentOnly(bool)", "setScrollMostRecentOnly(bool)" },
    { "void", "setOfflineMode(bool)", "setOfflineMode(bool)" },
    { "void", "setUnderlineHighlighted(bool)", "setUnderlineHighlighted(bool)" },
    { "void", "setShowIcons(bool)", "setShowIcons(bool)" },
    { "void", "setSlowedScrolling(bool)", "setSlowedScrolling(bool)" },
    { "void", "setForegroundColor(TQColor)", "setForegroundColor(TQColor)" },
    { "void", "setBackgroundColor(TQColor)", "setBackgroundColor(TQColor)" },
    { "void", "setHighlightedColor(TQColor)", "setHighlightedColor(TQColor)" },
    { "void", "setNewsSources(TQStringList)", "setNewsSources(TQStringList)" },
    { 0, 0, 0 }
};
static const int KNewsTicker_ftable_hiddens[30] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KNewsTicker::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KNewsTicker_fhash, true, false );
	for ( int i = 0; KNewsTicker_ftable[i][1]; i++ )
	    fdict->insert( KNewsTicker_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void reparseConfig()
	replyType = KNewsTicker_ftable[0][0]; 
	reparseConfig( );
    } break;
    case 1: { // void updateNews()
	replyType = KNewsTicker_ftable[1][0]; 
	updateNews( );
    } break;
    case 2: { // uint interval()
	replyType = KNewsTicker_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << interval( );
    } break;
    case 3: { // uint scrollingSpeed()
	replyType = KNewsTicker_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << scrollingSpeed( );
    } break;
    case 4: { // uint mouseWheelSpeed()
	replyType = KNewsTicker_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << mouseWheelSpeed( );
    } break;
    case 5: { // uint scrollingDirection()
	replyType = KNewsTicker_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << scrollingDirection( );
    } break;
    case 6: { // bool customNames()
	replyType = KNewsTicker_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << customNames( );
    } break;
    case 7: { // bool scrollMostRecentOnly()
	replyType = KNewsTicker_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << scrollMostRecentOnly( );
    } break;
    case 8: { // bool offlineMode()
	replyType = KNewsTicker_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << offlineMode( );
    } break;
    case 9: { // bool underlineHighlighted()
	replyType = KNewsTicker_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << underlineHighlighted( );
    } break;
    case 10: { // bool showIcons()
	replyType = KNewsTicker_ftable[10][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << showIcons( );
    } break;
    case 11: { // bool slowedScrolling()
	replyType = KNewsTicker_ftable[11][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << slowedScrolling( );
    } break;
    case 12: { // TQColor foregroundColor()
	replyType = KNewsTicker_ftable[12][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << foregroundColor( );
    } break;
    case 13: { // TQColor backgroundColor()
	replyType = KNewsTicker_ftable[13][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << backgroundColor( );
    } break;
    case 14: { // TQColor highlightedColor()
	replyType = KNewsTicker_ftable[14][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << highlightedColor( );
    } break;
    case 15: { // TQStringList newsSources()
	replyType = KNewsTicker_ftable[15][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << newsSources( );
    } break;
    case 16: { // void setInterval(uint)
	uint arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[16][0]; 
	setInterval(arg0 );
    } break;
    case 17: { // void setScrollingSpeed(uint)
	uint arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[17][0]; 
	setScrollingSpeed(arg0 );
    } break;
    case 18: { // void setMouseWheelSpeed(uint)
	uint arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[18][0]; 
	setMouseWheelSpeed(arg0 );
    } break;
    case 19: { // void setScrollingDirection(uint)
	uint arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[19][0]; 
	setScrollingDirection(arg0 );
    } break;
    case 20: { // void setCustomNames(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[20][0]; 
	setCustomNames(arg0 );
    } break;
    case 21: { // void setScrollMostRecentOnly(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[21][0]; 
	setScrollMostRecentOnly(arg0 );
    } break;
    case 22: { // void setOfflineMode(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[22][0]; 
	setOfflineMode(arg0 );
    } break;
    case 23: { // void setUnderlineHighlighted(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[23][0]; 
	setUnderlineHighlighted(arg0 );
    } break;
    case 24: { // void setShowIcons(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[24][0]; 
	setShowIcons(arg0 );
    } break;
    case 25: { // void setSlowedScrolling(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[25][0]; 
	setSlowedScrolling(arg0 );
    } break;
    case 26: { // void setForegroundColor(TQColor)
	TQColor arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[26][0]; 
	setForegroundColor(arg0 );
    } break;
    case 27: { // void setBackgroundColor(TQColor)
	TQColor arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[27][0]; 
	setBackgroundColor(arg0 );
    } break;
    case 28: { // void setHighlightedColor(TQColor)
	TQColor arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[28][0]; 
	setHighlightedColor(arg0 );
    } break;
    case 29: { // void setNewsSources(TQStringList)
	TQStringList arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KNewsTicker_ftable[29][0]; 
	setNewsSources(arg0 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


