aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Ivov <emcho@jitsi.org>2009-08-09 21:47:23 +0000
committerEmil Ivov <emcho@jitsi.org>2009-08-09 21:47:23 +0000
commitc6c5d80549cc89b7377677306d6eb897bfdab5db (patch)
treecf78941a913cf696a56428e263246911bcc82e11
parent055245b9ce6794f7c472c3558948fc9890c7c225 (diff)
downloadjitsi-c6c5d80549cc89b7377677306d6eb897bfdab5db.zip
jitsi-c6c5d80549cc89b7377677306d6eb897bfdab5db.tar.gz
jitsi-c6c5d80549cc89b7377677306d6eb897bfdab5db.tar.bz2
Renames occurrences of callParticipant to callPeer so that it would better reflect our new Call architecture that also includes conferencing and ConferenceMembers
-rw-r--r--src/net/java/sip/communicator/impl/gui/main/call/GuiCallRecord.java58
-rw-r--r--src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityMessageEvent.java2
2 files changed, 30 insertions, 30 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/call/GuiCallRecord.java b/src/net/java/sip/communicator/impl/gui/main/call/GuiCallRecord.java
index 8942cc5..b0a197f 100644
--- a/src/net/java/sip/communicator/impl/gui/main/call/GuiCallRecord.java
+++ b/src/net/java/sip/communicator/impl/gui/main/call/GuiCallRecord.java
@@ -14,78 +14,78 @@ import net.java.sip.communicator.service.callhistory.*;
* The <tt>GuiCallRecord</tt> is meant to be used in the call history to
* represent a history call record. It wraps a <tt>Call</tt> or a
* <tt>CallRecord</tt> object.
- *
+ *
* @author Yana Stamcheva
*/
public class GuiCallRecord
{
- private Vector<GuiCallPeerRecord> participants;
-
+ private Vector<GuiCallPeerRecord> peers;
+
private Date startTime;
-
+
private Date endTime;
-
+
/**
* Creates an instance of <tt>GuiCallRecord<tt>.
- * @param guiParticipantRecords participant records contained in this call
+ * @param guiPeerRecords peer records contained in this call
* record
* @param startTime call start time
* @param endTime call end time
*/
- public GuiCallRecord(Vector<GuiCallPeerRecord> guiParticipantRecords,
+ public GuiCallRecord(Vector<GuiCallPeerRecord> guiPeerRecords,
Date startTime,
Date endTime)
- {
+ {
this.startTime = startTime;
-
+
this.endTime = endTime;
-
- participants = guiParticipantRecords;
+
+ peers = guiPeerRecords;
}
-
+
/**
* Creates a <tt>GuiCallRecord</tt> from a <tt>CallRecord</tt>. The
* <tt>GuiCallRecord</tt> will be used in the call history.
- *
- * @param callRecord the <tt>CallParticipantRecord</tt>
+ *
+ * @param callRecord the <tt>CallPeerRecord</tt>
*/
public GuiCallRecord(CallRecord callRecord)
- {
+ {
this.startTime = callRecord.getStartTime();
-
+
this.endTime = callRecord.getEndTime();
-
- this.participants = new Vector<GuiCallPeerRecord>();
-
+
+ this.peers = new Vector<GuiCallPeerRecord>();
+
Iterator<CallPeerRecord> records = callRecord.getPeerRecords().iterator();
-
+
while(records.hasNext()) {
CallPeerRecord record
= records.next();
-
+
GuiCallPeerRecord newRecord
= new GuiCallPeerRecord(
record, callRecord.getDirection());
-
- this.participants.add(newRecord);
+
+ this.peers.add(newRecord);
}
}
-
+
public Date getEndTime()
{
return endTime;
}
- public Iterator<GuiCallPeerRecord> getParticipants()
+ public Iterator<GuiCallPeerRecord> getPeers()
{
- return participants.iterator();
+ return peers.iterator();
}
- public int getParticipantsCount()
+ public int getPeersCount()
{
- return participants.size();
+ return peers.size();
}
-
+
public Date getStartTime()
{
return startTime;
diff --git a/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityMessageEvent.java b/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityMessageEvent.java
index 34036e8..d69f00b 100644
--- a/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityMessageEvent.java
+++ b/src/net/java/sip/communicator/service/protocol/event/CallPeerSecurityMessageEvent.java
@@ -11,7 +11,7 @@ import java.util.*;
import net.java.sip.communicator.service.protocol.*;
/**
- * The <tt>CallParticipantSecurityFailedEvent</tt> is triggered whenever
+ * The <tt>CallPeerSecurityFailedEvent</tt> is triggered whenever
* a problem has occurred during call security process.
*
* @author Yana Stamcheva