diff options
Diffstat (limited to 'src/net/java/sip/communicator/service/replacement/ReplacementService.java')
-rw-r--r-- | src/net/java/sip/communicator/service/replacement/ReplacementService.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/replacement/ReplacementService.java b/src/net/java/sip/communicator/service/replacement/ReplacementService.java new file mode 100644 index 0000000..ba1f273 --- /dev/null +++ b/src/net/java/sip/communicator/service/replacement/ReplacementService.java @@ -0,0 +1,38 @@ +/* + * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. + * + * Distributable under LGPL license. See terms of license at gnu.org. + */ +package net.java.sip.communicator.service.replacement; + +import java.util.*; + +/** + * A service used to provide substitution for any text in chat messages, like + * smileys, video and image previews, etc. + * + * @author Purvesh Sahoo + */ +public interface ReplacementService +{ + /** + * The source name property name. + */ + public final String SOURCE_NAME = "SOURCE"; + + /** + * List of all the available replacement sources. All sources need to + * register itself. + */ + public static ArrayList<String> sourceList = new ArrayList<String>(); + + /** + * Returns the chat message with the text replacements if any or returns the + * original chat message. + * + * @param chatString the original chat message. + * @return the replaced chat message in case of match; the original message + * in case of no match. + */ + public String getReplacedMessage(String chatString); +}
\ No newline at end of file |