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

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


static const int KonquerorIface_fhash = 29;
static const char* const KonquerorIface_ftable[26][3] = {
    { "DCOPRef", "openBrowserWindow(TQString)", "openBrowserWindow(TQString url)" },
    { "DCOPRef", "openBrowserWindowASN(TQString,TQCString)", "openBrowserWindowASN(TQString url,TQCString startup_id)" },
    { "DCOPRef", "createNewWindow(TQString)", "createNewWindow(TQString url)" },
    { "DCOPRef", "createNewWindowASN(TQString,TQCString,bool)", "createNewWindowASN(TQString url,TQCString startup_id,bool tempFile)" },
    { "DCOPRef", "createNewWindowWithSelection(TQString,TQStringList)", "createNewWindowWithSelection(TQString url,TQStringList filesToSelect)" },
    { "DCOPRef", "createNewWindowWithSelectionASN(TQString,TQStringList,TQCString)", "createNewWindowWithSelectionASN(TQString url,TQStringList filesToSelect,TQCString startup_id)" },
    { "DCOPRef", "createNewWindow(TQString,TQString,bool)", "createNewWindow(TQString url,TQString mimetype,bool tempFile)" },
    { "DCOPRef", "createNewWindowASN(TQString,TQString,TQCString,bool)", "createNewWindowASN(TQString url,TQString mimetype,TQCString startup_id,bool tempFile)" },
    { "DCOPRef", "createBrowserWindowFromProfile(TQString)", "createBrowserWindowFromProfile(TQString path)" },
    { "DCOPRef", "createBrowserWindowFromProfileASN(TQString,TQCString)", "createBrowserWindowFromProfileASN(TQString path,TQCString startup_id)" },
    { "DCOPRef", "createBrowserWindowFromProfile(TQString,TQString)", "createBrowserWindowFromProfile(TQString path,TQString filename)" },
    { "DCOPRef", "createBrowserWindowFromProfileASN(TQString,TQString,TQCString)", "createBrowserWindowFromProfileASN(TQString path,TQString filename,TQCString startup_id)" },
    { "DCOPRef", "createBrowserWindowFromProfileAndURL(TQString,TQString,TQString)", "createBrowserWindowFromProfileAndURL(TQString path,TQString filename,TQString url)" },
    { "DCOPRef", "createBrowserWindowFromProfileAndURLASN(TQString,TQString,TQString,TQCString)", "createBrowserWindowFromProfileAndURLASN(TQString path,TQString filename,TQString url,TQCString startup_id)" },
    { "DCOPRef", "createBrowserWindowFromProfileAndURL(TQString,TQString,TQString,TQString)", "createBrowserWindowFromProfileAndURL(TQString path,TQString filename,TQString url,TQString mimetype)" },
    { "DCOPRef", "createBrowserWindowFromProfileAndURLASN(TQString,TQString,TQString,TQString,TQCString)", "createBrowserWindowFromProfileAndURLASN(TQString path,TQString filename,TQString url,TQString mimetype,TQCString startup_id)" },
    { "ASYNC", "reparseConfiguration()", "reparseConfiguration()" },
    { "TQString", "crashLogFile()", "crashLogFile()" },
    { "TQValueList<DCOPRef>", "getWindows()", "getWindows()" },
    { "ASYNC", "updateProfileList()", "updateProfileList()" },
    { "ASYNC", "addToCombo(TQString,TQCString)", "addToCombo(TQString,TQCString)" },
    { "ASYNC", "removeFromCombo(TQString,TQCString)", "removeFromCombo(TQString,TQCString)" },
    { "ASYNC", "comboCleared(TQCString)", "comboCleared(TQCString)" },
    { "bool", "processCanBeReused(int)", "processCanBeReused(int screen)" },
    { "ASYNC", "terminatePreloaded()", "terminatePreloaded()" },
    { 0, 0, 0 }
};
static const int KonquerorIface_ftable_hiddens[25] = {
    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 KonquerorIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KonquerorIface_fhash, true, false );
	for ( int i = 0; KonquerorIface_ftable[i][1]; i++ )
	    fdict->insert( KonquerorIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // DCOPRef openBrowserWindow(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonquerorIface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << openBrowserWindow(arg0 );
    } break;
    case 1: { // DCOPRef openBrowserWindowASN(TQString,TQCString)
	TQString arg0;
	TQCString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KonquerorIface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << openBrowserWindowASN(arg0, arg1 );
    } break;
    case 2: { // DCOPRef createNewWindow(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonquerorIface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createNewWindow(arg0 );
    } break;
    case 3: { // DCOPRef createNewWindowASN(TQString,TQCString,bool)
	TQString arg0;
	TQCString arg1;
	bool 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 = KonquerorIface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createNewWindowASN(arg0, arg1, arg2 );
    } break;
    case 4: { // DCOPRef createNewWindowWithSelection(TQString,TQStringList)
	TQString arg0;
	TQStringList arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KonquerorIface_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createNewWindowWithSelection(arg0, arg1 );
    } break;
    case 5: { // DCOPRef createNewWindowWithSelectionASN(TQString,TQStringList,TQCString)
	TQString arg0;
	TQStringList arg1;
	TQCString 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 = KonquerorIface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createNewWindowWithSelectionASN(arg0, arg1, arg2 );
    } break;
    case 6: { // DCOPRef createNewWindow(TQString,TQString,bool)
	TQString arg0;
	TQString arg1;
	bool 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 = KonquerorIface_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createNewWindow(arg0, arg1, arg2 );
    } break;
    case 7: { // DCOPRef createNewWindowASN(TQString,TQString,TQCString,bool)
	TQString arg0;
	TQString arg1;
	TQCString 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 = KonquerorIface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createNewWindowASN(arg0, arg1, arg2, arg3 );
    } break;
    case 8: { // DCOPRef createBrowserWindowFromProfile(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonquerorIface_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createBrowserWindowFromProfile(arg0 );
    } break;
    case 9: { // DCOPRef createBrowserWindowFromProfileASN(TQString,TQCString)
	TQString arg0;
	TQCString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KonquerorIface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createBrowserWindowFromProfileASN(arg0, arg1 );
    } break;
    case 10: { // DCOPRef createBrowserWindowFromProfile(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 = KonquerorIface_ftable[10][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createBrowserWindowFromProfile(arg0, arg1 );
    } break;
    case 11: { // DCOPRef createBrowserWindowFromProfileASN(TQString,TQString,TQCString)
	TQString arg0;
	TQString arg1;
	TQCString 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 = KonquerorIface_ftable[11][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createBrowserWindowFromProfileASN(arg0, arg1, arg2 );
    } break;
    case 12: { // DCOPRef createBrowserWindowFromProfileAndURL(TQString,TQString,TQString)
	TQString arg0;
	TQString 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 = KonquerorIface_ftable[12][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createBrowserWindowFromProfileAndURL(arg0, arg1, arg2 );
    } break;
    case 13: { // DCOPRef createBrowserWindowFromProfileAndURLASN(TQString,TQString,TQString,TQCString)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	TQCString 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 = KonquerorIface_ftable[13][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createBrowserWindowFromProfileAndURLASN(arg0, arg1, arg2, arg3 );
    } break;
    case 14: { // DCOPRef createBrowserWindowFromProfileAndURL(TQString,TQString,TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	TQString 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 = KonquerorIface_ftable[14][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createBrowserWindowFromProfileAndURL(arg0, arg1, arg2, arg3 );
    } break;
    case 15: { // DCOPRef createBrowserWindowFromProfileAndURLASN(TQString,TQString,TQString,TQString,TQCString)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	TQString arg3;
	TQCString arg4;
	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;
	replyType = KonquerorIface_ftable[15][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << createBrowserWindowFromProfileAndURLASN(arg0, arg1, arg2, arg3, arg4 );
    } break;
    case 16: { // void reparseConfiguration()
	replyType = KonquerorIface_ftable[16][0]; 
	reparseConfiguration( );
    } break;
    case 17: { // TQString crashLogFile()
	replyType = KonquerorIface_ftable[17][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << crashLogFile( );
    } break;
    case 18: { // TQValueList<DCOPRef> getWindows()
	replyType = KonquerorIface_ftable[18][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getWindows( );
    } break;
    case 19: { // void updateProfileList()
	replyType = KonquerorIface_ftable[19][0]; 
	updateProfileList( );
    } break;
    case 20: { // void addToCombo(TQString,TQCString)
	TQString arg0;
	TQCString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KonquerorIface_ftable[20][0]; 
	addToCombo(arg0, arg1 );
    } break;
    case 21: { // void removeFromCombo(TQString,TQCString)
	TQString arg0;
	TQCString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KonquerorIface_ftable[21][0]; 
	removeFromCombo(arg0, arg1 );
    } break;
    case 22: { // void comboCleared(TQCString)
	TQCString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonquerorIface_ftable[22][0]; 
	comboCleared(arg0 );
    } break;
    case 23: { // bool processCanBeReused(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonquerorIface_ftable[23][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << processCanBeReused(arg0 );
    } break;
    case 24: { // void terminatePreloaded()
	replyType = KonquerorIface_ftable[24][0]; 
	terminatePreloaded( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


