summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-05-23 11:51:55 +0100
committerCarl Hetherington <cth@carlh.net>2017-05-23 11:51:55 +0100
commitfe56f4e0ac26fbe1bea8d7b07f61dcc26cc26984 (patch)
treecdcebdf673f25db025c48d85784edc5022a65702 /src/lib
parentf097755835c7607810ceef3613ee00aca50f33fe (diff)
Add Content::set_paths().
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/content.cc7
-rw-r--r--src/lib/content.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc
index 942e9e533..21b04c649 100644
--- a/src/lib/content.cc
+++ b/src/lib/content.cc
@@ -289,6 +289,13 @@ Content::set_path (boost::filesystem::path path)
signal_changed (ContentProperty::PATH);
}
+void
+Content::set_paths (vector<boost::filesystem::path> paths)
+{
+ _paths = paths;
+ signal_changed (ContentProperty::PATH);
+}
+
string
Content::path_summary () const
{
diff --git a/src/lib/content.h b/src/lib/content.h
index 334a82756..d0a0466af 100644
--- a/src/lib/content.h
+++ b/src/lib/content.h
@@ -99,6 +99,7 @@ public:
boost::shared_ptr<Content> clone () const;
void set_path (boost::filesystem::path);
+ void set_paths (std::vector<boost::filesystem::path> paths);
std::string path_summary () const;