aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/loaders/KeywordGeocacheListLoader.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/loaders/KeywordGeocacheListLoader.java')
-rw-r--r--main/src/cgeo/geocaching/loaders/KeywordGeocacheListLoader.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/loaders/KeywordGeocacheListLoader.java b/main/src/cgeo/geocaching/loaders/KeywordGeocacheListLoader.java
new file mode 100644
index 0000000..36b62d6
--- /dev/null
+++ b/main/src/cgeo/geocaching/loaders/KeywordGeocacheListLoader.java
@@ -0,0 +1,23 @@
+package cgeo.geocaching.loaders;
+
+import cgeo.geocaching.SearchResult;
+import cgeo.geocaching.Settings;
+import cgeo.geocaching.connector.gc.GCParser;
+
+import android.content.Context;
+
+public class KeywordGeocacheListLoader extends AbstractSearchLoader {
+
+ private final String keyword;
+
+ public KeywordGeocacheListLoader(Context context, String keyword) {
+ super(context);
+ this.keyword = keyword;
+ }
+
+ @Override
+ public SearchResult runSearch() {
+ return GCParser.searchByKeyword(keyword, Settings.getCacheType(), Settings.isShowCaptcha(), this);
+ }
+
+}