From bf9639acb5cfca21ff662cb42974ef04bc174130 Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Tue, 21 May 2013 11:08:15 +0300 Subject: [PATCH] Adds customavatar service bundle. --- build.xml | 15 ++++++++++----- lib/felix.client.run.properties | 1 + .../sip/communicator/impl/hid/hid.manifest.mf | 4 ++-- .../service/customavatar/CustomAvatarService.java | 4 ++-- .../service/customavatar/customavatar.manifest.mf | 6 ++++++ .../protocol/protocol.provider.manifest.mf | 1 - 6 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 src/net/java/sip/communicator/service/customavatar/customavatar.manifest.mf diff --git a/build.xml b/build.xml index a9dc45143..27b7b937e 100644 --- a/build.xml +++ b/build.xml @@ -948,7 +948,7 @@ bundle-contactsource,bundle-plugin-reconnect,bundle-plugin-securityconfig, bundle-plugin-advancedconfig, bundle-credentialsstorage,bundle-credentialsstorage-slick, - bundle-plugin-nimbuzzavatar, + bundle-plugin-nimbuzzavatar,bundle-custom-avatar, bundle-replacement,bundle-youtube,bundle-dailymotion,bundle-smiley, bundle-vimeo,bundle-vbox7,bundle-metacafe,bundle-flickr,bundle-hulu, bundle-twitpic,bundle-directimage,bundle-bliptv,bundle-viddler, @@ -1193,8 +1193,6 @@ - @@ -1343,8 +1341,6 @@ javax.swing.event, javax.swing.border"/> - + + + + + + + diff --git a/lib/felix.client.run.properties b/lib/felix.client.run.properties index 13c74d6a5..e76e846cd 100644 --- a/lib/felix.client.run.properties +++ b/lib/felix.client.run.properties @@ -177,6 +177,7 @@ felix.auto.start.67= \ reference:file:sc-bundles/replacement-directimage.jar \ reference:file:sc-bundles/replacement-bliptv.jar \ reference:file:sc-bundles/replacement-viddler.jar \ + reference:file:sc-bundles/customavatar-service.jar \ reference:file:sc-bundles/plugin-nimbuzzavatars.jar \ reference:file:sc-bundles/chatconfig.jar \ reference:file:sc-bundles/addrbook.jar \ diff --git a/src/net/java/sip/communicator/impl/hid/hid.manifest.mf b/src/net/java/sip/communicator/impl/hid/hid.manifest.mf index a4db319f9..17e50f273 100644 --- a/src/net/java/sip/communicator/impl/hid/hid.manifest.mf +++ b/src/net/java/sip/communicator/impl/hid/hid.manifest.mf @@ -6,5 +6,5 @@ Bundle-Version: 0.0.1 System-Bundle: yes Import-Package: org.osgi.framework, org.jitsi.util, - net.java.sip.communicator.util -Export-Package: net.java.sip.communicator.service.hid + net.java.sip.communicator.util, + net.java.sip.communicator.service.hid diff --git a/src/net/java/sip/communicator/service/customavatar/CustomAvatarService.java b/src/net/java/sip/communicator/service/customavatar/CustomAvatarService.java index ab706aed9..022d11549 100644 --- a/src/net/java/sip/communicator/service/customavatar/CustomAvatarService.java +++ b/src/net/java/sip/communicator/service/customavatar/CustomAvatarService.java @@ -17,8 +17,8 @@ public interface CustomAvatarService { /** * Returns the avatar bytes for the given contact address. - * @param address the address to search for its avatar. + * @param contactAddress the address of a contact to search for its avatar. * @return image bytes. */ - public byte[] getAvatar(String address); + public byte[] getAvatar(String contactAddress); } diff --git a/src/net/java/sip/communicator/service/customavatar/customavatar.manifest.mf b/src/net/java/sip/communicator/service/customavatar/customavatar.manifest.mf new file mode 100644 index 000000000..0d399212d --- /dev/null +++ b/src/net/java/sip/communicator/service/customavatar/customavatar.manifest.mf @@ -0,0 +1,6 @@ +Bundle-Name: Custom Avatar Service +Bundle-Description: A bundle that offers custom avatar retrieving. +Bundle-Vendor: jitsi.org +Bundle-Version: 0.0.1 +System-Bundle: yes +Export-Package: net.java.sip.communicator.service.customavatar diff --git a/src/net/java/sip/communicator/service/protocol/protocol.provider.manifest.mf b/src/net/java/sip/communicator/service/protocol/protocol.provider.manifest.mf index 42b53ebef..ba437d8c3 100644 --- a/src/net/java/sip/communicator/service/protocol/protocol.provider.manifest.mf +++ b/src/net/java/sip/communicator/service/protocol/protocol.provider.manifest.mf @@ -16,7 +16,6 @@ Import-Package: net.java.sip.communicator.service.credentialsstorage, org.osgi.framework Export-Package: net.java.sip.communicator.service.protocol, net.java.sip.communicator.service.protocol.aimconstants, - net.java.sip.communicator.service.customavatar, net.java.sip.communicator.service.protocol.event, net.java.sip.communicator.service.protocol.globalstatus, net.java.sip.communicator.service.protocol.icqconstants,