X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fuser_property.h;h=ffbb99a5f4b81f1f19f233607eab59241da23715;hb=bcb5a3f8bc060240db5573ded03e1a0521977207;hp=b27cd4151f3693f6b021ee6d62992fb10df20150;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/user_property.h b/src/lib/user_property.h index b27cd4151..ffbb99a5f 100644 --- a/src/lib/user_property.h +++ b/src/lib/user_property.h @@ -21,20 +21,27 @@ #ifndef DCPOMATIC_USER_PROPERTY_H #define DCPOMATIC_USER_PROPERTY_H -#include "raw_convert.h" +#include class UserProperty { public: + enum Category { + GENERAL, + VIDEO, + AUDIO, + LENGTH + }; + template - 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 (value_)) + , value (dcp::locale_convert (value_)) , unit (unit_) {} - std::string category; + Category category; std::string key; std::string value; std::string unit;