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

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


static const int TDEHTMLPartIface_fhash = 37;
static const char* const TDEHTMLPartIface_ftable[37][3] = {
    { "KURL", "url()", "url()" },
    { "bool", "closeURL()", "closeURL()" },
    { "void", "setJScriptEnabled(bool)", "setJScriptEnabled(bool enable)" },
    { "bool", "jScriptEnabled()", "jScriptEnabled()" },
    { "void", "setMetaRefreshEnabled(bool)", "setMetaRefreshEnabled(bool enable)" },
    { "bool", "metaRefreshEnabled()", "metaRefreshEnabled()" },
    { "void", "setDNDEnabled(bool)", "setDNDEnabled(bool b)" },
    { "bool", "dndEnabled()", "dndEnabled()" },
    { "void", "setJavaEnabled(bool)", "setJavaEnabled(bool enable)" },
    { "bool", "javaEnabled()", "javaEnabled()" },
    { "void", "setPluginsEnabled(bool)", "setPluginsEnabled(bool enable)" },
    { "bool", "pluginsEnabled()", "pluginsEnabled()" },
    { "void", "setAutoloadImages(bool)", "setAutoloadImages(bool enable)" },
    { "bool", "autoloadImages()", "autoloadImages()" },
    { "void", "setOnlyLocalReferences(bool)", "setOnlyLocalReferences(bool enable)" },
    { "bool", "onlyLocalReferences()", "onlyLocalReferences()" },
    { "bool", "setEncoding(TQString)", "setEncoding(TQString name)" },
    { "TQString", "encoding()", "encoding()" },
    { "void", "setUserStyleSheet(TQString)", "setUserStyleSheet(TQString styleSheet)" },
    { "void", "setFixedFont(TQString)", "setFixedFont(TQString name)" },
    { "bool", "gotoAnchor(TQString)", "gotoAnchor(TQString name)" },
    { "bool", "nextAnchor()", "nextAnchor()" },
    { "bool", "prevAnchor()", "prevAnchor()" },
    { "void", "activateNode()", "activateNode()" },
    { "TQString", "selectedText()", "selectedText()" },
    { "void", "selectAll()", "selectAll()" },
    { "TQString", "lastModified()", "lastModified()" },
    { "ASYNC", "print(bool)", "print(bool quick)" },
    { "void", "debugRenderTree()", "debugRenderTree()" },
    { "void", "debugDOMTree()", "debugDOMTree()" },
    { "void", "viewDocumentSource()", "viewDocumentSource()" },
    { "void", "viewFrameSource()", "viewFrameSource()" },
    { "void", "saveBackground(TQString)", "saveBackground(TQString url)" },
    { "void", "saveDocument(TQString)", "saveDocument(TQString url)" },
    { "TQString", "evalJS(TQString)", "evalJS(TQString script)" },
    { "void", "stopAnimations()", "stopAnimations()" },
    { 0, 0, 0 }
};
static const int TDEHTMLPartIface_ftable_hiddens[36] = {
    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 TDEHTMLPartIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( TDEHTMLPartIface_fhash, true, false );
	for ( int i = 0; TDEHTMLPartIface_ftable[i][1]; i++ )
	    fdict->insert( TDEHTMLPartIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // KURL url()
	replyType = TDEHTMLPartIface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << url( );
    } break;
    case 1: { // bool closeURL()
	replyType = TDEHTMLPartIface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << closeURL( );
    } break;
    case 2: { // void setJScriptEnabled(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[2][0]; 
	setJScriptEnabled(arg0 );
    } break;
    case 3: { // bool jScriptEnabled()
	replyType = TDEHTMLPartIface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << jScriptEnabled( );
    } break;
    case 4: { // void setMetaRefreshEnabled(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[4][0]; 
	setMetaRefreshEnabled(arg0 );
    } break;
    case 5: { // bool metaRefreshEnabled()
	replyType = TDEHTMLPartIface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << metaRefreshEnabled( );
    } break;
    case 6: { // void setDNDEnabled(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[6][0]; 
	setDNDEnabled(arg0 );
    } break;
    case 7: { // bool dndEnabled()
	replyType = TDEHTMLPartIface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << dndEnabled( );
    } break;
    case 8: { // void setJavaEnabled(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[8][0]; 
	setJavaEnabled(arg0 );
    } break;
    case 9: { // bool javaEnabled()
	replyType = TDEHTMLPartIface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << javaEnabled( );
    } break;
    case 10: { // void setPluginsEnabled(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[10][0]; 
	setPluginsEnabled(arg0 );
    } break;
    case 11: { // bool pluginsEnabled()
	replyType = TDEHTMLPartIface_ftable[11][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << pluginsEnabled( );
    } break;
    case 12: { // void setAutoloadImages(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[12][0]; 
	setAutoloadImages(arg0 );
    } break;
    case 13: { // bool autoloadImages()
	replyType = TDEHTMLPartIface_ftable[13][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << autoloadImages( );
    } break;
    case 14: { // void setOnlyLocalReferences(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[14][0]; 
	setOnlyLocalReferences(arg0 );
    } break;
    case 15: { // bool onlyLocalReferences()
	replyType = TDEHTMLPartIface_ftable[15][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << onlyLocalReferences( );
    } break;
    case 16: { // bool setEncoding(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[16][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << setEncoding(arg0 );
    } break;
    case 17: { // TQString encoding()
	replyType = TDEHTMLPartIface_ftable[17][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << encoding( );
    } break;
    case 18: { // void setUserStyleSheet(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[18][0]; 
	setUserStyleSheet(arg0 );
    } break;
    case 19: { // void setFixedFont(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[19][0]; 
	setFixedFont(arg0 );
    } break;
    case 20: { // bool gotoAnchor(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[20][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << gotoAnchor(arg0 );
    } break;
    case 21: { // bool nextAnchor()
	replyType = TDEHTMLPartIface_ftable[21][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << nextAnchor( );
    } break;
    case 22: { // bool prevAnchor()
	replyType = TDEHTMLPartIface_ftable[22][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << prevAnchor( );
    } break;
    case 23: { // void activateNode()
	replyType = TDEHTMLPartIface_ftable[23][0]; 
	activateNode( );
    } break;
    case 24: { // TQString selectedText()
	replyType = TDEHTMLPartIface_ftable[24][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << selectedText( );
    } break;
    case 25: { // void selectAll()
	replyType = TDEHTMLPartIface_ftable[25][0]; 
	selectAll( );
    } break;
    case 26: { // TQString lastModified()
	replyType = TDEHTMLPartIface_ftable[26][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << lastModified( );
    } break;
    case 27: { // void print(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[27][0]; 
	print(arg0 );
    } break;
    case 28: { // void debugRenderTree()
	replyType = TDEHTMLPartIface_ftable[28][0]; 
	debugRenderTree( );
    } break;
    case 29: { // void debugDOMTree()
	replyType = TDEHTMLPartIface_ftable[29][0]; 
	debugDOMTree( );
    } break;
    case 30: { // void viewDocumentSource()
	replyType = TDEHTMLPartIface_ftable[30][0]; 
	viewDocumentSource( );
    } break;
    case 31: { // void viewFrameSource()
	replyType = TDEHTMLPartIface_ftable[31][0]; 
	viewFrameSource( );
    } break;
    case 32: { // void saveBackground(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[32][0]; 
	saveBackground(arg0 );
    } break;
    case 33: { // void saveDocument(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[33][0]; 
	saveDocument(arg0 );
    } break;
    case 34: { // TQString evalJS(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = TDEHTMLPartIface_ftable[34][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << evalJS(arg0 );
    } break;
    case 35: { // void stopAnimations()
	replyType = TDEHTMLPartIface_ftable[35][0]; 
	stopAnimations( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


