blob: 6db305c3dd239c14ace3dc2102546b16201b7a98 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
package cgeo.geocaching.connector;
import cgeo.geocaching.SearchResult;
import cgeo.geocaching.cgCache;
import cgeo.geocaching.cgeoapplication;
import cgeo.geocaching.geopoint.Geopoint;
import cgeo.geocaching.utils.CancellableHandler;
public abstract class AbstractConnector implements IConnector {
@Override
public boolean canHandle(String geocode) {
return false;
}
@Override
public boolean supportsRefreshCache(cgCache cache) {
return false;
}
@Override
public boolean supportsWatchList() {
return false;
}
@Override
public boolean supportsLogging() {
return false;
}
@Override
public String getLicenseText(final cgCache cache) {
return null;
}
@Override
public boolean supportsUserActions() {
return false;
}
@Override
public boolean supportsCachesAround() {
return false;
}
@Override
public SearchResult searchByCoordinate(Geopoint center) {
return null;
}
@Override
public SearchResult searchByGeocode(String geocode, String guid, cgeoapplication app, int listId, CancellableHandler handler) {
return null;
}
protected static boolean isNumericId(final String string) {
try {
return Integer.parseInt(string) > 0;
} catch (NumberFormatException e) {
}
return false;
}
@Override
public boolean isZippedGPXFile(String fileName) {
// don't accept any file by default
return false;
}
}
|