From cae0635287b9ccf0d846dffd550440b347bd6721 Mon Sep 17 00:00:00 2001 From: Tarun Gupta Date: Tue, 2 Jun 2015 21:57:16 +0530 Subject: Correcting access specifiers in VCardManager. Access Specifiers for Methods in VCardManager were incorrect which was not allowing usage of methods of this class. Correct Specifiers are added according to Swiften. License: This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details. Test-Information: Successful Compilation. Change-Id: I550702534a2acf326faa3942ce1b9cdb9cf88d6b diff --git a/src/com/isode/stroke/vcards/VCardManager.java b/src/com/isode/stroke/vcards/VCardManager.java index 593d244..2a7837c 100644 --- a/src/com/isode/stroke/vcards/VCardManager.java +++ b/src/com/isode/stroke/vcards/VCardManager.java @@ -39,7 +39,7 @@ public class VCardManager { this.storage = vcardStorage; } - void delete() { + public void delete() { } public VCard getVCard(final JID jid) { @@ -54,7 +54,7 @@ public class VCardManager { return vcard; } - void requestVCard(final JID requestedJID) { + public void requestVCard(final JID requestedJID) { final JID jid = requestedJID.compare(ownJID, JID.CompareType.WithoutResource) == 0 ? new JID() : requestedJID; if (requestedVCards.contains(jid)) { return; @@ -75,7 +75,7 @@ public class VCardManager { } - void handleVCardReceived(final JID actualJID, VCard vcard, ErrorPayload error) { + private void handleVCardReceived(final JID actualJID, VCard vcard, ErrorPayload error) { if (error != null || vcard == null) { vcard = new VCard(); } @@ -84,7 +84,7 @@ public class VCardManager { setVCard(jid, vcard); } - SetVCardRequest createSetVCardRequest(final VCard vcard) { + public SetVCardRequest createSetVCardRequest(final VCard vcard) { SetVCardRequest request = SetVCardRequest.create(vcard, iqRouter); request.onResponse.connect(new Slot2() { @Override @@ -95,13 +95,13 @@ public class VCardManager { return request; } - void handleSetVCardResponse(VCard vcard, ErrorPayload error) { + private void handleSetVCardResponse(VCard vcard, ErrorPayload error) { if (error == null) { setVCard(ownJID.toBare(), vcard); } } - void setVCard(final JID jid, VCard vcard) { + private void setVCard(final JID jid, VCard vcard) { storage.setVCard(jid, vcard); onVCardChanged.emit(jid, vcard); if (jid.compare(ownJID, JID.CompareType.WithoutResource) == 0) { @@ -109,7 +109,7 @@ public class VCardManager { } } -// String getPhotoHash(final JID jid) { -// return storage.getPhotoHash(jid); -// } + public String getPhotoHash(final JID jid) { + return storage.getPhotoHash(jid); + } } -- cgit v0.10.2-6-g49f6