diff options
author | Damian Minkov <damencho@jitsi.org> | 2011-09-01 06:00:10 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2011-09-01 06:00:10 +0000 |
commit | ab33c2e27a6427f6fe75c0cd52a299a471c4ff35 (patch) | |
tree | 76c07aedc7b1a6fa299bd253cfcc69b7495bd0bc /src/net/java/sip/communicator/service | |
parent | 2964ade25a81dd0dec2f0345fbf33faf5f162aa0 (diff) | |
download | jitsi-ab33c2e27a6427f6fe75c0cd52a299a471c4ff35.zip jitsi-ab33c2e27a6427f6fe75c0cd52a299a471c4ff35.tar.gz jitsi-ab33c2e27a6427f6fe75c0cd52a299a471c4ff35.tar.bz2 |
Custom avatar service and implementation for nimbuzz avatars.
Diffstat (limited to 'src/net/java/sip/communicator/service')
-rw-r--r-- | src/net/java/sip/communicator/service/customavatar/CustomAvatarService.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/customavatar/CustomAvatarService.java b/src/net/java/sip/communicator/service/customavatar/CustomAvatarService.java new file mode 100644 index 0000000..e0d103d --- /dev/null +++ b/src/net/java/sip/communicator/service/customavatar/CustomAvatarService.java @@ -0,0 +1,24 @@ +/* + * 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.customavatar; + +/** + * Service implementers can give a custom way of retrieving + * avatars for given contact address. ProtocolProviders will use + * these methods to search for avatar if their contacts are missing + * picture. + * @author Damian Minkov + */ +public interface CustomAvatarService +{ + /** + * Returns the avatar bytes for the given contact address. + * @param address the address to search for its avatar. + * @return image bytes. + */ + public byte[] getAvatar(String address); +} |