aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/export/Export.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/export/Export.java')
-rw-r--r--main/src/cgeo/geocaching/export/Export.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/export/Export.java b/main/src/cgeo/geocaching/export/Export.java
new file mode 100644
index 0000000..7a2b075
--- /dev/null
+++ b/main/src/cgeo/geocaching/export/Export.java
@@ -0,0 +1,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();
+}