|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.blackberry.api.phone.phonelogs.CallLog
net.rim.blackberry.api.phone.phonelogs.PhoneCallLog
public final class PhoneCallLog
Represents a call log in the message list for a simple phone call.
Unlike a ConferencePhoneCallLog
, you can set and change the type
of the call log (using this class's TYPE_* values); this changes how the call
is presented in the message list.
You cannot have more than one participant in a
phone call log. If you want more than one participant you must use
a ConferencePhoneCallLog
object for the call log.
Field Summary | ||
---|---|---|
|
static int |
TYPE_MISSED_CALL_OPENED
Call that was missed and that has been viewed. |
|
static int |
TYPE_MISSED_CALL_UNOPENED
Call that was missed and has not been viewed yet. |
|
static int |
TYPE_PLACED_CALL
Successfully connected outgoing call. |
|
static int |
TYPE_RECEIVED_CALL
Incoming call that was successfully received. |
Constructor Summary | ||
---|---|---|
|
PhoneCallLog(Date date,
int callType,
int callDuration,
int callStatus,
PhoneCallLogID participant,
String notes)
Creates a new phone call log. |
Method Summary | ||
---|---|---|
|
PhoneCallLogID |
getParticipant()
Retrieves the participant for this call. |
|
int |
getType()
Retrieves this call's type. |
|
void |
setParticipant(PhoneCallLogID participant)
Sets the participant for this call. |
|
void |
setType(int callType)
Sets this call's type. |
Methods inherited from class net.rim.blackberry.api.phone.phonelogs.CallLog |
---|
getDate, getDuration, getNotes, getStatus, setDate, setDuration, setNotes, setStatus |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_RECEIVED_CALL
public static final int TYPE_PLACED_CALL
public static final int TYPE_MISSED_CALL_UNOPENED
public static final int TYPE_MISSED_CALL_OPENED
Constructor Detail |
---|
public PhoneCallLog(Date date, int callType, int callDuration, int callStatus, PhoneCallLogID participant, String notes)
date
- Date for this call.callType
- Type of this call; one of the TYPE_* values.callDuration
- Duration of this call in seconds.callStatus
- Status of this call; one of the STATUS_* values
inherited from CallLog
.participant
- Participant in this call.notes
- Any notes associated with this call.Method Detail |
---|
public PhoneCallLogID getParticipant()
The participant information is presented both in the message list and when the log is opened for viewing.
public void setType(int callType)
callType
- New type for this call; must be one of the four PhoneCallLog.TYPE_* constants.
IllegalArgumentException
- if the input callType
is not one of the four PhoneCallLog.TYPE_* constants.public int getType()
public void setParticipant(PhoneCallLogID participant)
The participant information is presented both in the message list and when the log is opened for viewing.
participant
- New participant for this call.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.