aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/export/Export.java
blob: 7a2b07574b0298fdde57c43f9806109db3714c51 (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
package cgeo.geocaching.export;

import cgeo.geocaching.cgCache;

import android.app.Activity;

import java.util.List;

/**
 * Represents an exporter to export a {@link List} of {@link cgCache} to various formats.
 */
interface Export {
    /**
     * Export a {@link List} of {@link cgCache} to various formats.
     *
     * @param caches
     *            The {@link List} of {@link cgCache} to be exported
     * @param activity
     *            optional: Some exporters might have an UI which requires an {@link Activity}
     */
    public void export(List<cgCache> caches, Activity activity);

    /**
     * Get the localized name of this exporter.
     *
     * @return localized name
     */
    public String getName();
}