From 160bd718bf01a8df0221a13d4fa46e2708cc44ee Mon Sep 17 00:00:00 2001 From: Emil Ivov Date: Sun, 9 Aug 2009 21:44:42 +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/DialPanel.java | 6 +++--- .../impl/gui/main/call/HoldButton.java | 21 +++++++++---------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/net/java/sip/communicator/impl/gui/main/call/DialPanel.java b/src/net/java/sip/communicator/impl/gui/main/call/DialPanel.java index 63cc949ac..dca0a3559 100755 --- a/src/net/java/sip/communicator/impl/gui/main/call/DialPanel.java +++ b/src/net/java/sip/communicator/impl/gui/main/call/DialPanel.java @@ -49,7 +49,7 @@ public class DialPanel GuiActivator.getResources() .getSettingsInt("impl.gui.DIAL_PAD_VERTICAL_GAP"))); - private final java.util.List callParticipantsList = + private final java.util.List callPeersList = new LinkedList(); private MainCallPanel parentCallPanel; @@ -80,7 +80,7 @@ public DialPanel(Iterator callParticipants) // presses a dial button, so we put the iterator into a list. while (callParticipants.hasNext()) { - this.callParticipantsList.add(callParticipants.next()); + this.callPeersList.add(callParticipants.next()); } this.init(); @@ -410,7 +410,7 @@ public void actionPerformed(ActionEvent e) private void sendDtmfTone(DTMFTone dtmfTone) { Iterator callParticipants - = this.callParticipantsList.iterator(); + = this.callPeersList.iterator(); try { diff --git a/src/net/java/sip/communicator/impl/gui/main/call/HoldButton.java b/src/net/java/sip/communicator/impl/gui/main/call/HoldButton.java index 7e20f02f8..0c183feee 100644 --- a/src/net/java/sip/communicator/impl/gui/main/call/HoldButton.java +++ b/src/net/java/sip/communicator/impl/gui/main/call/HoldButton.java @@ -27,7 +27,7 @@ public class HoldButton /** * Initializes a new HoldButton instance which is to put a specific - * CallParticipant on/off hold. + * CallPeer on/off hold. * * @param call the Call to be associated with * the new instance and to be put on/off hold upon performing its @@ -40,7 +40,7 @@ public HoldButton(Call call) /** * Initializes a new HoldButton instance which is to put a specific - * CallParticipant on/off hold. + * CallPeer on/off hold. * * @param call the Call to be associated with * the new instance and to be put on/off hold upon performing @@ -85,7 +85,7 @@ public HoldButton( Call call, /** * Represents the model of a toggle button that puts an associated - * CallParticipant on/off hold. + * CallPeer on/off hold. */ private static class HoldButtonModel extends ToggleButtonModel @@ -93,14 +93,14 @@ private static class HoldButtonModel { /** - * 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 HoldButtonModel instance to represent - * the state of a specific CallParticipant as a toggle + * the state of a specific CallPeer as a toggle * button. * * @param call @@ -122,19 +122,18 @@ public void actionPerformed(ActionEvent evt) (OperationSetBasicTelephony) call.getProtocolProvider() .getOperationSet(OperationSetBasicTelephony.class); - Iterator participants - = call.getCallPeers(); + Iterator peers = call.getCallPeers(); - while (participants.hasNext()) + while (peers.hasNext()) { - CallPeer callParticipant = participants.next(); + CallPeer callPeer = peers.next(); try { if (isSelected()) - telephony.putOnHold(callParticipant); + telephony.putOnHold(callPeer); else - telephony.putOffHold(callParticipant); + telephony.putOffHold(callPeer); } catch (OperationFailedException ex) {