public interface ITelephoneDevice
Modifier and Type | Method and Description |
---|---|
void |
addPhoneEventListener(ITelephoneEventListener listener)
Add a telephone event listener.
|
void |
addStatusListener(ITelephoneStatusListener listener)
Adds an status listener.
|
boolean |
canMakeCall()
Informs if the device can make a call.
|
boolean |
canSendSMS()
Informs if the device can send SMS.
|
ActionReturn |
dialAccept(java.lang.String number)
Triggers outgoing calls or accepts incoming calls.
|
ActionReturn |
drop()
Terminates a calls.
|
TelephoneCapabilities |
getCurrentCapabilities()
Requests for the current capabilities of the phone.
|
java.lang.String |
getDeviceGuid()
Unique identifier that was provided by LLworkplace at creation of the device in the com.llwork.external.telephony.ITelephoneManager.createTelephoneDevice(...) method.
|
java.lang.String |
getName()
Device name.
|
java.lang.String |
getTrunkLine()
Trunk line number.
|
java.lang.String |
getTypeName()
Device type name.
|
ActionReturn |
holdUnhold()
Triggers to hold a call or to unhold the call.
|
boolean |
isActive()
Active state of the device.
|
boolean |
isProvideHold()
Informs if the device can hold a call.
|
void |
performCommand(java.lang.String command)
Is called if a manual command is set via the application menu.
|
ActionReturn |
refreshCallAttributes()
Triggers the resending of the call attributes by calling the com.llwork.external.telephony.ITelephoneStatusListener.statusChanged(...) with the current state.
|
void |
removePhoneEventListener(ITelephoneEventListener listener)
Removes a telephone event listener.
|
ActionReturn |
sendSMS(java.lang.String number,
java.lang.String text)
Triggers sending of a SMS
|
boolean |
setActive(boolean active)
Sets the active state of the device.
|
boolean |
supportsCallAttributesRefresh()
Informs if the device supports refreshing the call attributes.
|
java.lang.String getDeviceGuid()
java.lang.String getName()
java.lang.String getTypeName()
java.lang.String getTrunkLine()
boolean isActive()
boolean setActive(boolean active)
active
- active stateboolean supportsCallAttributesRefresh()
ActionReturn refreshCallAttributes()
TelephoneCapabilities getCurrentCapabilities()
void addStatusListener(ITelephoneStatusListener listener)
listener
- listener for status changed eventsboolean canMakeCall()
ActionReturn dialAccept(java.lang.String number)
number
- number to dialActionReturn drop()
boolean isProvideHold()
ActionReturn holdUnhold()
boolean canSendSMS()
ActionReturn sendSMS(java.lang.String number, java.lang.String text)
number
- receiver phone numbertext
- text to sendvoid performCommand(java.lang.String command)
command
- any call related actionvoid addPhoneEventListener(ITelephoneEventListener listener)
listener
- event listenervoid removePhoneEventListener(ITelephoneEventListener listener)
listener
- event listener