From a3ddf28dd30c853002a9d6073823ca77aab5aff2 Mon Sep 17 00:00:00 2001 From: Emil Ivov Date: Sun, 9 Aug 2009 21:43:25 +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 --- .../impl/gui/main/call/MuteButton.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/net/java/sip/communicator/impl/gui/main/call/MuteButton.java b/src/net/java/sip/communicator/impl/gui/main/call/MuteButton.java index 9b0c10442..7d6672c60 100644 --- a/src/net/java/sip/communicator/impl/gui/main/call/MuteButton.java +++ b/src/net/java/sip/communicator/impl/gui/main/call/MuteButton.java @@ -27,7 +27,7 @@ public class MuteButton /** * Initializes a new MuteButton instance which is to mute the audio - * stream to a specific CallParticipant. + * stream to a specific CallPeer. * * @param call the Call to be associated with * the new instance and to have the audio stream sent to muted @@ -39,7 +39,7 @@ public MuteButton(Call call) /** * Initializes a new MuteButton instance which is to mute the audio - * stream to a specific CallParticipant. + * stream to a specific CallPeer. * * @param call the Call to be associated with * the new instance and to be put on/off hold upon performing @@ -81,7 +81,7 @@ public MuteButton(Call call, boolean isFullScreenMode, boolean isSelected) } /** * Represents the model of a toggle button that mutes the audio stream sent - * to a specific CallParticipant. + * to a specific CallPeer. */ private static class MuteButtonModel extends ToggleButtonModel @@ -89,14 +89,14 @@ private static class MuteButtonModel { /** - * The CallParticipant whose state is being adapted for the + * The CallPeer whose state is being adapted for the * purposes of depicting as a toggle button. */ private final Call call; /** * Initializes a new MuteButtonModel instance to represent the - * state of a specific CallParticipant as a toggle button. + * state of a specific CallPeer as a toggle button. * * @param call the Call whose state is to * be represented as a toggle button @@ -112,19 +112,19 @@ public void actionPerformed(ActionEvent evt) { if (call != null) { - Iterator participants + Iterator peers = call.getCallPeers(); - while (participants.hasNext()) + while (peers.hasNext()) { - CallPeer callParticipant = participants.next(); + CallPeer callPeer = peers.next(); OperationSetBasicTelephony telephony = (OperationSetBasicTelephony) call.getProtocolProvider() .getOperationSet(OperationSetBasicTelephony.class); - telephony.setMute( callParticipant, - !callParticipant.isMute()); + telephony.setMute( callPeer, + !callPeer.isMute()); fireItemStateChanged( new ItemEvent(this,