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

#include "/tmp/buildd/tde-packaging/arch/tde-core/tde-tdelibs/src/tdelibs-trinity-14.1.6/tdeui/tdemainwindowiface.h"

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


static const int TDEMainWindowInterface_fhash = 29;
static const char* const TDEMainWindowInterface_ftable[24][3] = {
    { "QCStringList", "actions()", "actions()" },
    { "bool", "activateAction(TQCString)", "activateAction(TQCString action)" },
    { "bool", "disableAction(TQCString)", "disableAction(TQCString action)" },
    { "bool", "enableAction(TQCString)", "enableAction(TQCString action)" },
    { "bool", "actionIsEnabled(TQCString)", "actionIsEnabled(TQCString action)" },
    { "TQCString", "actionToolTip(TQCString)", "actionToolTip(TQCString action)" },
    { "DCOPRef", "action(TQCString)", "action(TQCString name)" },
    { "TQMap<TQCString,DCOPRef>", "actionMap()", "actionMap()" },
    { "int", "getWinID()", "getWinID()" },
    { "void", "grabWindowToClipBoard()", "grabWindowToClipBoard()" },
    { "void", "hide()", "hide()" },
    { "void", "maximize()", "maximize()" },
    { "void", "minimize()", "minimize()" },
    { "void", "resize(int,int)", "resize(int newWidth,int newHeight)" },
    { "void", "move(int,int)", "move(int newX,int newY)" },
    { "void", "setGeometry(int,int,int,int)", "setGeometry(int newX,int newY,int newWidth,int newHeight)" },
    { "void", "raise()", "raise()" },
    { "void", "lower()", "lower()" },
    { "void", "restore()", "restore()" },
    { "void", "show()", "show()" },
    { "void", "close()", "close()" },
    { "void", "setActiveWindow()", "setActiveWindow()" },
    { "void", "setActiveWindowFocused()", "setActiveWindowFocused()" },
    { 0, 0, 0 }
};
static const int TDEMainWindowInterface_ftable_hiddens[23] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool TDEMainWindowInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( TDEMainWindowInterface_fhash, true, false );
	for ( int i = 0; TDEMainWindowInterface_ftable[i][1]; i++ )
	    fdict->insert( TDEMainWindowInterface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // QCStringList actions()
	replyType = TDEMainWindowInterface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << actions( );
    } break;
    case 1: { // bool activateAction(TQCString)
	TQCString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEMainWindowInterface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << activateAction(arg0 );
    } break;
    case 2: { // bool disableAction(TQCString)
	TQCString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEMainWindowInterface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << disableAction(arg0 );
    } break;
    case 3: { // bool enableAction(TQCString)
	TQCString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEMainWindowInterface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << enableAction(arg0 );
    } break;
    case 4: { // bool actionIsEnabled(TQCString)
	TQCString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEMainWindowInterface_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << actionIsEnabled(arg0 );
    } break;
    case 5: { // TQCString actionToolTip(TQCString)
	TQCString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEMainWindowInterface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << actionToolTip(arg0 );
    } break;
    case 6: { // DCOPRef action(TQCString)
	TQCString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEMainWindowInterface_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << action(arg0 );
    } break;
    case 7: { // TQMap<TQCString,DCOPRef> actionMap()
	replyType = TDEMainWindowInterface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << actionMap( );
    } break;
    case 8: { // int getWinID()
	replyType = TDEMainWindowInterface_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getWinID( );
    } break;
    case 9: { // void grabWindowToClipBoard()
	replyType = TDEMainWindowInterface_ftable[9][0]; 
	grabWindowToClipBoard( );
    } break;
    case 10: { // void hide()
	replyType = TDEMainWindowInterface_ftable[10][0]; 
	hide( );
    } break;
    case 11: { // void maximize()
	replyType = TDEMainWindowInterface_ftable[11][0]; 
	maximize( );
    } break;
    case 12: { // void minimize()
	replyType = TDEMainWindowInterface_ftable[12][0]; 
	minimize( );
    } break;
    case 13: { // void resize(int,int)
	int arg0;
	int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = TDEMainWindowInterface_ftable[13][0]; 
	resize(arg0, arg1 );
    } break;
    case 14: { // void move(int,int)
	int arg0;
	int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = TDEMainWindowInterface_ftable[14][0]; 
	move(arg0, arg1 );
    } break;
    case 15: { // void setGeometry(int,int,int,int)
	int arg0;
	int arg1;
	int arg2;
	int 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 = TDEMainWindowInterface_ftable[15][0]; 
	setGeometry(arg0, arg1, arg2, arg3 );
    } break;
    case 16: { // void raise()
	replyType = TDEMainWindowInterface_ftable[16][0]; 
	raise( );
    } break;
    case 17: { // void lower()
	replyType = TDEMainWindowInterface_ftable[17][0]; 
	lower( );
    } break;
    case 18: { // void restore()
	replyType = TDEMainWindowInterface_ftable[18][0]; 
	restore( );
    } break;
    case 19: { // void show()
	replyType = TDEMainWindowInterface_ftable[19][0]; 
	show( );
    } break;
    case 20: { // void close()
	replyType = TDEMainWindowInterface_ftable[20][0]; 
	close( );
    } break;
    case 21: { // void setActiveWindow()
	replyType = TDEMainWindowInterface_ftable[21][0]; 
	setActiveWindow( );
    } break;
    case 22: { // void setActiveWindowFocused()
	replyType = TDEMainWindowInterface_ftable[22][0]; 
	setActiveWindowFocused( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


