From 756b2a847b86696233c8d4966ea5eb4344962e3e Mon Sep 17 00:00:00 2001 From: Emil Ivov Date: Sun, 9 Aug 2009 21:36:43 +0000 Subject: [PATCH] Renames occurrences of callParticipant to callPeer so that it would better reflect our new Call architecture that also includes conferencing and ConferenceMembers --- .../communicator/plugin/mailbox/Mailbox.java | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/src/net/java/sip/communicator/plugin/mailbox/Mailbox.java b/src/net/java/sip/communicator/plugin/mailbox/Mailbox.java index 6f196c175..2d39cb291 100644 --- a/src/net/java/sip/communicator/plugin/mailbox/Mailbox.java +++ b/src/net/java/sip/communicator/plugin/mailbox/Mailbox.java @@ -530,7 +530,7 @@ public void run() } /** - * Waits for call to enter in the + * Waits for call to enter in the * {@link #net.java.sip.communicator.protocol.CallState.CALL_ENDED} * state. * @@ -566,8 +566,8 @@ private void waitForCallEnd(Call call) } /** - * Goes through all participants in call and calls - * telephony.aswerCallParticipant() for every one of them. + * Goes through all peers in call and calls + * telephony.aswerCallPeer() for every one of them. * * @param call the Call that we'd like to answer. */ @@ -577,21 +577,20 @@ private void answerCall(Call call) = (OperationSetBasicTelephony)call .getProtocolProvider().getOperationSet( OperationSetBasicTelephony.class); - Iterator participants = call.getCallPeers(); + Iterator peers = call.getCallPeers(); - while(participants.hasNext()) + while(peers.hasNext()) { - CallPeer participant - = (CallPeer)participants.next(); + CallPeer peer = (CallPeer)peers.next(); try { - telephony.answerCallPeer(participant); + telephony.answerCallPeer(peer); } catch (OperationFailedException exc) { logger.error("Could not answer to : " - + participant + + peer + " caused by the following exception: " + exc.getMessage(), exc); @@ -600,8 +599,8 @@ private void answerCall(Call call) } /** - * Goes through all participants in call and calls - * telephony.hangupCallParticipant() for every one of them. + * Goes through all peers in call and calls + * telephony.hangupCallPeer() for every one of them. * * @param call the Call that we'd like to answer. */ @@ -613,21 +612,20 @@ private void hangupCall(Call call) OperationSetBasicTelephony.class); logger.info("Max Message Length Reached, Mailbox is" +" disconnecting the call"); - Iterator callParticipants = call.getCallPeers(); + Iterator callPeers = call.getCallPeers(); - while(callParticipants.hasNext()) + while(callPeers.hasNext()) { - CallPeer participant - = (CallPeer)callParticipants.next(); + CallPeer peer = callPeers.next(); try { - telephony.hangupCallPeer(participant); + telephony.hangupCallPeer(peer); } catch (OperationFailedException exc) { logger.error("Could not Hang up on : " - + participant + + peer + " caused by the following exception: " + exc, exc);