Add uid attribute of ThemeInfo
[platform/core/appfw/tizen-theme-manager.git] / src / theme / loader / theme_info.cc
index 4f7ccb6..3f54a27 100644 (file)
@@ -33,6 +33,11 @@ std::string ThemeInfo::GetPkgid() const {
   return bundle_.GetString("pkgid");
 }
 
+uid_t ThemeInfo::GetUid() const {
+  std::string uid_str = bundle_.GetString("uid");
+  return std::stoi(uid_str);
+}
+
 std::string ThemeInfo::GetVersion() const {
   return bundle_.GetString("version");
 }