summaryrefslogtreecommitdiff
path: root/src/lib/content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-01 00:29:49 +0200
committerCarl Hetherington <cth@carlh.net>2025-10-10 21:15:37 +0200
commit710603ccccd86b2db33f76bb0b9c863df7d6a02b (patch)
tree2b8d10f7f2847e65fe1bb02a1bc4738afbf87f24 /src/lib/content.h
parent711cd65063f6f0b2bc4ba22c194f725d56a7c3fa (diff)
Add Content::path_for_display().
Diffstat (limited to 'src/lib/content.h')
-rw-r--r--src/lib/content.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/content.h b/src/lib/content.h
index d922da558..d84505b72 100644
--- a/src/lib/content.h
+++ b/src/lib/content.h
@@ -142,6 +142,9 @@ public:
std::vector<boost::filesystem::path> font_paths() const;
void replace_font_path(boost::filesystem::path old_path, boost::filesystem::path new_path);
+ /** @return A path which summarises this content for the user */
+ virtual boost::filesystem::path path_for_display() const;
+
std::time_t last_write_time(size_t i) const {
boost::mutex::scoped_lock lm(_mutex);
return _last_write_times[i];