public abstract class Call extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Call.SrvccState |
static class |
Call.State |
Modifier and Type | Field and Description |
---|---|
protected String |
LOG_TAG |
ArrayList<Connection> |
mConnections |
Call.State |
mState |
Constructor and Description |
---|
Call() |
Modifier and Type | Method and Description |
---|---|
void |
clearDisconnected()
Called when it's time to clean up disconnected Connection objects
|
List<ConferenceParticipant> |
getConferenceParticipants()
getConferenceParticipants
|
abstract List<Connection> |
getConnections()
Do not modify the List result!!!
|
Connection |
getEarliestConnection()
Returns the Connection associated with this Call that was created
first, or null if there are no Connections in this Call
|
long |
getEarliestConnectTime() |
long |
getEarliestCreateTime() |
Connection |
getLatestConnection()
Returns the Connection associated with this Call that was created
last, or null if there are no Connections in this Call
|
abstract Phone |
getPhone() |
Call.State |
getState()
getState
|
abstract void |
hangup() |
void |
hangupIfAlive()
Hangup call if it is alive
|
boolean |
hasConnection(Connection c)
hasConnection
|
boolean |
hasConnections()
hasConnections
|
boolean |
isDialingOrAlerting() |
boolean |
isIdle()
isIdle
FIXME rename
|
abstract boolean |
isMultiparty() |
boolean |
isRinging() |
protected void |
setState(Call.State newState) |
static Call.State |
stateFromDCState(DriverCall.State dcState) |
protected final String LOG_TAG
public Call.State mState
public ArrayList<Connection> mConnections
public static Call.State stateFromDCState(DriverCall.State dcState)
public abstract List<Connection> getConnections()
public abstract Phone getPhone()
public abstract boolean isMultiparty()
public abstract void hangup() throws CallStateException
CallStateException
public boolean hasConnection(Connection c)
c
- a Connection objectpublic boolean hasConnections()
public Call.State getState()
public List<ConferenceParticipant> getConferenceParticipants()
public boolean isIdle()
public Connection getEarliestConnection()
public long getEarliestCreateTime()
public long getEarliestConnectTime()
public boolean isDialingOrAlerting()
public boolean isRinging()
public Connection getLatestConnection()
public void hangupIfAlive()
public void clearDisconnected()
protected void setState(Call.State newState)