/** * Makes sure the application reacts when the network is unavailable. * * @param silent If true, wont show the "you lost contact..." message to the user. */ @Override public void networkWentDown(final boolean silent) { ui.showTopic(); if (isLoggedOn()) { if (!silent) { msgController.showSystemMessage("You lost contact with the network"); } } else { msgController.showSystemMessage("You logged off"); } }
/** * Makes sure the application reacts when the network is available. * * @param silent If true, wont show the "you are connected..." message to the user. */ @Override public void networkCameUp(final boolean silent) { // Network came up after a logon if (!isLoggedOn()) { runDelayedLogon(); sendLogOn(); } // Network came up after a timeout else { ui.showTopic(); if (!silent) { msgController.showSystemMessage("You are connected to the network again"); } messages.sendTopicRequestedMessage(getTopic()); messages.sendExposingMessage(); messages.sendGetTopicMessage(); messages.sendExposeMessage(); messages.sendIdleMessage(); } }