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

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


static const int PanelExtension_fhash = 23;
static const char* const PanelExtension_ftable[22][3] = {
    { "int", "panelSize()", "panelSize()" },
    { "int", "panelOrientation()", "panelOrientation()" },
    { "int", "panelPosition()", "panelPosition()" },
    { "void", "setPanelSize(int)", "setPanelSize(int size)" },
    { "void", "addKMenuButton()", "addKMenuButton()" },
    { "void", "addDesktopButton()", "addDesktopButton()" },
    { "void", "addWindowListButton()", "addWindowListButton()" },
    { "void", "addURLButton(TQString)", "addURLButton(TQString url)" },
    { "void", "addBrowserButton(TQString)", "addBrowserButton(TQString startDir)" },
    { "void", "addServiceButton(TQString)", "addServiceButton(TQString desktopEntry)" },
    { "void", "addServiceMenuButton(TQString,TQString)", "addServiceMenuButton(TQString name,TQString relPath)" },
    { "void", "addNonKDEAppButton(TQString,TQString,TQString,bool)", "addNonKDEAppButton(TQString filePath,TQString icon,TQString cmdLine,bool inTerm)" },
    { "void", "addNonKDEAppButton(TQString,TQString,TQString,TQString,TQString,bool)", "addNonKDEAppButton(TQString title,TQString description,TQString filePath,TQString icon,TQString cmdLine,bool inTerm)" },
    { "void", "addApplet(TQString)", "addApplet(TQString desktopFile)" },
    { "void", "addAppletContainer(TQString)", "addAppletContainer(TQString desktopFile)" },
    { "bool", "insertApplet(TQString,int)", "insertApplet(TQString desktopFile,int index)" },
    { "bool", "insertImmutableApplet(TQString,int)", "insertImmutableApplet(TQString desktopFile,int index)" },
    { "TQStringList", "listApplets()", "listApplets()" },
    { "bool", "removeApplet(int)", "removeApplet(int index)" },
    { "void", "restart()", "restart()" },
    { "void", "configure()", "configure()" },
    { 0, 0, 0 }
};
static const int PanelExtension_ftable_hiddens[21] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool PanelExtension::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( PanelExtension_fhash, true, false );
	for ( int i = 0; PanelExtension_ftable[i][1]; i++ )
	    fdict->insert( PanelExtension_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // int panelSize()
	replyType = PanelExtension_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << panelSize( );
    } break;
    case 1: { // int panelOrientation()
	replyType = PanelExtension_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << panelOrientation( );
    } break;
    case 2: { // int panelPosition()
	replyType = PanelExtension_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << panelPosition( );
    } break;
    case 3: { // void setPanelSize(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = PanelExtension_ftable[3][0]; 
	setPanelSize(arg0 );
    } break;
    case 4: { // void addKMenuButton()
	replyType = PanelExtension_ftable[4][0]; 
	addKMenuButton( );
    } break;
    case 5: { // void addDesktopButton()
	replyType = PanelExtension_ftable[5][0]; 
	addDesktopButton( );
    } break;
    case 6: { // void addWindowListButton()
	replyType = PanelExtension_ftable[6][0]; 
	addWindowListButton( );
    } break;
    case 7: { // void addURLButton(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = PanelExtension_ftable[7][0]; 
	addURLButton(arg0 );
    } break;
    case 8: { // void addBrowserButton(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = PanelExtension_ftable[8][0]; 
	addBrowserButton(arg0 );
    } break;
    case 9: { // void addServiceButton(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = PanelExtension_ftable[9][0]; 
	addServiceButton(arg0 );
    } break;
    case 10: { // void addServiceMenuButton(TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = PanelExtension_ftable[10][0]; 
	addServiceMenuButton(arg0, arg1 );
    } break;
    case 11: { // void addNonKDEAppButton(TQString,TQString,TQString,bool)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	bool arg3;
	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;
	if (arg.atEnd()) return false;
	arg >> arg3;
	replyType = PanelExtension_ftable[11][0]; 
	addNonKDEAppButton(arg0, arg1, arg2, arg3 );
    } break;
    case 12: { // void addNonKDEAppButton(TQString,TQString,TQString,TQString,TQString,bool)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	TQString arg3;
	TQString arg4;
	bool arg5;
	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;
	if (arg.atEnd()) return false;
	arg >> arg3;
	if (arg.atEnd()) return false;
	arg >> arg4;
	if (arg.atEnd()) return false;
	arg >> arg5;
	replyType = PanelExtension_ftable[12][0]; 
	addNonKDEAppButton(arg0, arg1, arg2, arg3, arg4, arg5 );
    } break;
    case 13: { // void addApplet(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = PanelExtension_ftable[13][0]; 
	addApplet(arg0 );
    } break;
    case 14: { // void addAppletContainer(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = PanelExtension_ftable[14][0]; 
	addAppletContainer(arg0 );
    } break;
    case 15: { // bool insertApplet(TQString,int)
	TQString arg0;
	int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = PanelExtension_ftable[15][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << insertApplet(arg0, arg1 );
    } break;
    case 16: { // bool insertImmutableApplet(TQString,int)
	TQString arg0;
	int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = PanelExtension_ftable[16][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << insertImmutableApplet(arg0, arg1 );
    } break;
    case 17: { // TQStringList listApplets()
	replyType = PanelExtension_ftable[17][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << listApplets( );
    } break;
    case 18: { // bool removeApplet(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = PanelExtension_ftable[18][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << removeApplet(arg0 );
    } break;
    case 19: { // void restart()
	replyType = PanelExtension_ftable[19][0]; 
	restart( );
    } break;
    case 20: { // void configure()
	replyType = PanelExtension_ftable[20][0]; 
	configure( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


