Renames occurrences of callParticipant to callPeer so that it would better reflect our new Call architecture that also includes conferencing and ConferenceMembers

cusax-fix
Emil Ivov 17 years ago
parent 756b2a847b
commit ef884edaec

@ -52,7 +52,7 @@ public CallDialog(Call call, String callType)
GuiActivator.getResources().getI18NString("service.gui.CALL"));
this.callPanel
= new CallPanel(this, call, GuiCallParticipantRecord.INCOMING_CALL);
= new CallPanel(this, call, GuiCallPeerRecord.INCOMING_CALL);
this.setPreferredSize(new Dimension(500, 400));

@ -93,7 +93,7 @@ public void outgoingCallCreated(CallEvent event)
CallDialog callDialog
= CallManager.openCallDialog(sourceCall,
GuiCallParticipantRecord.OUTGOING_CALL);
GuiCallPeerRecord.OUTGOING_CALL);
activeCalls.put(sourceCall, callDialog);
}
@ -147,7 +147,7 @@ public void actionPerformed(ActionEvent e)
public static void answerCall(final Call call)
{
CallManager.openCallDialog(call,
GuiCallParticipantRecord.INCOMING_CALL);
GuiCallPeerRecord.INCOMING_CALL);
new AnswerCallThread(call).start();
}

@ -844,7 +844,7 @@ public String getCallType()
if (callDuration != null)
return callType;
else
return GuiCallParticipantRecord.INCOMING_CALL;
return GuiCallPeerRecord.INCOMING_CALL;
}
/**

@ -1,86 +0,0 @@
/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.gui.main.call;
import java.util.*;
import net.java.sip.communicator.service.callhistory.*;
import net.java.sip.communicator.util.*;
/**
* The <tt>GuiCallParticipantRecord</tt> is meant to be used in the call history
* to represent a history call participant record. It wraps a
* <tt>CallParticipant</tt> or a <tt>CallParticipantRecord</tt> object.
*
* @author Yana Stamcheva
*/
public class GuiCallParticipantRecord
{
public static final String INCOMING_CALL = "IncomingCall";
public static final String OUTGOING_CALL = "OutgoingCall";
private String direction;
private String participantName;
private Date startTime;
private Date callDuration;
public GuiCallParticipantRecord(String participantName,
String direction,
Date startTime,
Date callDuration)
{
this.direction = direction;
this.participantName = participantName;
this.startTime = startTime;
this.callDuration = callDuration;
}
public GuiCallParticipantRecord(CallPeerRecord participantRecord,
String direction)
{
this.direction = direction;
this.participantName = participantRecord.getPeerAddress();
this.startTime = participantRecord.getStartTime();
this.callDuration = GuiUtils.substractDates(
participantRecord.getEndTime(), startTime);
}
public String getDirection()
{
return direction;
}
/**
* Returns the duration of the contained participant call.
*
* @return the duration of the contained participant call
*/
public Date getDuration()
{
return callDuration;
}
public String getParticipantName()
{
return participantName;
}
public Date getStartTime()
{
return startTime;
}
}

@ -19,7 +19,7 @@
*/
public class GuiCallRecord
{
private Vector<GuiCallParticipantRecord> participants;
private Vector<GuiCallPeerRecord> participants;
private Date startTime;
@ -32,7 +32,7 @@ public class GuiCallRecord
* @param startTime call start time
* @param endTime call end time
*/
public GuiCallRecord(Vector<GuiCallParticipantRecord> guiParticipantRecords,
public GuiCallRecord(Vector<GuiCallPeerRecord> guiParticipantRecords,
Date startTime,
Date endTime)
{
@ -55,7 +55,7 @@ public GuiCallRecord(CallRecord callRecord)
this.endTime = callRecord.getEndTime();
this.participants = new Vector<GuiCallParticipantRecord>();
this.participants = new Vector<GuiCallPeerRecord>();
Iterator<CallPeerRecord> records = callRecord.getPeerRecords().iterator();
@ -63,8 +63,8 @@ public GuiCallRecord(CallRecord callRecord)
CallPeerRecord record
= records.next();
GuiCallParticipantRecord newRecord
= new GuiCallParticipantRecord(
GuiCallPeerRecord newRecord
= new GuiCallPeerRecord(
record, callRecord.getDirection());
this.participants.add(newRecord);
@ -76,7 +76,7 @@ public Date getEndTime()
return endTime;
}
public Iterator<GuiCallParticipantRecord> getParticipants()
public Iterator<GuiCallPeerRecord> getParticipants()
{
return participants.iterator();
}

Loading…
Cancel
Save