diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-03-11 22:15:03 +0100 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-03-11 22:15:03 +0100 |
commit | 85901329b0794b136b96bf745f4ab1572806fc89 (patch) | |
tree | f23da7e97cae727f39d825f0fef8348cffb238e4 /src/net/java/sip/communicator/service/systray/SystrayService.java | |
parent | 3db2e44f186c59429901b2c899e139ea60117a55 (diff) | |
parent | cf5da997da8820b4050f5b87ee9440a0ede36d1f (diff) | |
download | jitsi-master.zip jitsi-master.tar.gz jitsi-master.tar.bz2 |
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
Diffstat (limited to 'src/net/java/sip/communicator/service/systray/SystrayService.java')
-rw-r--r-- | src/net/java/sip/communicator/service/systray/SystrayService.java | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/src/net/java/sip/communicator/service/systray/SystrayService.java b/src/net/java/sip/communicator/service/systray/SystrayService.java index b9ada84..9d88852 100644 --- a/src/net/java/sip/communicator/service/systray/SystrayService.java +++ b/src/net/java/sip/communicator/service/systray/SystrayService.java @@ -17,6 +17,8 @@ */ package net.java.sip.communicator.service.systray; +import java.util.*; + import net.java.sip.communicator.service.systray.event.*; /** @@ -27,6 +29,9 @@ import net.java.sip.communicator.service.systray.event.*; */ public interface SystrayService { + public static final String PNMAE_TRAY_MODE = + "net.java.sip.communicator.osdependent.systemtray.MODE"; + /** * Message type corresponding to an error message. */ @@ -78,11 +83,6 @@ public interface SystrayService public static final int SC_IMG_EXTENDED_AWAY_TYPE = 6; /** - * Image type corresponding to the envelope icon - */ - public static final int ENVELOPE_IMG_TYPE = 1; - - /** * Shows the given <tt>PopupMessage</tt> * * @param popupMessage the message to show @@ -129,4 +129,31 @@ public interface SystrayService * Selects the best available popup message handler */ public void selectBestPopupMessageHandler(); + + /** + * Checks if the systray icon has been initialized. + * @return True if the systray is initialized, false otherwise. + */ + public boolean checkInitialized(); + + /** + * Set the number that should be shown as an overlay on the try icon. + * @param count The number of pending notifications. + */ + public void setNotificationCount(int count); + + /** + * Gets a map of systray modes and resource-keys that describe them. + * @return key: mode for config property, value: resource key + */ + public Map<String, String> getSystrayModes(); + + /** + * Gets the systray mode that was chosen at startup, either by default or as + * an override selected by the user. + * + * @return The selected mode or {@code disabled} if the user selected mode + * is not available. + */ + public String getActiveSystrayMode(); } |