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

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


static const int KopeteIface_fhash = 29;
static const char* const KopeteIface_ftable[27][3] = {
    { "TQStringList", "contacts()", "contacts()" },
    { "TQStringList", "reachableContacts()", "reachableContacts()" },
    { "TQStringList", "onlineContacts()", "onlineContacts()" },
    { "TQStringList", "fileTransferContacts()", "fileTransferContacts()" },
    { "TQStringList", "contactFileProtocols(TQString)", "contactFileProtocols(TQString displayName)" },
    { "TQStringList", "contactsStatus()", "contactsStatus()" },
    { "TQString", "messageContact(TQString,TQString)", "messageContact(TQString contactId,TQString messageText)" },
    { "TQString", "onlineStatus(TQString)", "onlineStatus(TQString metaContactId)" },
    { "void", "messageContactById(TQString)", "messageContactById(TQString metaContactId)" },
    { "bool", "addContact(TQString,TQString,TQString,TQString,TQString)", "addContact(TQString protocolName,TQString accountId,TQString contactId,TQString displayName,TQString groupName)" },
    { "TQStringList", "accounts()", "accounts()" },
    { "void", "connect(TQString,TQString)", "connect(TQString protocolName,TQString accountId)" },
    { "void", "disconnect(TQString,TQString)", "disconnect(TQString protocolName,TQString accountId)" },
    { "void", "connectAll()", "connectAll()" },
    { "void", "disconnectAll()", "disconnectAll()" },
    { "bool", "loadPlugin(TQString)", "loadPlugin(TQString name)" },
    { "bool", "unloadPlugin(TQString)", "unloadPlugin(TQString name)" },
    { "void", "setAway()", "setAway()" },
    { "void", "setAway(TQString)", "setAway(TQString msg)" },
    { "void", "setAway(TQString,bool)", "setAway(TQString msg,bool away)" },
    { "void", "setAvailable()", "setAvailable()" },
    { "void", "setAutoAway()", "setAutoAway()" },
    { "void", "setGlobalNickname(TQString)", "setGlobalNickname(TQString nickname)" },
    { "void", "setGlobalPhoto(KURL)", "setGlobalPhoto(KURL photoUrl)" },
    { "TQStringList", "contactsForDisplayName(TQString)", "contactsForDisplayName(TQString displayName)" },
    { "TQStringList", "metacontactsForContactId(TQString)", "metacontactsForContactId(TQString contactId)" },
    { 0, 0, 0 }
};
static const int KopeteIface_ftable_hiddens[26] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KopeteIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KopeteIface_fhash, true, false );
	for ( int i = 0; KopeteIface_ftable[i][1]; i++ )
	    fdict->insert( KopeteIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // TQStringList contacts()
	replyType = KopeteIface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << contacts( );
    } break;
    case 1: { // TQStringList reachableContacts()
	replyType = KopeteIface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << reachableContacts( );
    } break;
    case 2: { // TQStringList onlineContacts()
	replyType = KopeteIface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << onlineContacts( );
    } break;
    case 3: { // TQStringList fileTransferContacts()
	replyType = KopeteIface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << fileTransferContacts( );
    } break;
    case 4: { // TQStringList contactFileProtocols(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KopeteIface_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << contactFileProtocols(arg0 );
    } break;
    case 5: { // TQStringList contactsStatus()
	replyType = KopeteIface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << contactsStatus( );
    } break;
    case 6: { // TQString messageContact(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 = KopeteIface_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << messageContact(arg0, arg1 );
    } break;
    case 7: { // TQString onlineStatus(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KopeteIface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << onlineStatus(arg0 );
    } break;
    case 8: { // void messageContactById(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KopeteIface_ftable[8][0]; 
	messageContactById(arg0 );
    } break;
    case 9: { // bool addContact(TQString,TQString,TQString,TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	TQString arg3;
	TQString arg4;
	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;
	if (arg.atEnd()) return false;
	arg >> arg3;
	if (arg.atEnd()) return false;
	arg >> arg4;
	replyType = KopeteIface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << addContact(arg0, arg1, arg2, arg3, arg4 );
    } break;
    case 10: { // TQStringList accounts()
	replyType = KopeteIface_ftable[10][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << accounts( );
    } break;
    case 11: { // void connect(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 = KopeteIface_ftable[11][0]; 
	connect(arg0, arg1 );
    } break;
    case 12: { // void disconnect(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 = KopeteIface_ftable[12][0]; 
	disconnect(arg0, arg1 );
    } break;
    case 13: { // void connectAll()
	replyType = KopeteIface_ftable[13][0]; 
	connectAll( );
    } break;
    case 14: { // void disconnectAll()
	replyType = KopeteIface_ftable[14][0]; 
	disconnectAll( );
    } break;
    case 15: { // bool loadPlugin(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KopeteIface_ftable[15][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << loadPlugin(arg0 );
    } break;
    case 16: { // bool unloadPlugin(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KopeteIface_ftable[16][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << unloadPlugin(arg0 );
    } break;
    case 17: { // void setAway()
	replyType = KopeteIface_ftable[17][0]; 
	setAway( );
    } break;
    case 18: { // void setAway(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KopeteIface_ftable[18][0]; 
	setAway(arg0 );
    } break;
    case 19: { // void setAway(TQString,bool)
	TQString arg0;
	bool arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KopeteIface_ftable[19][0]; 
	setAway(arg0, arg1 );
    } break;
    case 20: { // void setAvailable()
	replyType = KopeteIface_ftable[20][0]; 
	setAvailable( );
    } break;
    case 21: { // void setAutoAway()
	replyType = KopeteIface_ftable[21][0]; 
	setAutoAway( );
    } break;
    case 22: { // void setGlobalNickname(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KopeteIface_ftable[22][0]; 
	setGlobalNickname(arg0 );
    } break;
    case 23: { // void setGlobalPhoto(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KopeteIface_ftable[23][0]; 
	setGlobalPhoto(arg0 );
    } break;
    case 24: { // TQStringList contactsForDisplayName(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KopeteIface_ftable[24][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << contactsForDisplayName(arg0 );
    } break;
    case 25: { // TQStringList metacontactsForContactId(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KopeteIface_ftable[25][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << metacontactsForContactId(arg0 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


