aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/ILoggingManager.java
blob: c5586b38dbbe1815f5f34e62bb7fd7270a97b275 (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
package cgeo.geocaching.connector;

import cgeo.geocaching.Geocache;
import cgeo.geocaching.TrackableLog;
import cgeo.geocaching.enumerations.LogType;

import android.net.Uri;

import java.util.Calendar;
import java.util.List;

public interface ILoggingManager {

    /**
     * Post a log for a cache online
     * 
     * @param cache
     * @param logType
     * @param date
     * @param log
     * @param logPassword
     *            optional, maybe null
     * @param trackableLogs
     * @return
     */
    LogResult postLog(Geocache cache,
            LogType logType,
            Calendar date,
            String log,
            String logPassword,
            List<TrackableLog> trackableLogs);

    ImageResult postLogImage(String logId,
            String imageCaption,
            String imageDescription,
            Uri imageUri);

    public boolean hasLoaderError();

    public List<TrackableLog> getTrackables();

    public List<LogType> getPossibleLogTypes();

    public void init();
}