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

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-tdenetwork/src/tdenetwork-trinity-14.1.6/kopete/plugins/statistics/statisticsdcopiface.h"

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


static const int StatisticsDCOPIface_fhash = 11;
static const char* const StatisticsDCOPIface_ftable[11][3] = {
    { "void", "dcopStatisticsDialog(TQString)", "dcopStatisticsDialog(TQString contactId)" },
    { "bool", "dcopWasOnline(TQString,int)", "dcopWasOnline(TQString id,int timeStamp)" },
    { "bool", "dcopWasOnline(TQString,TQString)", "dcopWasOnline(TQString id,TQString datetime)" },
    { "bool", "dcopWasAway(TQString,int)", "dcopWasAway(TQString id,int timeStamp)" },
    { "bool", "dcopWasAway(TQString,TQString)", "dcopWasAway(TQString id,TQString datetime)" },
    { "bool", "dcopWasOffline(TQString,int)", "dcopWasOffline(TQString id,int timeStamp)" },
    { "bool", "dcopWasOffline(TQString,TQString)", "dcopWasOffline(TQString id,TQString datetime)" },
    { "TQString", "dcopStatus(TQString,TQString)", "dcopStatus(TQString id,TQString datetime)" },
    { "TQString", "dcopStatus(TQString,int)", "dcopStatus(TQString id,int timeStamp)" },
    { "TQString", "dcopMainStatus(TQString,int)", "dcopMainStatus(TQString id,int timeStamp)" },
    { 0, 0, 0 }
};
static const int StatisticsDCOPIface_ftable_hiddens[10] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool StatisticsDCOPIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( StatisticsDCOPIface_fhash, true, false );
	for ( int i = 0; StatisticsDCOPIface_ftable[i][1]; i++ )
	    fdict->insert( StatisticsDCOPIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void dcopStatisticsDialog(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = StatisticsDCOPIface_ftable[0][0]; 
	dcopStatisticsDialog(arg0 );
    } break;
    case 1: { // bool dcopWasOnline(TQString,int)
	TQString arg0;
	int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = StatisticsDCOPIface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << dcopWasOnline(arg0, arg1 );
    } break;
    case 2: { // bool dcopWasOnline(TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = StatisticsDCOPIface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << dcopWasOnline(arg0, arg1 );
    } break;
    case 3: { // bool dcopWasAway(TQString,int)
	TQString arg0;
	int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = StatisticsDCOPIface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << dcopWasAway(arg0, arg1 );
    } break;
    case 4: { // bool dcopWasAway(TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = StatisticsDCOPIface_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << dcopWasAway(arg0, arg1 );
    } break;
    case 5: { // bool dcopWasOffline(TQString,int)
	TQString arg0;
	int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = StatisticsDCOPIface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << dcopWasOffline(arg0, arg1 );
    } break;
    case 6: { // bool dcopWasOffline(TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = StatisticsDCOPIface_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << dcopWasOffline(arg0, arg1 );
    } break;
    case 7: { // TQString dcopStatus(TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = StatisticsDCOPIface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << dcopStatus(arg0, arg1 );
    } break;
    case 8: { // TQString dcopStatus(TQString,int)
	TQString arg0;
	int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = StatisticsDCOPIface_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << dcopStatus(arg0, arg1 );
    } break;
    case 9: { // TQString dcopMainStatus(TQString,int)
	TQString arg0;
	int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = StatisticsDCOPIface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << dcopMainStatus(arg0, arg1 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


