Added markers for future work w.r.t. Away-support.

cefexperiments
Danny van Heumen 11 years ago
parent c6563bc46d
commit 12a4c45684

@ -2230,6 +2230,9 @@ public void onServerNumericMessage(final ServerNumericMessage msg)
switch (msg.getNumericCode())
{
case RPL_LISTSTART:
// TODO According to RFC2812 this message is obsolete and not in
// use anymore. Shouldn't be much of a problem, since we usually
// start with an empty list though.
synchronized (this.signal)
{
this.signal.getValue().clear();

@ -346,6 +346,7 @@ else if (status.getStatus() >= IrcStatusEnum.AWAY_THRESHOLD)
final String awayMessage;
if (statusMessage == null || statusMessage.isEmpty())
{
// FIXME replace with entry for default away message?
awayMessage =
IrcActivator.getResources().getI18NString(
"service.gui.AWAY_STATUS");
@ -358,7 +359,8 @@ else if (status.getStatus() >= IrcStatusEnum.AWAY_THRESHOLD)
}
else
{
// FIXME How to behave for status OFFLINE?
// There's nothing to do in case of OFFLINE, since the whole account
// will be unregistered.
}
}

@ -16,6 +16,13 @@
/**
* Manager for presence status of IRC connection.
*
* TODO Support for 'a' (Away) user mode. (Check this again, since I also see
* 'a' used for other purposes. This may be one of those ambiguous letters that
* every server interprets differently.)
*
* FIXME Verify implementation of AWAY status message (auto-answering by
* server).
*
* @author Danny van Heumen
*/
public class PresenceManager
@ -153,6 +160,9 @@ private PresenceListener()
{
}
/**
* Handle events for presence-related server replies.
*/
@Override
public void onServerNumericMessage(final ServerNumericMessage msg)
{
@ -184,6 +194,9 @@ public void onServerNumericMessage(final ServerNumericMessage msg)
}
}
/**
* In case the user quits, remove the presence listener.
*/
@Override
public void onUserQuit(final QuitMessage msg)
{

Loading…
Cancel
Save