diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-10-06 12:52:33 +0200 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-10-06 12:52:33 +0200 |
commit | 3dcad1e391deeeb6093b1ac34d8b252969664dfa (patch) | |
tree | 2385badac4615c9e9fe1eb2c440f7963fea5ba69 /main/src/cgeo/geocaching/connector/ConnectorFactory.java | |
parent | 9de7074ab79c2f46a939219ac7dcce9b8ca3e2dd (diff) | |
download | cgeo-3dcad1e391deeeb6093b1ac34d8b252969664dfa.zip cgeo-3dcad1e391deeeb6093b1ac34d8b252969664dfa.tar.gz cgeo-3dcad1e391deeeb6093b1ac34d8b252969664dfa.tar.bz2 |
fix #653: Add Smilies when logging
Diffstat (limited to 'main/src/cgeo/geocaching/connector/ConnectorFactory.java')
-rw-r--r-- | main/src/cgeo/geocaching/connector/ConnectorFactory.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/connector/ConnectorFactory.java b/main/src/cgeo/geocaching/connector/ConnectorFactory.java index 6b3afe9..56ec431 100644 --- a/main/src/cgeo/geocaching/connector/ConnectorFactory.java +++ b/main/src/cgeo/geocaching/connector/ConnectorFactory.java @@ -2,6 +2,7 @@ package cgeo.geocaching.connector; import cgeo.geocaching.ICache; import cgeo.geocaching.SearchResult; +import cgeo.geocaching.cgTrackable; import cgeo.geocaching.connector.gc.GCConnector; import cgeo.geocaching.connector.oc.OCApiConnector; import cgeo.geocaching.connector.oc.OCConnector; @@ -50,6 +51,10 @@ public final class ConnectorFactory { return getConnector(cache.getGeocode()); } + public static IConnector getConnector(cgTrackable trackable) { + return getConnector(trackable.getGeocode()); + } + public static IConnector getConnector(final String geocodeInput) { // this may come from user input final String geocode = StringUtils.trim(geocodeInput); |