X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fuser_property.h;h=a7a6f63da2336f6eece25b5e4dd994df669cc65f;hp=b27cd4151f3693f6b021ee6d62992fb10df20150;hb=422be0eece2bf6ee80db1d3c21553cd82efff789;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05 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 - 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_)) , unit (unit_) {} - std::string category; + Category category; std::string key; std::string value; std::string unit;