summaryrefslogtreecommitdiff
path: root/src/lib/content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-21 19:12:44 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-21 19:12:44 +0100
commitfe771b1f0ed9f794bc98faa4cca2a15651f28e87 (patch)
treeae4366fcdd84796bcb75d3012893929f7bc2c71f /src/lib/content.cc
parent6ec7654b77b22d32cb1ca0dd35c8d66e16ca36d6 (diff)
Add more video properties to content properties dialog.
Also implement the whole properties thing more neatly.
Diffstat (limited to 'src/lib/content.cc')
-rw-r--r--src/lib/content.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc
index aa382d68b..2b4f02b90 100644
--- a/src/lib/content.cc
+++ b/src/lib/content.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013-2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -40,6 +40,7 @@ using std::list;
using std::cout;
using std::vector;
using std::max;
+using std::pair;
using boost::shared_ptr;
int const ContentProperty::PATH = 400;
@@ -273,3 +274,14 @@ Content::path_summary () const
return s;
}
+
+/** @return a list of properties that might be interesting to the user; first string is the property name,
+ * second is the value.
+ */
+list<pair<string, string> >
+Content::properties () const
+{
+ list<pair<string, string> > p;
+ add_properties (p);
+ return p;
+}