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

import android.app.Activity;

import java.util.List;

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

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