/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from tdeimproxyiface.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/interfaces/tdeimproxy/library/tdeimproxyiface.h"

#include <kdatastream.h>


static const char* const KIMProxyIface_ftable[2][3] = {
    { "void", "contactPresenceChanged(TQString,TQCString,int)", "contactPresenceChanged(TQString uid,TQCString appId,int presence)" },
    { 0, 0, 0 }
};
static const int KIMProxyIface_ftable_hiddens[1] = {
    0,
};

bool KIMProxyIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KIMProxyIface_ftable[0][1] ) { // void contactPresenceChanged(TQString,TQCString,int)
	TQString arg0;
	TQCString arg1;
	int 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 = KIMProxyIface_ftable[0][0]; 
	contactPresenceChanged(arg0, arg1, arg2 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


