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

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-kompose/src/kompose-trinity-14.1.6/src/komposedcopiface.h"

#include <kdatastream.h>


static const char* const KomposeDcopIface_ftable[6][3] = {
    { "void", "createDefaultView()", "createDefaultView()" },
    { "void", "createVirtualDesktopView()", "createVirtualDesktopView()" },
    { "void", "createCurrentDesktopView()", "createCurrentDesktopView()" },
    { "void", "createWorldView()", "createWorldView()" },
    { "void", "closeCurrentView()", "closeCurrentView()" },
    { 0, 0, 0 }
};
static const int KomposeDcopIface_ftable_hiddens[5] = {
    0,
    0,
    0,
    0,
    0,
};

bool KomposeDcopIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KomposeDcopIface_ftable[0][1] ) { // void createDefaultView()
	replyType = KomposeDcopIface_ftable[0][0]; 
	createDefaultView( );
    } else if ( fun == KomposeDcopIface_ftable[1][1] ) { // void createVirtualDesktopView()
	replyType = KomposeDcopIface_ftable[1][0]; 
	createVirtualDesktopView( );
    } else if ( fun == KomposeDcopIface_ftable[2][1] ) { // void createCurrentDesktopView()
	replyType = KomposeDcopIface_ftable[2][0]; 
	createCurrentDesktopView( );
    } else if ( fun == KomposeDcopIface_ftable[3][1] ) { // void createWorldView()
	replyType = KomposeDcopIface_ftable[3][0]; 
	createWorldView( );
    } else if ( fun == KomposeDcopIface_ftable[4][1] ) { // void closeCurrentView()
	replyType = KomposeDcopIface_ftable[4][0]; 
	closeCurrentView( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


