diff options
author | Damian Minkov <damencho@jitsi.org> | 2015-04-01 14:19:30 +0300 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2015-04-01 14:28:24 +0300 |
commit | e812038241452ca0c169e918655e27cedfee6a56 (patch) | |
tree | 04a94c8f26b8f98fe41d90ceff467b290f6ba7e3 /src/net/java/sip/communicator/plugin/busylampfield/BLFPresenceStatus.java | |
parent | bdb5b62fb155f9b65a7dbaa9060c79c78e519479 (diff) | |
download | jitsi-e812038241452ca0c169e918655e27cedfee6a56.zip jitsi-e812038241452ca0c169e918655e27cedfee6a56.tar.gz jitsi-e812038241452ca0c169e918655e27cedfee6a56.tar.bz2 |
Adds plugin that adds contact source services (groups to the contact list) with the monitored lines of OperationSetTelephonyBLF. Adds custom action button to pickup calls is possible.
Diffstat (limited to 'src/net/java/sip/communicator/plugin/busylampfield/BLFPresenceStatus.java')
-rw-r--r-- | src/net/java/sip/communicator/plugin/busylampfield/BLFPresenceStatus.java | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/plugin/busylampfield/BLFPresenceStatus.java b/src/net/java/sip/communicator/plugin/busylampfield/BLFPresenceStatus.java new file mode 100644 index 0000000..d448be7 --- /dev/null +++ b/src/net/java/sip/communicator/plugin/busylampfield/BLFPresenceStatus.java @@ -0,0 +1,77 @@ +/* + * Jitsi, the OpenSource Java VoIP and Instant Messaging client. + * + * Distributable under LGPL license. + * See terms of license at gnu.org. + */ +package net.java.sip.communicator.plugin.busylampfield; + +import net.java.sip.communicator.service.protocol.*; + +/** + * The status to display for the contact srouces. + * @author Damian Minkov + */ +public class BLFPresenceStatus + extends PresenceStatus +{ + /** + * The Online status. Indicate that the line is available and free. + */ + public static final String AVAILABLE = "Available"; + + /** + * On The Phone Chat status. + * Indicates that the line is used. + */ + public static final String BUSY = "Busy"; + + /** + * Ringing status. + * Indicates that the line is currently ringing. + */ + public static final String RINGING = "On the phone"; + + /** + * Indicates an Offline status or status with 0 connectivity. + */ + public static final String OFFLINE = "Offline"; + + /** + * The Online status. Indicate that the line is free. + */ + public static final BLFPresenceStatus BLF_FREE = new BLFPresenceStatus( + 65, AVAILABLE); + + /** + * The Offline status. Indicates the line status retrieval + * is not available. + */ + public static final BLFPresenceStatus BLF_OFFLINE = new BLFPresenceStatus( + 0, OFFLINE); + + /** + * Indicates an On The Phone status. + */ + public static final BLFPresenceStatus BLF_BUSY = new BLFPresenceStatus( + 30, BUSY); + + /** + * Indicates Ringing status. + */ + public static final BLFPresenceStatus BLF_RINGING = new BLFPresenceStatus( + 31, RINGING); + + /** + * Creates an instance of <tt>BLFPresenceStatus</tt> with the + * specified parameters. + * + * @param status the connectivity level of the new presence status + * instance + * @param statusName the name of the presence status. + */ + private BLFPresenceStatus(int status, String statusName) + { + super(status, statusName); + } +} |