com.motorola.iden.call
Interface Call

All Known Subinterfaces:
InterconnectCall

public interface Call

[Class/Interface Description] [i.e. The Call is a holder for the methods to handle any kind of calls from java. The call type can be Interconnect, Private or Group call.]

See Also:
PhoneReceiveAPI_SRS.doc-->/vob/iden_doc/java/Requirements/PhoneReceive/ PhoneReceiveAPI_SDS.doc-->/vob/iden_doc/java/Design/ Receiving_Ending_Phone_Calls_SDS.doc-->/vob/iden_doc/synergy_ergo/Design/ Java_Call_SRS.doc-->/vob/iden_doc/java/Requirements/Gemini/Java_Call_SRS.doc
MOTOROLA and the Stylized M Logo are registered trademarks of Motorola, Inc. Reg. U.S. Pat. & Tm. Off.
© Copyright 2003-2004 Motorola, Inc. All Rights Reserved.


Field Summary
static java.lang.String PHRX_NO_CALLER_ID_1
          The Call.PHRX_NO_CALLER_ID_1 indicates the first call without callerid info.
static java.lang.String PHRX_NO_CALLER_ID_2
          The Call.PHRX_NO_CALLER_ID_2 indicates the second call without callerid info.
 
Method Summary
 void enableSpkrPhone(boolean state)
          The method turns the SpeakerPhone on/off based on the parameter passed.
 java.lang.String getCallNumber()
          Returns an incoming number based on the call type it is registered to.
 int getCallState()
          Returns an integer value based on the incoming call type.
 int getCallType()
          Returns an integer value based on the incoming call type.
 

Field Detail

PHRX_NO_CALLER_ID_1

public static final java.lang.String PHRX_NO_CALLER_ID_1
The Call.PHRX_NO_CALLER_ID_1 indicates the first call without callerid info.

It is used to identify if the received call has callerid or not.

See Also:
Constant Field Values

PHRX_NO_CALLER_ID_2

public static final java.lang.String PHRX_NO_CALLER_ID_2
The Call.PHRX_NO_CALLER_ID_2 indicates the second call without callerid info.

It is used to identify if the received call has callerid or not.

See Also:
Constant Field Values
Method Detail

getCallNumber

public java.lang.String getCallNumber()
Returns an incoming number based on the call type it is registered to. If no Call Connections are made, it returns null.

The state of a Call must not be in WAIT or CALL_ENDED state when calling this method.

Returns:
a String as an incoming number.(e.g. phone number in case of phone call registration)

getCallType

public int getCallType()
Returns an integer value based on the incoming call type. If it is called in WAIT or CALL_ENDED state, it will return -1.

-1 - NO_CALL 1 - PHONE_CALL 2 - DISPATCH_CALL

Returns:
integer value of incoming call type.

getCallState

public int getCallState()
Returns an integer value based on the incoming call type. If it is called in WAIT state, -1 will be returned.

The different states of a call are difined in CallHandler class.

Returns:
integer value of incoming call type.

enableSpkrPhone

public void enableSpkrPhone(boolean state)
The method turns the SpeakerPhone on/off based on the parameter passed.

If true is passed, the SpeakerPhone will be turned on. If false is passed, the SpeakerPhone will be turned off.

Throws:
java.lang.IllegalStateException - - If the call is not in a connected state.