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

#include "/tmp/buildd/tde-packaging/arch/tde-core/tde-tdebase/src/tdebase-trinity-14.1.6/kicker/kicker/core/kicker.h"

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


static const int Kicker_fhash = 19;
static const char* const Kicker_ftable[18][3] = {
    { "void", "configure()", "configure()" },
    { "void", "quit()", "quit()" },
    { "void", "restart()", "restart()" },
    { "void", "addExtension(TQString)", "addExtension(TQString desktopFile)" },
    { "void", "popupKMenu(TQPoint)", "popupKMenu(TQPoint globalPos)" },
    { "void", "clearQuickStartMenu()", "clearQuickStartMenu()" },
    { "bool", "highlightMenuItem(TQString)", "highlightMenuItem(TQString menuId)" },
    { "void", "showKMenu()", "showKMenu()" },
    { "void", "toggleShowDesktop()", "toggleShowDesktop()" },
    { "bool", "desktopShowing()", "desktopShowing()" },
    { "void", "showConfig(TQString,TQString,int)", "showConfig(TQString config,TQString configFile,int page)" },
    { "void", "showTaskBarConfig()", "showTaskBarConfig()" },
    { "void", "showTaskBarConfig(TQString)", "showTaskBarConfig(TQString configFile)" },
    { "void", "hideTaskBarConfig()", "hideTaskBarConfig()" },
    { "void", "reshowTaskBarConfig()", "reshowTaskBarConfig()" },
    { "void", "configureMenubar()", "configureMenubar()" },
    { "TQRect", "desktopIconsArea(int)", "desktopIconsArea(int screen)" },
    { 0, 0, 0 }
};
static const int Kicker_ftable_hiddens[17] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool Kicker::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( Kicker_fhash, true, false );
	for ( int i = 0; Kicker_ftable[i][1]; i++ )
	    fdict->insert( Kicker_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void configure()
	replyType = Kicker_ftable[0][0]; 
	configure( );
    } break;
    case 1: { // void quit()
	replyType = Kicker_ftable[1][0]; 
	quit( );
    } break;
    case 2: { // void restart()
	replyType = Kicker_ftable[2][0]; 
	restart( );
    } break;
    case 3: { // void addExtension(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = Kicker_ftable[3][0]; 
	addExtension(arg0 );
    } break;
    case 4: { // void popupKMenu(TQPoint)
	TQPoint arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = Kicker_ftable[4][0]; 
	popupKMenu(arg0 );
    } break;
    case 5: { // void clearQuickStartMenu()
	replyType = Kicker_ftable[5][0]; 
	clearQuickStartMenu( );
    } break;
    case 6: { // bool highlightMenuItem(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = Kicker_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << highlightMenuItem(arg0 );
    } break;
    case 7: { // void showKMenu()
	replyType = Kicker_ftable[7][0]; 
	showKMenu( );
    } break;
    case 8: { // void toggleShowDesktop()
	replyType = Kicker_ftable[8][0]; 
	toggleShowDesktop( );
    } break;
    case 9: { // bool desktopShowing()
	replyType = Kicker_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << desktopShowing( );
    } break;
    case 10: { // void showConfig(TQString,TQString,int)
	TQString arg0;
	TQString arg1;
	int arg2;
	TQDataStream 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;
	replyType = Kicker_ftable[10][0]; 
	showConfig(arg0, arg1, arg2 );
    } break;
    case 11: { // void showTaskBarConfig()
	replyType = Kicker_ftable[11][0]; 
	showTaskBarConfig( );
    } break;
    case 12: { // void showTaskBarConfig(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = Kicker_ftable[12][0]; 
	showTaskBarConfig(arg0 );
    } break;
    case 13: { // void hideTaskBarConfig()
	replyType = Kicker_ftable[13][0]; 
	hideTaskBarConfig( );
    } break;
    case 14: { // void reshowTaskBarConfig()
	replyType = Kicker_ftable[14][0]; 
	reshowTaskBarConfig( );
    } break;
    case 15: { // void configureMenubar()
	replyType = Kicker_ftable[15][0]; 
	configureMenubar( );
    } break;
    case 16: { // TQRect desktopIconsArea(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = Kicker_ftable[16][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << desktopIconsArea(arg0 );
    } break;
    default: 
	return KUniqueApplication::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList Kicker::interfaces()
{
    QCStringList ifaces = KUniqueApplication::interfaces();
    ifaces += "Kicker";
    return ifaces;
}

QCStringList Kicker::functions()
{
    QCStringList funcs = KUniqueApplication::functions();
    for ( int i = 0; Kicker_ftable[i][2]; i++ ) {
	if (Kicker_ftable_hiddens[i])
	    continue;
	TQCString func = Kicker_ftable[i][0];
	func += ' ';
	func += Kicker_ftable[i][2];
	funcs << func;
    }
    return funcs;
}

void Kicker::desktopIconsAreaChanged( TQRect arg0, int arg1 )
{
    TQByteArray data;
    TQDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    arg << arg1;
    emitDCOPSignal( "desktopIconsAreaChanged(TQRect,int)", data );
}


