summaryrefslogtreecommitdiff
path: root/src/lib/content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-08-21 22:36:24 +0100
committerCarl Hetherington <cth@carlh.net>2018-08-21 22:36:24 +0100
commitf968fb875135884b0551195edc2315d4be76d5bc (patch)
treea7a7c0f4a68a86b41e14206d6b2839011fddc4bb /src/lib/content.h
parent3734060fc1c7db2d1bdb44ff59eece4d1df6cad6 (diff)
Check content for changes on loading a project.
Diffstat (limited to 'src/lib/content.h')
-rw-r--r--src/lib/content.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/content.h b/src/lib/content.h
index 3ab272c16..2eaa738d2 100644
--- a/src/lib/content.h
+++ b/src/lib/content.h
@@ -118,6 +118,11 @@ public:
return _paths[i];
}
+ std::time_t last_write_time (size_t i) const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _last_write_times[i];
+ }
+
bool paths_valid () const;
/** @return Digest of the content's file(s). Note: this is
@@ -178,6 +183,8 @@ public:
std::list<UserProperty> user_properties () const;
+ std::string calculate_digest () const;
+
/* CHANGE_PENDING and CHANGE_CANCELLED may be emitted from any thread; CHANGE_DONE always from GUI thread */
boost::signals2::signal<void (ChangeType, boost::weak_ptr<Content>, int, bool)> Change;