blob: dd935c45c99bdfb995eb15a7d14ca1868270dc08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
package cgeo.geocaching.maps.interfaces;
import cgeo.geocaching.IWaypoint;
import cgeo.geocaching.enumerations.CacheType;
import cgeo.geocaching.geopoint.Geopoint;
import cgeo.geocaching.go4cache.Go4CacheUser;
import android.app.Activity;
import android.content.Context;
import java.util.Map;
/**
* Defines functions of a factory class to get implementation specific objects
* (GeoPoints, OverlayItems, ...)
*
* @author rsudev
*
*/
public interface MapProvider {
public Map<Integer, String> getMapSources();
public boolean isMySource(int sourceId);
public Class<? extends Activity> getMapClass();
public int getMapViewId();
public int getMapLayoutId();
public GeoPointImpl getGeoPointBase(final Geopoint coords);
public CachesOverlayItemImpl getCachesOverlayItem(final IWaypoint iWaypoint, final CacheType type);
public OtherCachersOverlayItemImpl getOtherCachersOverlayItemBase(Context context,
Go4CacheUser userOne);
}
|