public interface CallHistoryService
Modifier and Type | Method and Description |
---|---|
void |
addCallHistoryRecordListener(CallHistoryPeerRecordListener listener)
Adding CallHistoryRecordListener listener to the list.
|
void |
addSearchProgressListener(CallHistorySearchProgressListener listener)
Adding progress listener for monitoring progress of search process
|
void |
eraseLocallyStoredHistory()
Permanently removes all locally stored call history.
|
java.util.Collection<CallRecord> |
findByEndDate(java.util.Date endDate)
Returns all the calls made before the given date.
|
java.util.Collection<CallRecord> |
findByEndDate(MetaContact contact,
java.util.Date endDate)
Returns all the calls made by all the contacts
in the supplied contact before the given date.
|
CallHistoryQuery |
findByPeer(java.lang.String address,
int recordCount)
Find the calls made by the supplied peer address
|
java.util.Collection<CallRecord> |
findByPeriod(java.util.Date startDate,
java.util.Date endDate)
Returns all the calls made between the given dates.
|
java.util.Collection<CallRecord> |
findByPeriod(MetaContact contact,
java.util.Date startDate,
java.util.Date endDate)
Returns all the calls made by all the contacts
in the supplied contact between the given dates.
|
java.util.Collection<CallRecord> |
findByStartDate(java.util.Date startDate)
Returns all the calls made after the given date.
|
java.util.Collection<CallRecord> |
findByStartDate(MetaContact contact,
java.util.Date startDate)
Returns all the calls made by all the contacts
in the supplied contact after the given date.
|
java.util.Collection<CallRecord> |
findLast(int count)
Returns the supplied number of recent calls.
|
java.util.Collection<CallRecord> |
findLast(MetaContact contact,
int count)
Returns the supplied number of recent calls made by all the contacts
in the supplied contact.
|
void |
removeCallHistoryRecordListener(CallHistoryPeerRecordListener listener)
Removing CallHistoryRecordListener listener
|
void |
removeSearchProgressListener(CallHistorySearchProgressListener listener)
Removing progress listener
|
void |
updateCallRecordPeerSecondaryAddress(java.util.Date date,
java.lang.String peerAddress,
java.lang.String address)
Updates the secondary address field of call record.
|
java.util.Collection<CallRecord> findByStartDate(MetaContact contact, java.util.Date startDate) throws java.lang.RuntimeException
contact
- MetaContact which contacts participate in
the returned callsstartDate
- Date the start date of the callsjava.lang.RuntimeException
- if something goes wrongjava.util.Collection<CallRecord> findByEndDate(MetaContact contact, java.util.Date endDate) throws java.lang.RuntimeException
contact
- MetaContact which contacts participate in
the returned callsendDate
- Date the end date of the callsjava.lang.RuntimeException
- if something goes wrongjava.util.Collection<CallRecord> findByPeriod(MetaContact contact, java.util.Date startDate, java.util.Date endDate) throws java.lang.RuntimeException
contact
- MetaContact which contacts participate in
the returned callsstartDate
- Date the start date of the callsendDate
- Date the end date of the callsjava.lang.RuntimeException
- if something goes wrongjava.util.Collection<CallRecord> findByStartDate(java.util.Date startDate) throws java.lang.RuntimeException
startDate
- Date the start date of the callsjava.lang.RuntimeException
- if something goes wrongjava.util.Collection<CallRecord> findByEndDate(java.util.Date endDate) throws java.lang.RuntimeException
endDate
- Date the end date of the callsjava.lang.RuntimeException
- if something goes wrongjava.util.Collection<CallRecord> findByPeriod(java.util.Date startDate, java.util.Date endDate) throws java.lang.RuntimeException
startDate
- Date the start date of the callsendDate
- Date the end date of the callsjava.lang.RuntimeException
- if something goes wrongjava.util.Collection<CallRecord> findLast(MetaContact contact, int count) throws java.lang.RuntimeException
contact
- MetaContact which contacts participate in
the returned callscount
- calls countjava.lang.RuntimeException
- if something goes wrongjava.util.Collection<CallRecord> findLast(int count) throws java.lang.RuntimeException
count
- calls countjava.lang.RuntimeException
- if something goes wrongCallHistoryQuery findByPeer(java.lang.String address, int recordCount) throws java.lang.RuntimeException
address
- String the address of the peerrecordCount
- the number of records to returnjava.lang.RuntimeException
- if something goes wrongvoid addSearchProgressListener(CallHistorySearchProgressListener listener)
listener
- HistorySearchProgressListenervoid removeSearchProgressListener(CallHistorySearchProgressListener listener)
listener
- HistorySearchProgressListenervoid updateCallRecordPeerSecondaryAddress(java.util.Date date, java.lang.String peerAddress, java.lang.String address)
date
- the start date of the record which will be updated.peer
- the peer of the record which will be updated.address
- the value of the secondary address .void addCallHistoryRecordListener(CallHistoryPeerRecordListener listener)
listener
- CallHistoryRecordListenervoid removeCallHistoryRecordListener(CallHistoryPeerRecordListener listener)
listener
- CallHistoryRecordListenervoid eraseLocallyStoredHistory() throws java.io.IOException
java.io.IOException
- Thrown if the history could not be removed
due to a IO error.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.