|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.gui.main.call.CallManager
public class CallManager
The CallManager is the one that handles calls. It contains also the "Call" and "Hang up" buttons panel. Here are handles incoming and outgoing calls from and to the call operation set.
| Nested Class Summary | |
|---|---|
static class |
CallManager.GuiCallListener
A call listener. |
| Constructor Summary | |
|---|---|
CallManager()
|
|
| Method Summary | |
|---|---|
static void |
answerCall(Call call)
Answers the given call. |
static void |
answerVideoCall(Call call)
Answers the given call with video. |
static void |
createCall(ProtocolProviderService protocolProvider,
Contact contact)
Creates a call to the contact represented by the given string. |
static void |
createCall(ProtocolProviderService protocolProvider,
String contact)
Creates a call to the contact represented by the given string. |
static void |
createCall(String callString,
JComponent c)
Creates a call to the given call string. |
static void |
createCall(String callString,
JComponent c,
CallInterfaceListener l)
Creates a call to the given call string. |
static void |
createConferenceCall(String[] callees,
ProtocolProviderService protocolProvider)
Creates a call to the given list of contacts. |
static void |
createDesktopSharing(ProtocolProviderService protocolProvider,
String contact)
Creates a desktop sharing call to the contact represented by the given string. |
static void |
createRegionDesktopSharing(ProtocolProviderService protocolProvider,
String contact)
Creates a region desktop sharing through the given protocolProvider with the given contact. |
static void |
createRegionDesktopSharing(ProtocolProviderService protocolProvider,
String contact,
int x,
int y,
int width,
int height)
Creates a desktop sharing call to the contact represented by the given string. |
static void |
createVideoCall(ProtocolProviderService protocolProvider,
Contact contact)
Creates a video call to the contact represented by the given string. |
static void |
createVideoCall(ProtocolProviderService protocolProvider,
String contact)
Creates a video call to the contact represented by the given string. |
static void |
enableDesktopRemoteControl(CallPeer callPeer,
boolean isEnable)
Enables/disables remote control when in a desktop sharing session with the given callPeer. |
static void |
enableDesktopSharing(Call call,
boolean enable)
Enables the desktop sharing in an existing call. |
static void |
enableLocalVideo(Call call,
boolean enable)
Enables/disables local video for the given call. |
static void |
enableRegionDesktopSharing(Call call,
boolean enable)
Enables the region desktop sharing for the given call. |
static void |
enableRegionDesktopSharing(Call call,
int x,
int y,
int width,
int height)
Creates a desktop sharing call to the contact represented by the given string. |
static CallPanel |
getActiveCallContainer(Call call)
Returns the CallContainer corresponding to the given call. |
static Collection<Call> |
getActiveCalls()
Returns a collection of all currently active calls. |
static byte[] |
getPeerImage(CallPeer peer)
Returns the image corresponding to the given peer. |
static List<ProtocolProviderService> |
getTelephonyProviders()
Returns a list of all currently registered telephony providers. |
static void |
hangupCall(Call call)
Hang ups the given call. |
static void |
hangupCallPeer(CallPeer callPeer)
Hang ups the given callPeer. |
static void |
inviteToConferenceCall(String[] callees,
Call call)
Invites the given list of callees to the given conference call. |
static void |
inviteToCrossProtocolConferenceCall(ProtocolProviderService provider,
String callee,
Call call)
Invites the given list of callees to the given conference call. |
static boolean |
isDesktopSharingEnabled(Call call)
Indicates if the desktop sharing is currently enabled for the given call. |
static boolean |
isLocalVideoEnabled(Call call)
Indicates if the desktop sharing is currently enabled for the given call. |
static boolean |
isRegionDesktopSharingEnabled(Call call)
Indicates if the desktop sharing is currently enabled for the given call. |
static boolean |
isVideoQualityPresetSupported(CallPeer callPeer)
Checks whether the callPeer supports setting video quality presets. |
static void |
openCallTransferDialog(CallPeer peer)
Opens a call transfer dialog to transfer the given peer. |
static void |
putOnHold(CallPeer callPeer,
boolean isOnHold)
Puts on or off hold the given callPeer. |
static void |
setVideoQualityPreset(CallPeer callPeer,
QualityPreset qualityPreset)
Sets the given quality preset for the video of the given call peer. |
static void |
transferCall(CallPeer peer,
CallPeer target)
Transfers the given peer to the given target. |
static void |
transferCall(CallPeer peer,
String target)
Transfers the given peer to the given target. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CallManager()
| Method Detail |
|---|
public static void answerCall(Call call)
call - the call to answerpublic static void answerVideoCall(Call call)
call - the call to answerpublic static void hangupCall(Call call)
call - the call to hang uppublic static void hangupCallPeer(CallPeer callPeer)
callPeer - the CallPeer to hang up
public static void createCall(ProtocolProviderService protocolProvider,
String contact)
protocolProvider - the protocol provider to which this call belongs.contact - the contact to call to
public static void createCall(ProtocolProviderService protocolProvider,
Contact contact)
protocolProvider - the protocol provider to which this call belongs.contact - the contact to call to
public static void createVideoCall(ProtocolProviderService protocolProvider,
String contact)
protocolProvider - the protocol provider to which this call belongs.contact - the contact to call to
public static void createVideoCall(ProtocolProviderService protocolProvider,
Contact contact)
protocolProvider - the protocol provider to which this call belongs.contact - the contact to call to
public static void enableLocalVideo(Call call,
boolean enable)
enable - indicates whether to enable or disable the local videocall - the call for which the local video should be enabled/disabledpublic static boolean isLocalVideoEnabled(Call call)
call - the Call, for which we would to check if the desktop
sharing is currently enabled
public static void createDesktopSharing(ProtocolProviderService protocolProvider,
String contact)
protocolProvider - the protocol provider to which this call belongs.contact - the contact to call to
public static void createRegionDesktopSharing(ProtocolProviderService protocolProvider,
String contact)
protocolProvider - the ProtocolProviderService, through
which the sharing session will be establishedcontact - the address of the contact recipient
public static void createRegionDesktopSharing(ProtocolProviderService protocolProvider,
String contact,
int x,
int y,
int width,
int height)
protocolProvider - the protocol provider to which this call belongs.contact - the contact to call tox - the x coordinate of the shared regiony - the y coordinated of the shared regionwidth - the width of the shared regionheight - the height of the shared region
public static void enableDesktopSharing(Call call,
boolean enable)
call - the call for which desktop sharing should be enabledenable - indicates if the desktop sharing should be enabled or
disabled
public static void enableRegionDesktopSharing(Call call,
boolean enable)
call - the call, for which the region desktop sharing should be
enabledenable - indicates if the desktop sharing should be enabled or
disabled
public static void enableRegionDesktopSharing(Call call,
int x,
int y,
int width,
int height)
call - the call for which desktop sharing should be enabledx - the x coordinate of the shared regiony - the y coordinated of the shared regionwidth - the width of the shared regionheight - the height of the shared regionpublic static boolean isDesktopSharingEnabled(Call call)
call - the Call, for which we would to check if the desktop
sharing is currently enabled
public static boolean isRegionDesktopSharingEnabled(Call call)
call - the Call, for which we would to check if the desktop
sharing is currently enabled
public static void enableDesktopRemoteControl(CallPeer callPeer,
boolean isEnable)
callPeer - the call peer for which we enable/disable remote controlisEnable - indicates if the remote control should be enabled
public static void createCall(String callString,
JComponent c)
callString - the string to callc - the component, which indicates where should be shown the "call
via" menu if needed
public static void createCall(String callString,
JComponent c,
CallInterfaceListener l)
callString - the string to callc - the component, which indicates where should be shown the "call
via" menu if neededl - listener that is notified when the call interface has been
started after call was created
public static void createConferenceCall(String[] callees,
ProtocolProviderService protocolProvider)
protocolProvider - the protocol provider to which this call belongs.callees - the list of contacts to call to
public static void inviteToConferenceCall(String[] callees,
Call call)
callees - the list of contacts to invitecall - the protocol provider to which this call belongs
public static void inviteToCrossProtocolConferenceCall(ProtocolProviderService provider,
String callee,
Call call)
provider - provider to which the callee belongscallee - the list of contacts to invitecall - existing call
public static void putOnHold(CallPeer callPeer,
boolean isOnHold)
callPeer - the peer to put on/off holdisOnHold - indicates the action (on hold or off hold)
public static void transferCall(CallPeer peer,
CallPeer target)
peer - the CallPeer to transfertarget - the CallPeer target to transfer to
public static void transferCall(CallPeer peer,
String target)
peer - the CallPeer to transfertarget - the target of the transferpublic static List<ProtocolProviderService> getTelephonyProviders()
public static Collection<Call> getActiveCalls()
public static CallPanel getActiveCallContainer(Call call)
call - the Call, which dialog we're looking for
public static byte[] getPeerImage(CallPeer peer)
peer - the call peer, for which we're returning an image
public static void openCallTransferDialog(CallPeer peer)
peer - the CallPeer to transferpublic static boolean isVideoQualityPresetSupported(CallPeer callPeer)
callPeer - the peer, which video quality we're checking
public static void setVideoQualityPreset(CallPeer callPeer,
QualityPreset qualityPreset)
callPeer - the peer, which video quality we're settingqualityPreset - the new quality settings
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||