summaryrefslogtreecommitdiffstats
path: root/pref.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-14 08:17:06 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-14 08:32:37 -0700
commit10b9202757b1db7f34af5f80c6aafe1ef2fcee88 (patch)
tree6c166c503d3873b2e9cf1901eea7558337428a49 /pref.h
parentbfd3782b81f5a4ddd793207702c5af0ffb7e7def (diff)
downloadsubsurface-10b9202757b1db7f34af5f80c6aafe1ef2fcee88.tar.gz
Preferences: hook up default file behavior in the dialog
This now sets the preference variable / config entry and keeps them in sync. Doesn't actually change the behavior at program start, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'pref.h')
-rw-r--r--pref.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pref.h b/pref.h
index c7e0ad8ee..16578030c 100644
--- a/pref.h
+++ b/pref.h
@@ -89,6 +89,7 @@ struct preferences {
int defaultsetpoint; // default setpoint in mbar
bool show_pictures_in_profile;
bool use_default_file;
+ short default_file_behavior;
facebook_prefs_t facebook;
char *cloud_storage_password;
char *cloud_storage_email;
@@ -103,6 +104,13 @@ enum unit_system_values {
PERSONALIZE
};
+enum def_file_behavior {
+ UNDEFINED_DEFAULT_FILE,
+ LOCAL_DEFAULT_FILE,
+ NO_DEFAULT_FILE,
+ CLOUD_DEFAULT_FILE
+};
+
extern struct preferences prefs, default_prefs;
#define PP_GRAPHS_ENABLED (prefs.pp_graphs.po2 || prefs.pp_graphs.pn2 || prefs.pp_graphs.phe)