summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTarun Gupta <tarun1995gupta@gmail.com>2015-06-02 16:27:16 (GMT)
committerTarun Gupta <tarun1995gupta@gmail.com>2015-06-14 13:30:22 (GMT)
commitcae0635287b9ccf0d846dffd550440b347bd6721 (patch)
tree3b7af1ab986d43f512183f63c02bc34b22f522f2 /src/com/isode
parentda6b027a42d980cd918e299b2b0a1e9f7f0c9caa (diff)
downloadstroke-cae0635287b9ccf0d846dffd550440b347bd6721.zip
stroke-cae0635287b9ccf0d846dffd550440b347bd6721.tar.bz2
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
Diffstat (limited to 'src/com/isode')
-rw-r--r--src/com/isode/stroke/vcards/VCardManager.java18
1 files changed, 9 insertions, 9 deletions
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<VCard, ErrorPayload>() {
@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);
+ }
}