aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/mapinterfaces/MapFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/mapinterfaces/MapFactory.java')
-rw-r--r--main/src/cgeo/geocaching/mapinterfaces/MapFactory.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/mapinterfaces/MapFactory.java b/main/src/cgeo/geocaching/mapinterfaces/MapFactory.java
new file mode 100644
index 0000000..467947d
--- /dev/null
+++ b/main/src/cgeo/geocaching/mapinterfaces/MapFactory.java
@@ -0,0 +1,32 @@
+package cgeo.geocaching.mapinterfaces;
+
+import cgeo.geocaching.cgCoord;
+import cgeo.geocaching.cgUser;
+import cgeo.geocaching.geopoint.Geopoint;
+
+import android.app.Activity;
+import android.content.Context;
+
+/**
+ * Defines functions of a factory class to get implementation specific objects
+ * (GeoPoints, OverlayItems, ...)
+ *
+ * @author rsudev
+ *
+ */
+public interface MapFactory {
+
+ public Class<? extends Activity> getMapClass();
+
+ public int getMapViewId();
+
+ public int getMapLayoutId();
+
+ public GeoPointImpl getGeoPointBase(final Geopoint coords);
+
+ CacheOverlayItemImpl getCacheOverlayItem(cgCoord coordinate, String type);
+
+ public UserOverlayItemImpl getUserOverlayItemBase(Context context,
+ cgUser userOne);
+
+}