diff options
Diffstat (limited to 'src/lib/content.h')
| -rw-r--r-- | src/lib/content.h | 7 |
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; |
