Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.callhistory
Class CallRecordImpl

java.lang.Object
  extended by net.java.sip.communicator.service.callhistory.CallRecord
      extended by net.java.sip.communicator.impl.callhistory.CallRecordImpl

public class CallRecordImpl
extends CallRecord

Add Source call to the CallRecord

Author:
Damian Minkov

Field Summary
 
Fields inherited from class net.java.sip.communicator.service.callhistory.CallRecord
direction, endReason, endTime, IN, OUT, peerRecords, protocolProvider, startTime
 
Constructor Summary
CallRecordImpl()
          Creates CallRecord
CallRecordImpl(String direction, Date startTime, Date endTime)
          Creates Call Record
 
Method Summary
 Call getSourceCall()
          The Call source of this record
 void setDirection(String direction)
          Sets the direction of the call IN or OUT
 void setEndReason(int endReason)
          This is the end reason of the call if any.
 void setEndTime(Date endTime)
          Set the time when the call finishes If some peer has no end Time set we set it also
 void setProtocolProvider(ProtocolProviderService pps)
          Sets the given ProtocolProviderService used for the call.
 void setSourceCall(Call sourceCall)
          The source call which this record servers
 void setStartTime(Date startTime)
          Sets the time when the call begins
 
Methods inherited from class net.java.sip.communicator.service.callhistory.CallRecord
findPeerRecord, getDirection, getEndReason, getEndTime, getPeerRecords, getProtocolProvider, getStartTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallRecordImpl

public CallRecordImpl()
Creates CallRecord


CallRecordImpl

public CallRecordImpl(String direction,
                      Date startTime,
                      Date endTime)
Creates Call Record

Parameters:
direction - String
startTime - Date
endTime - Date
Method Detail

getSourceCall

public Call getSourceCall()
The Call source of this record

Returns:
Call

setEndTime

public void setEndTime(Date endTime)
Set the time when the call finishes If some peer has no end Time set we set it also

Parameters:
endTime - Date

setStartTime

public void setStartTime(Date startTime)
Sets the time when the call begins

Parameters:
startTime - Date

setSourceCall

public void setSourceCall(Call sourceCall)
The source call which this record servers

Parameters:
sourceCall - Call

setDirection

public void setDirection(String direction)
Sets the direction of the call IN or OUT

Parameters:
direction - String

setProtocolProvider

public void setProtocolProvider(ProtocolProviderService pps)
Sets the given ProtocolProviderService used for the call.

Parameters:
pps - the ProtocolProviderService to set

setEndReason

public void setEndReason(int endReason)
This is the end reason of the call if any.

Parameters:
endReason - the reason code.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.