summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-05-04 10:55:53 +0100
committerCarl Hetherington <cth@carlh.net>2017-05-04 10:55:53 +0100
commitbb80004d3201047a33dd251ea6c3f6de2b47cb3b (patch)
tree8b2520011c7d5f346c2725bb23a551b872850050 /src/lib/config.h
parent9b1fb6530563dfd8f32a8568d26c768b1006de90 (diff)
Nag users to backup config.xml if they make a DKDM.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 40380f825..f2d224898 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -313,6 +313,15 @@ public:
return _jump_to_selected;
}
+ enum Nag {
+ NAG_DKDM_CONFIG,
+ NAG_COUNT
+ };
+
+ bool nagged (Nag nag) const {
+ return _nagged[nag];
+ }
+
bool preview_sound () const {
return _preview_sound;
}
@@ -585,6 +594,10 @@ public:
maybe_set (_jump_to_selected, j);
}
+ void set_nagged (Nag nag, bool nagged) {
+ maybe_set (_nagged[nag], nagged);
+ }
+
void changed (Property p = OTHER);
boost::signals2::signal<void (Property)> Changed;
/** Emitted if read() failed on an existing Config file. There is nothing
@@ -607,6 +620,7 @@ public:
static void drop ();
static void restore_defaults ();
static bool have_existing (std::string);
+ static boost::filesystem::path config_path ();
private:
Config ();
@@ -718,6 +732,7 @@ private:
dcp::NameFormat _dcp_metadata_filename_format;
dcp::NameFormat _dcp_asset_filename_format;
bool _jump_to_selected;
+ bool _nagged[NAG_COUNT];
bool _preview_sound;
/** name of a specific sound output stream to use for preview, or empty to use the default */
boost::optional<std::string> _preview_sound_output;