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

#include <kdatastream.h>


static const char* const TaskBarExtension_ftable[6][3] = {
    { "int", "panelSize()", "panelSize()" },
    { "int", "panelOrientation()", "panelOrientation()" },
    { "int", "panelPosition()", "panelPosition()" },
    { "void", "setPanelSize(int)", "setPanelSize(int size)" },
    { "void", "configure()", "configure()" },
    { 0, 0, 0 }
};
static const int TaskBarExtension_ftable_hiddens[5] = {
    0,
    0,
    0,
    0,
    0,
};

bool TaskBarExtension::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == TaskBarExtension_ftable[0][1] ) { // int panelSize()
	replyType = TaskBarExtension_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << panelSize( );
    } else if ( fun == TaskBarExtension_ftable[1][1] ) { // int panelOrientation()
	replyType = TaskBarExtension_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << panelOrientation( );
    } else if ( fun == TaskBarExtension_ftable[2][1] ) { // int panelPosition()
	replyType = TaskBarExtension_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << panelPosition( );
    } else if ( fun == TaskBarExtension_ftable[3][1] ) { // void setPanelSize(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TaskBarExtension_ftable[3][0]; 
	setPanelSize(arg0 );
    } else if ( fun == TaskBarExtension_ftable[4][1] ) { // void configure()
	replyType = TaskBarExtension_ftable[4][0]; 
	configure( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


