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

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


static const int KonqViewIface_fhash = 19;
static const char* const KonqViewIface_ftable[19][3] = {
    { "void", "openURL(TQString,TQString,TQString)", "openURL(TQString url,TQString locationBarURL,TQString nameFilter)" },
    { "void", "reload()", "reload()" },
    { "bool", "changeViewMode(TQString,TQString)", "changeViewMode(TQString serviceType,TQString serviceName)" },
    { "void", "lockHistory()", "lockHistory()" },
    { "void", "stop()", "stop()" },
    { "TQString", "url()", "url()" },
    { "TQString", "locationBarURL()", "locationBarURL()" },
    { "TQString", "serviceType()", "serviceType()" },
    { "TQStringList", "serviceTypes()", "serviceTypes()" },
    { "DCOPRef", "part()", "part()" },
    { "void", "enablePopupMenu(bool)", "enablePopupMenu(bool b)" },
    { "bool", "isPopupMenuEnabled()", "isPopupMenuEnabled()" },
    { "uint", "historyLength()", "historyLength()" },
    { "bool", "allowHTML()", "allowHTML()" },
    { "void", "goForward()", "goForward()" },
    { "void", "goBack()", "goBack()" },
    { "bool", "canGoBack()", "canGoBack()" },
    { "bool", "canGoForward()", "canGoForward()" },
    { 0, 0, 0 }
};
static const int KonqViewIface_ftable_hiddens[18] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KonqViewIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KonqViewIface_fhash, true, false );
	for ( int i = 0; KonqViewIface_ftable[i][1]; i++ )
	    fdict->insert( KonqViewIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void openURL(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 = KonqViewIface_ftable[0][0]; 
	openURL(arg0, arg1, arg2 );
    } break;
    case 1: { // void reload()
	replyType = KonqViewIface_ftable[1][0]; 
	reload( );
    } break;
    case 2: { // bool changeViewMode(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 = KonqViewIface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << changeViewMode(arg0, arg1 );
    } break;
    case 3: { // void lockHistory()
	replyType = KonqViewIface_ftable[3][0]; 
	lockHistory( );
    } break;
    case 4: { // void stop()
	replyType = KonqViewIface_ftable[4][0]; 
	stop( );
    } break;
    case 5: { // TQString url()
	replyType = KonqViewIface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << url( );
    } break;
    case 6: { // TQString locationBarURL()
	replyType = KonqViewIface_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << locationBarURL( );
    } break;
    case 7: { // TQString serviceType()
	replyType = KonqViewIface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << serviceType( );
    } break;
    case 8: { // TQStringList serviceTypes()
	replyType = KonqViewIface_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << serviceTypes( );
    } break;
    case 9: { // DCOPRef part()
	replyType = KonqViewIface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << part( );
    } break;
    case 10: { // void enablePopupMenu(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonqViewIface_ftable[10][0]; 
	enablePopupMenu(arg0 );
    } break;
    case 11: { // bool isPopupMenuEnabled()
	replyType = KonqViewIface_ftable[11][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isPopupMenuEnabled( );
    } break;
    case 12: { // uint historyLength()
	replyType = KonqViewIface_ftable[12][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << historyLength( );
    } break;
    case 13: { // bool allowHTML()
	replyType = KonqViewIface_ftable[13][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << allowHTML( );
    } break;
    case 14: { // void goForward()
	replyType = KonqViewIface_ftable[14][0]; 
	goForward( );
    } break;
    case 15: { // void goBack()
	replyType = KonqViewIface_ftable[15][0]; 
	goBack( );
    } break;
    case 16: { // bool canGoBack()
	replyType = KonqViewIface_ftable[16][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << canGoBack( );
    } break;
    case 17: { // bool canGoForward()
	replyType = KonqViewIface_ftable[17][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << canGoForward( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


