summaryrefslogtreecommitdiff
path: root/src/lib/user_property.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-02 21:03:03 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-02 21:03:03 +0100
commit31150ddd0fafac4426d11a758be9d77699b7377c (patch)
treeaa0ac01afb3295f2aa326e394e37247c68d7a431 /src/lib/user_property.h
parentcec71ef08475af291b968873757979c5e977facb (diff)
Fix missing content properties when using translations.
Diffstat (limited to 'src/lib/user_property.h')
-rw-r--r--src/lib/user_property.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/user_property.h b/src/lib/user_property.h
index b27cd4151..a7a6f63da 100644
--- a/src/lib/user_property.h
+++ b/src/lib/user_property.h
@@ -26,15 +26,22 @@
class UserProperty
{
public:
+ enum Category {
+ GENERAL,
+ VIDEO,
+ AUDIO,
+ LENGTH
+ };
+
template <class T>
- UserProperty (std::string category_, std::string key_, T value_, std::string unit_ = "")
+ UserProperty (Category category_, std::string key_, T value_, std::string unit_ = "")
: category (category_)
, key (key_)
, value (raw_convert<std::string> (value_))
, unit (unit_)
{}
- std::string category;
+ Category category;
std::string key;
std::string value;
std::string unit;