public interface SystrayService
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_MESSAGE_TYPE
Message type corresponding to an error message.
|
static int |
INFORMATION_MESSAGE_TYPE
Message type corresponding to an information message.
|
static int |
NONE_MESSAGE_TYPE
Message type is not accessible.
|
static java.lang.String |
PNMAE_TRAY_MODE |
static int |
SC_IMG_AWAY_TYPE
Image type corresponding to the jitsi away icon
|
static int |
SC_IMG_DND_TYPE
Image type corresponding to the jitsi do not disturb icon
|
static int |
SC_IMG_EXTENDED_AWAY_TYPE
Image type corresponding to the jitsi away icon
|
static int |
SC_IMG_FFC_TYPE
Image type corresponding to the jitsi free for chat icon
|
static int |
SC_IMG_OFFLINE_TYPE
Image type corresponding to the jitsi offline icon
|
static int |
SC_IMG_TYPE
Image type corresponding to the jitsi icon
|
static int |
WARNING_MESSAGE_TYPE
Message type corresponding to a warning message.
|
Modifier and Type | Method and Description |
---|---|
void |
addPopupMessageListener(SystrayPopupMessageListener listener)
Adds a listener for SystrayPopupMessageEvents posted when user
clicks on the system tray popup message.
|
boolean |
checkInitialized()
Checks if the systray icon has been initialized.
|
PopupMessageHandler |
getActivePopupMessageHandler()
Get the handler currently used by the systray service for popup message
|
java.lang.String |
getActiveSystrayMode()
Gets the systray mode that was chosen at startup, either by default or as
an override selected by the user.
|
java.util.Map<java.lang.String,java.lang.String> |
getSystrayModes()
Gets a map of systray modes and resource-keys that describe them.
|
void |
removePopupMessageListener(SystrayPopupMessageListener listener)
Removes a listener previously added with addPopupMessageListener.
|
void |
selectBestPopupMessageHandler()
Selects the best available popup message handler
|
PopupMessageHandler |
setActivePopupMessageHandler(PopupMessageHandler popupHandler)
Set the handler which will be used for popup message
|
void |
setNotificationCount(int count)
Set the number that should be shown as an overlay on the try icon.
|
void |
setSystrayIcon(int imageType)
Sets a new icon to the systray.
|
void |
showPopupMessage(PopupMessage popupMessage)
Shows the given PopupMessage
|
static final java.lang.String PNMAE_TRAY_MODE
static final int ERROR_MESSAGE_TYPE
static final int INFORMATION_MESSAGE_TYPE
static final int WARNING_MESSAGE_TYPE
static final int NONE_MESSAGE_TYPE
static final int SC_IMG_TYPE
static final int SC_IMG_OFFLINE_TYPE
static final int SC_IMG_AWAY_TYPE
static final int SC_IMG_FFC_TYPE
static final int SC_IMG_DND_TYPE
static final int SC_IMG_EXTENDED_AWAY_TYPE
void showPopupMessage(PopupMessage popupMessage)
popupMessage
- the message to showvoid addPopupMessageListener(SystrayPopupMessageListener listener)
listener
- the listener to addvoid removePopupMessageListener(SystrayPopupMessageListener listener)
listener
- the listener to removePopupMessageHandler setActivePopupMessageHandler(PopupMessageHandler popupHandler)
popupHandler
- the handler to usePopupMessageHandler getActivePopupMessageHandler()
void setSystrayIcon(int imageType)
imageType
- the type of the image to setvoid selectBestPopupMessageHandler()
boolean checkInitialized()
void setNotificationCount(int count)
count
- The number of pending notifications.java.util.Map<java.lang.String,java.lang.String> getSystrayModes()
java.lang.String getActiveSystrayMode()
disabled
if the user selected mode
is not available.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.