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

#include "/tmp/buildd/tde-packaging/arch/tde-devel/tde-kxmleditor/src/kxmleditor-trinity-14.1.6/kxmleditor/dcopiface_shell.h"

#include <kdatastream.h>


static const char* const KXMLEditorShellIface_ftable[3][3] = {
    { "TQString", "Quit()", "Quit()" },
    { "ASYNC", "FileOpen()", "FileOpen()" },
    { 0, 0, 0 }
};
static const int KXMLEditorShellIface_ftable_hiddens[2] = {
    0,
    0,
};

bool KXMLEditorShellIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KXMLEditorShellIface_ftable[0][1] ) { // TQString Quit()
	replyType = KXMLEditorShellIface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << Quit( );
    } else if ( fun == KXMLEditorShellIface_ftable[1][1] ) { // void FileOpen()
	replyType = KXMLEditorShellIface_ftable[1][0]; 
	FileOpen( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


