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

#include <kdatastream.h>

namespace KHC {

static const char* const MainWindow_ftable[5][3] = {
    { "void", "openUrl(TQString)", "openUrl(TQString url)" },
    { "void", "openUrl(TQString,TQCString)", "openUrl(TQString url,TQCString startup_id)" },
    { "void", "showHome()", "showHome()" },
    { "void", "lastSearch()", "lastSearch()" },
    { 0, 0, 0 }
};
static const int MainWindow_ftable_hiddens[4] = {
    0,
    0,
    0,
    0,
};

bool MainWindow::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == MainWindow_ftable[0][1] ) { // void openUrl(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = MainWindow_ftable[0][0]; 
	openUrl(arg0 );
    } else if ( fun == MainWindow_ftable[1][1] ) { // void openUrl(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 = MainWindow_ftable[1][0]; 
	openUrl(arg0, arg1 );
    } else if ( fun == MainWindow_ftable[2][1] ) { // void showHome()
	replyType = MainWindow_ftable[2][0]; 
	showHome( );
    } else if ( fun == MainWindow_ftable[3][1] ) { // void lastSearch()
	replyType = MainWindow_ftable[3][0]; 
	lastSearch( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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

} // namespace

