summaryrefslogtreecommitdiff
path: root/altoslib/AltosPreferencesBackend.java
diff options
context:
space:
mode:
authorMike Beattie <mike@ethernal.org>2012-09-18 23:46:17 +1200
committerMike Beattie <mike@ethernal.org>2012-09-18 23:46:17 +1200
commitc058ec2d6070458a0b7d3ef56041e985412ee565 (patch)
treed5b7c9005e2419c71262c8ca8b43892b225a4f9d /altoslib/AltosPreferencesBackend.java
parent36e684724e327dbd4319411ef0602fafb4d0c073 (diff)
altos{lib,ui,droid}: move OS specific code out of altoslib
This is to allow the usage of AltosLog on Android - no swing, so we need to push the "home directory" code used to pick a default telemetry logging path - using the PreferencesBackend interface for now. Signed-off-by: Mike Beattie <mike@ethernal.org>
Diffstat (limited to 'altoslib/AltosPreferencesBackend.java')
-rw-r--r--altoslib/AltosPreferencesBackend.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/altoslib/AltosPreferencesBackend.java b/altoslib/AltosPreferencesBackend.java
index 3fc4b0aa..a1184c0b 100644
--- a/altoslib/AltosPreferencesBackend.java
+++ b/altoslib/AltosPreferencesBackend.java
@@ -17,6 +17,8 @@
package org.altusmetrum.AltosLib;
+import java.io.File;
+
public interface AltosPreferencesBackend {
public String getString(String key, String def);
@@ -38,4 +40,6 @@ public interface AltosPreferencesBackend {
public void remove(String key);
public void flush();
+
+ public File homeDirectory();
}