aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/loaders/HistoryGeocacheListLoader.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/loaders/HistoryGeocacheListLoader.java')
-rw-r--r--main/src/cgeo/geocaching/loaders/HistoryGeocacheListLoader.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/loaders/HistoryGeocacheListLoader.java b/main/src/cgeo/geocaching/loaders/HistoryGeocacheListLoader.java
new file mode 100644
index 0000000..90e22d1
--- /dev/null
+++ b/main/src/cgeo/geocaching/loaders/HistoryGeocacheListLoader.java
@@ -0,0 +1,24 @@
+package cgeo.geocaching.loaders;
+
+import cgeo.geocaching.SearchResult;
+import cgeo.geocaching.Settings;
+import cgeo.geocaching.cgData;
+import cgeo.geocaching.enumerations.CacheType;
+import cgeo.geocaching.geopoint.Geopoint;
+
+import android.content.Context;
+
+public class HistoryGeocacheListLoader extends AbstractSearchLoader {
+ private final Geopoint coords;
+
+ public HistoryGeocacheListLoader(Context context, Geopoint coords) {
+ super(context);
+ this.coords = coords;
+ }
+
+ @Override
+ public SearchResult runSearch() {
+ return cgData.getHistoryOfCaches(true, coords != null ? Settings.getCacheType() : CacheType.ALL);
+ }
+
+}