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

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

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


static const int KonvIdentityIface_fhash = 29;
static const char* const KonvIdentityIface_ftable[26][3] = {
    { "void", "setrealName(TQString,TQString)", "setrealName(TQString identity,TQString name)" },
    { "TQString", "getrealName(TQString)", "getrealName(TQString identity)" },
    { "void", "setIdent(TQString,TQString)", "setIdent(TQString identity,TQString ident)" },
    { "TQString", "getIdent(TQString)", "getIdent(TQString identity)" },
    { "void", "setNickname(TQString,int,TQString)", "setNickname(TQString identity,int index,TQString nick)" },
    { "TQString", "getNickname(TQString,int)", "getNickname(TQString identity,int index)" },
    { "void", "setBot(TQString,TQString)", "setBot(TQString identity,TQString bot)" },
    { "TQString", "getBot(TQString)", "getBot(TQString identity)" },
    { "void", "setPassword(TQString,TQString)", "setPassword(TQString identity,TQString password)" },
    { "TQString", "getPassword(TQString)", "getPassword(TQString identity)" },
    { "void", "setNicknameList(TQString,TQStringList)", "setNicknameList(TQString identity,TQStringList newList)" },
    { "TQStringList", "getNicknameList(TQString)", "getNicknameList(TQString identity)" },
    { "void", "setQuitReason(TQString,TQString)", "setQuitReason(TQString identity,TQString reason)" },
    { "TQString", "getQuitReason(TQString)", "getQuitReason(TQString identity)" },
    { "void", "setPartReason(TQString,TQString)", "setPartReason(TQString identity,TQString reason)" },
    { "TQString", "getPartReason(TQString)", "getPartReason(TQString identity)" },
    { "void", "setKickReason(TQString,TQString)", "setKickReason(TQString identity,TQString reason)" },
    { "TQString", "getKickReason(TQString)", "getKickReason(TQString identity)" },
    { "void", "setShowAwayMessage(TQString,bool)", "setShowAwayMessage(TQString identity,bool state)" },
    { "bool", "getShowAwayMessage(TQString)", "getShowAwayMessage(TQString identity)" },
    { "void", "setAwayMessage(TQString,TQString)", "setAwayMessage(TQString identity,TQString message)" },
    { "TQString", "getAwayMessage(TQString)", "getAwayMessage(TQString identity)" },
    { "void", "setReturnMessage(TQString,TQString)", "setReturnMessage(TQString identity,TQString message)" },
    { "TQString", "getReturnMessage(TQString)", "getReturnMessage(TQString identity)" },
    { "TQStringList", "listIdentities()", "listIdentities()" },
    { 0, 0, 0 }
};
static const int KonvIdentityIface_ftable_hiddens[25] = {
    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 KonvIdentityIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KonvIdentityIface_fhash, true, false );
	for ( int i = 0; KonvIdentityIface_ftable[i][1]; i++ )
	    fdict->insert( KonvIdentityIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void setrealName(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 = KonvIdentityIface_ftable[0][0]; 
	setrealName(arg0, arg1 );
    } break;
    case 1: { // TQString getrealName(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIdentityIface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getrealName(arg0 );
    } break;
    case 2: { // void setIdent(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 = KonvIdentityIface_ftable[2][0]; 
	setIdent(arg0, arg1 );
    } break;
    case 3: { // TQString getIdent(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIdentityIface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getIdent(arg0 );
    } break;
    case 4: { // void setNickname(TQString,int,TQString)
	TQString arg0;
	int arg1;
	TQString 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 = KonvIdentityIface_ftable[4][0]; 
	setNickname(arg0, arg1, arg2 );
    } break;
    case 5: { // TQString getNickname(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 = KonvIdentityIface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getNickname(arg0, arg1 );
    } break;
    case 6: { // void setBot(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 = KonvIdentityIface_ftable[6][0]; 
	setBot(arg0, arg1 );
    } break;
    case 7: { // TQString getBot(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIdentityIface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getBot(arg0 );
    } break;
    case 8: { // void setPassword(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 = KonvIdentityIface_ftable[8][0]; 
	setPassword(arg0, arg1 );
    } break;
    case 9: { // TQString getPassword(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIdentityIface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getPassword(arg0 );
    } break;
    case 10: { // void setNicknameList(TQString,TQStringList)
	TQString arg0;
	TQStringList arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KonvIdentityIface_ftable[10][0]; 
	setNicknameList(arg0, arg1 );
    } break;
    case 11: { // TQStringList getNicknameList(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIdentityIface_ftable[11][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getNicknameList(arg0 );
    } break;
    case 12: { // void setQuitReason(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 = KonvIdentityIface_ftable[12][0]; 
	setQuitReason(arg0, arg1 );
    } break;
    case 13: { // TQString getQuitReason(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIdentityIface_ftable[13][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getQuitReason(arg0 );
    } break;
    case 14: { // void setPartReason(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 = KonvIdentityIface_ftable[14][0]; 
	setPartReason(arg0, arg1 );
    } break;
    case 15: { // TQString getPartReason(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIdentityIface_ftable[15][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getPartReason(arg0 );
    } break;
    case 16: { // void setKickReason(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 = KonvIdentityIface_ftable[16][0]; 
	setKickReason(arg0, arg1 );
    } break;
    case 17: { // TQString getKickReason(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIdentityIface_ftable[17][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getKickReason(arg0 );
    } break;
    case 18: { // void setShowAwayMessage(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 = KonvIdentityIface_ftable[18][0]; 
	setShowAwayMessage(arg0, arg1 );
    } break;
    case 19: { // bool getShowAwayMessage(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIdentityIface_ftable[19][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getShowAwayMessage(arg0 );
    } break;
    case 20: { // void setAwayMessage(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 = KonvIdentityIface_ftable[20][0]; 
	setAwayMessage(arg0, arg1 );
    } break;
    case 21: { // TQString getAwayMessage(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIdentityIface_ftable[21][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getAwayMessage(arg0 );
    } break;
    case 22: { // void setReturnMessage(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 = KonvIdentityIface_ftable[22][0]; 
	setReturnMessage(arg0, arg1 );
    } break;
    case 23: { // TQString getReturnMessage(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIdentityIface_ftable[23][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getReturnMessage(arg0 );
    } break;
    case 24: { // TQStringList listIdentities()
	replyType = KonvIdentityIface_ftable[24][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << listIdentities( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


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


static const int KonvIface_fhash = 19;
static const char* const KonvIface_ftable[19][3] = {
    { "void", "setAway(TQString)", "setAway(TQString awaymessage)" },
    { "void", "setBack()", "setBack()" },
    { "void", "sayToAll(TQString)", "sayToAll(TQString message)" },
    { "void", "actionToAll(TQString)", "actionToAll(TQString message)" },
    { "void", "raw(TQString,TQString)", "raw(TQString server,TQString command)" },
    { "void", "say(TQString,TQString,TQString)", "say(TQString server,TQString target,TQString command)" },
    { "void", "info(TQString)", "info(TQString string)" },
    { "void", "debug(TQString)", "debug(TQString string)" },
    { "void", "error(TQString)", "error(TQString string)" },
    { "void", "insertMarkerLine()", "insertMarkerLine()" },
    { "void", "connectToServer(TQString,int,TQString,TQString)", "connectToServer(TQString address,int port,TQString channel,TQString password)" },
    { "TQString", "getNickname(TQString)", "getNickname(TQString serverid)" },
    { "TQString", "getAnyNickname()", "getAnyNickname()" },
    { "TQStringList", "listServers()", "listServers()" },
    { "TQStringList", "listConnectedServers()", "listConnectedServers()" },
    { "TQString", "getChannelEncoding(TQString,TQString)", "getChannelEncoding(TQString server,TQString channel)" },
    { "void", "setScreenSaverStarted()", "setScreenSaverStarted()" },
    { "void", "setScreenSaverStopped()", "setScreenSaverStopped()" },
    { 0, 0, 0 }
};
static const int KonvIface_ftable_hiddens[18] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KonvIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KonvIface_fhash, true, false );
	for ( int i = 0; KonvIface_ftable[i][1]; i++ )
	    fdict->insert( KonvIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void setAway(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIface_ftable[0][0]; 
	setAway(arg0 );
    } break;
    case 1: { // void setBack()
	replyType = KonvIface_ftable[1][0]; 
	setBack( );
    } break;
    case 2: { // void sayToAll(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIface_ftable[2][0]; 
	sayToAll(arg0 );
    } break;
    case 3: { // void actionToAll(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIface_ftable[3][0]; 
	actionToAll(arg0 );
    } break;
    case 4: { // void raw(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 = KonvIface_ftable[4][0]; 
	raw(arg0, arg1 );
    } break;
    case 5: { // void say(TQString,TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQString 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 = KonvIface_ftable[5][0]; 
	say(arg0, arg1, arg2 );
    } break;
    case 6: { // void info(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIface_ftable[6][0]; 
	info(arg0 );
    } break;
    case 7: { // void debug(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIface_ftable[7][0]; 
	debug(arg0 );
    } break;
    case 8: { // void error(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIface_ftable[8][0]; 
	error(arg0 );
    } break;
    case 9: { // void insertMarkerLine()
	replyType = KonvIface_ftable[9][0]; 
	insertMarkerLine( );
    } break;
    case 10: { // void connectToServer(TQString,int,TQString,TQString)
	TQString arg0;
	int arg1;
	TQString arg2;
	TQString arg3;
	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;
	replyType = KonvIface_ftable[10][0]; 
	connectToServer(arg0, arg1, arg2, arg3 );
    } break;
    case 11: { // TQString getNickname(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KonvIface_ftable[11][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getNickname(arg0 );
    } break;
    case 12: { // TQString getAnyNickname()
	replyType = KonvIface_ftable[12][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getAnyNickname( );
    } break;
    case 13: { // TQStringList listServers()
	replyType = KonvIface_ftable[13][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << listServers( );
    } break;
    case 14: { // TQStringList listConnectedServers()
	replyType = KonvIface_ftable[14][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << listConnectedServers( );
    } break;
    case 15: { // TQString getChannelEncoding(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 = KonvIface_ftable[15][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getChannelEncoding(arg0, arg1 );
    } break;
    case 16: { // void setScreenSaverStarted()
	replyType = KonvIface_ftable[16][0]; 
	setScreenSaverStarted( );
    } break;
    case 17: { // void setScreenSaverStopped()
	replyType = KonvIface_ftable[17][0]; 
	setScreenSaverStopped( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


