summaryrefslogtreecommitdiff
path: root/src/lib/content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-21 17:32:28 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-21 17:32:28 +0100
commit2255aedd15f985796d2e6f7fcc7fb412a5d98812 (patch)
tree744d52adfdd226ce5b0220d62612710873fa77f4 /src/lib/content.h
parent2de990b0155fcb5c3dac821ef8c2659e903d2f6e (diff)
Various more hacks; basically trying to remove Regions as an unnecessary complexity.
Diffstat (limited to 'src/lib/content.h')
-rw-r--r--src/lib/content.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/content.h b/src/lib/content.h
index 8db35891a..fd6288acc 100644
--- a/src/lib/content.h
+++ b/src/lib/content.h
@@ -60,6 +60,11 @@ public:
return _digest;
}
+ Time time () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _time;
+ }
+
boost::signals2::signal<void (boost::weak_ptr<Content>, int)> Changed;
protected:
@@ -70,6 +75,7 @@ protected:
private:
boost::filesystem::path _file;
std::string _digest;
+ Time _time;
};
#endif