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

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

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


static const int DCOPInterface_fhash = 41;
static const char* const DCOPInterface_ftable[40][3] = {
    { "void", "slotToggleState()", "slotToggleState()" },
    { "void", "slotAddSession()", "slotAddSession()" },
    { "void", "slotRemoveSession()", "slotRemoveSession()" },
    { "void", "slotRemoveSession(int)", "slotRemoveSession(int session_id)" },
    { "void", "slotRemoveTerminal()", "slotRemoveTerminal()" },
    { "void", "slotRemoveTerminal(int)", "slotRemoveTerminal(int session_id)" },
    { "void", "slotRemoveTerminal(int,int)", "slotRemoveTerminal(int session_id,int terminal_id)" },
    { "void", "slotRenameSession(int,TQString)", "slotRenameSession(int session_id,TQString name)" },
    { "TQString", "sessionIdList()", "sessionIdList()" },
    { "TQString", "terminalIdList(int)", "terminalIdList(int session_id)" },
    { "int", "tabPositionForSessionId(int)", "tabPositionForSessionId(int session_id)" },
    { "int", "sessionIdForTabPosition(int)", "sessionIdForTabPosition(int position)" },
    { "int", "selectedSession()", "selectedSession()" },
    { "int", "selectedTerminal()", "selectedTerminal()" },
    { "void", "slotSelectSession(int)", "slotSelectSession(int session_id)" },
    { "void", "slotSelectTabPosition(int)", "slotSelectTabPosition(int position)" },
    { "TQString", "slotSessionName()", "slotSessionName()" },
    { "TQString", "slotSessionName(int)", "slotSessionName(int session_id)" },
    { "TQString", "slotSessionTitle()", "slotSessionTitle()" },
    { "TQString", "slotSessionTitle(int)", "slotSessionTitle(int session_id)" },
    { "TQString", "slotSessionTitle(int,int)", "slotSessionTitle(int session_id,int terminal_id)" },
    { "void", "slotSetSessionTitleText(TQString)", "slotSetSessionTitleText(TQString title)" },
    { "void", "slotSetSessionTitleText(int,TQString)", "slotSetSessionTitleText(int session_id,TQString title)" },
    { "void", "slotSetSessionTitleText(int,int,TQString)", "slotSetSessionTitleText(int session_id,int terminal_id,TQString title)" },
    { "void", "slotPasteClipboard()", "slotPasteClipboard()" },
    { "void", "slotPasteClipboard(int)", "slotPasteClipboard(int session_id)" },
    { "void", "slotPasteClipboard(int,int)", "slotPasteClipboard(int session_id,int terminal_id)" },
    { "void", "slotPasteSelection()", "slotPasteSelection()" },
    { "void", "slotPasteSelection(int)", "slotPasteSelection(int session_id)" },
    { "void", "slotPasteSelection(int,int)", "slotPasteSelection(int session_id,int terminal_id)" },
    { "void", "slotRunCommandInSession(TQString)", "slotRunCommandInSession(TQString command)" },
    { "void", "slotRunCommandInSession(int,TQString)", "slotRunCommandInSession(int session_id,TQString command)" },
    { "void", "slotRunCommandInSession(int,int,TQString)", "slotRunCommandInSession(int session_id,int terminal_id,TQString command)" },
    { "void", "slotSplitHorizontally()", "slotSplitHorizontally()" },
    { "void", "slotSplitHorizontally(int)", "slotSplitHorizontally(int session_id)" },
    { "void", "slotSplitHorizontally(int,int)", "slotSplitHorizontally(int session_id,int terminal_id)" },
    { "void", "slotSplitVertically()", "slotSplitVertically()" },
    { "void", "slotSplitVertically(int)", "slotSplitVertically(int session_id)" },
    { "void", "slotSplitVertically(int,int)", "slotSplitVertically(int session_id,int terminal_id)" },
    { 0, 0, 0 }
};
static const int DCOPInterface_ftable_hiddens[39] = {
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool DCOPInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( DCOPInterface_fhash, true, false );
	for ( int i = 0; DCOPInterface_ftable[i][1]; i++ )
	    fdict->insert( DCOPInterface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void slotToggleState()
	replyType = DCOPInterface_ftable[0][0]; 
	slotToggleState( );
    } break;
    case 1: { // void slotAddSession()
	replyType = DCOPInterface_ftable[1][0]; 
	slotAddSession( );
    } break;
    case 2: { // void slotRemoveSession()
	replyType = DCOPInterface_ftable[2][0]; 
	slotRemoveSession( );
    } break;
    case 3: { // void slotRemoveSession(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[3][0]; 
	slotRemoveSession(arg0 );
    } break;
    case 4: { // void slotRemoveTerminal()
	replyType = DCOPInterface_ftable[4][0]; 
	slotRemoveTerminal( );
    } break;
    case 5: { // void slotRemoveTerminal(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[5][0]; 
	slotRemoveTerminal(arg0 );
    } break;
    case 6: { // void slotRemoveTerminal(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 = DCOPInterface_ftable[6][0]; 
	slotRemoveTerminal(arg0, arg1 );
    } break;
    case 7: { // void slotRenameSession(int,TQString)
	int arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = DCOPInterface_ftable[7][0]; 
	slotRenameSession(arg0, arg1 );
    } break;
    case 8: { // TQString sessionIdList()
	replyType = DCOPInterface_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << sessionIdList( );
    } break;
    case 9: { // TQString terminalIdList(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << terminalIdList(arg0 );
    } break;
    case 10: { // int tabPositionForSessionId(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[10][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << tabPositionForSessionId(arg0 );
    } break;
    case 11: { // int sessionIdForTabPosition(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[11][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << sessionIdForTabPosition(arg0 );
    } break;
    case 12: { // int selectedSession()
	replyType = DCOPInterface_ftable[12][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << selectedSession( );
    } break;
    case 13: { // int selectedTerminal()
	replyType = DCOPInterface_ftable[13][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << selectedTerminal( );
    } break;
    case 14: { // void slotSelectSession(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[14][0]; 
	slotSelectSession(arg0 );
    } break;
    case 15: { // void slotSelectTabPosition(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[15][0]; 
	slotSelectTabPosition(arg0 );
    } break;
    case 16: { // TQString slotSessionName()
	replyType = DCOPInterface_ftable[16][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << slotSessionName( );
    } break;
    case 17: { // TQString slotSessionName(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[17][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << slotSessionName(arg0 );
    } break;
    case 18: { // TQString slotSessionTitle()
	replyType = DCOPInterface_ftable[18][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << slotSessionTitle( );
    } break;
    case 19: { // TQString slotSessionTitle(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[19][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << slotSessionTitle(arg0 );
    } break;
    case 20: { // TQString slotSessionTitle(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 = DCOPInterface_ftable[20][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << slotSessionTitle(arg0, arg1 );
    } break;
    case 21: { // void slotSetSessionTitleText(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[21][0]; 
	slotSetSessionTitleText(arg0 );
    } break;
    case 22: { // void slotSetSessionTitleText(int,TQString)
	int arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = DCOPInterface_ftable[22][0]; 
	slotSetSessionTitleText(arg0, arg1 );
    } break;
    case 23: { // void slotSetSessionTitleText(int,int,TQString)
	int arg0;
	int arg1;
	TQString 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 = DCOPInterface_ftable[23][0]; 
	slotSetSessionTitleText(arg0, arg1, arg2 );
    } break;
    case 24: { // void slotPasteClipboard()
	replyType = DCOPInterface_ftable[24][0]; 
	slotPasteClipboard( );
    } break;
    case 25: { // void slotPasteClipboard(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[25][0]; 
	slotPasteClipboard(arg0 );
    } break;
    case 26: { // void slotPasteClipboard(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 = DCOPInterface_ftable[26][0]; 
	slotPasteClipboard(arg0, arg1 );
    } break;
    case 27: { // void slotPasteSelection()
	replyType = DCOPInterface_ftable[27][0]; 
	slotPasteSelection( );
    } break;
    case 28: { // void slotPasteSelection(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[28][0]; 
	slotPasteSelection(arg0 );
    } break;
    case 29: { // void slotPasteSelection(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 = DCOPInterface_ftable[29][0]; 
	slotPasteSelection(arg0, arg1 );
    } break;
    case 30: { // void slotRunCommandInSession(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[30][0]; 
	slotRunCommandInSession(arg0 );
    } break;
    case 31: { // void slotRunCommandInSession(int,TQString)
	int arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = DCOPInterface_ftable[31][0]; 
	slotRunCommandInSession(arg0, arg1 );
    } break;
    case 32: { // void slotRunCommandInSession(int,int,TQString)
	int arg0;
	int arg1;
	TQString 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 = DCOPInterface_ftable[32][0]; 
	slotRunCommandInSession(arg0, arg1, arg2 );
    } break;
    case 33: { // void slotSplitHorizontally()
	replyType = DCOPInterface_ftable[33][0]; 
	slotSplitHorizontally( );
    } break;
    case 34: { // void slotSplitHorizontally(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[34][0]; 
	slotSplitHorizontally(arg0 );
    } break;
    case 35: { // void slotSplitHorizontally(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 = DCOPInterface_ftable[35][0]; 
	slotSplitHorizontally(arg0, arg1 );
    } break;
    case 36: { // void slotSplitVertically()
	replyType = DCOPInterface_ftable[36][0]; 
	slotSplitVertically( );
    } break;
    case 37: { // void slotSplitVertically(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPInterface_ftable[37][0]; 
	slotSplitVertically(arg0 );
    } break;
    case 38: { // void slotSplitVertically(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 = DCOPInterface_ftable[38][0]; 
	slotSplitVertically(arg0, arg1 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


