diff options
author | Yana Stamcheva <yana@jitsi.org> | 2007-08-31 13:58:06 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2007-08-31 13:58:06 +0000 |
commit | 62e2734a2c2b193455f32c7c3885dee44e16e785 (patch) | |
tree | 01e08305523e25cea9cfd1260dacda991bab2129 /src/net/java/sip/communicator/impl/notification/CommandNotificationHandlerImpl.java | |
parent | 2652cd0e2050290ceee09b2ed4eaf97b000ad7d8 (diff) | |
download | jitsi-62e2734a2c2b193455f32c7c3885dee44e16e785.zip jitsi-62e2734a2c2b193455f32c7c3885dee44e16e785.tar.gz jitsi-62e2734a2c2b193455f32c7c3885dee44e16e785.tar.bz2 |
Do not show popups for incoming messages from contacts with already focused chats.
Diffstat (limited to 'src/net/java/sip/communicator/impl/notification/CommandNotificationHandlerImpl.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/notification/CommandNotificationHandlerImpl.java | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/impl/notification/CommandNotificationHandlerImpl.java b/src/net/java/sip/communicator/impl/notification/CommandNotificationHandlerImpl.java index fe01332..8dff174 100644 --- a/src/net/java/sip/communicator/impl/notification/CommandNotificationHandlerImpl.java +++ b/src/net/java/sip/communicator/impl/notification/CommandNotificationHandlerImpl.java @@ -21,9 +21,11 @@ public class CommandNotificationHandlerImpl { private Logger logger = Logger.getLogger(CommandNotificationHandlerImpl.class); - + private String commandDescriptor; - + + private boolean isEnabled = true; + /** * Creates an instance of <tt>CommandNotificationHandlerImpl</tt> by * specifying the <tt>commandDescriptor</tt>, which will point us to the @@ -63,4 +65,31 @@ public class CommandNotificationHandlerImpl { return commandDescriptor; } + + /** + * Returns TRUE if this notification action handler is enabled and FALSE + * otherwise. While the notification handler for the command action type + * is disabled no programs will be executed when the + * <tt>fireNotification</tt> method is called. + * + * @return TRUE if this notification action handler is enabled and FALSE + * otherwise + */ + public boolean isEnabled() + { + return isEnabled; + } + + /** + * Enables or disables this notification handler. While the notification + * handler for the command action type is disabled no programs will be + * executed when the <tt>fireNotification</tt> method is called. + * + * @param isEnabled TRUE to enable this notification handler, FALSE to + * disable it. + */ + public void setEnabled(boolean isEnabled) + { + this.isEnabled = isEnabled; + } } |