Change light-user element's attribute 03/322903/1
authorIlho Kim <ilho159.kim@samsung.com>
Thu, 17 Apr 2025 10:17:27 +0000 (19:17 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Thu, 17 Apr 2025 10:17:27 +0000 (19:17 +0900)
Change-Id: Iba6e418f1f30c2d77682853901a84e68256b8a13
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/tpk_manifest_handlers/light_user_handler.cc
src/tpk_manifest_handlers/light_user_handler.h

index ff8d7ddbbf28bd284a388fb9c9f725f2a4af8d23..d38c71c49253d7194b1173a4b7635a63f9cacd9b 100644 (file)
@@ -12,11 +12,16 @@ namespace parse {
 namespace {
 
 const char kLightUserKey[] = "manifest.light-user";
+const char kLightUserSupportKey[] = "@support";
 const char kLightUserSwitchModeKey[] = "@switch-mode";
 
 void ParseLightUserAndStore(
     const parser::DictionaryValue& light_user_dict,
     LightUserInfo* light_user) {
+  std::string support;
+  light_user_dict.GetString(kLightUserSupportKey, &support);
+  light_user->set_support(support);
+
   std::string switch_mode;
   light_user_dict.GetString(kLightUserSwitchModeKey, &switch_mode);
   light_user->set_switch_mode(switch_mode);
index bc3a4866a2681fe2211c2c7e825b2eee8e838093..ecbe0ac6c404504a177bee911ce45ad6559ec1e0 100644 (file)
@@ -20,6 +20,20 @@ class LightUserInfo : public parser::ManifestData {
    * @param key string
    */
   static std::string Key();
+  /**
+   * @brief set_support sets support
+   * @param support
+   */
+  void set_support(std::string support) {
+    support_ = std::move(support);
+  }
+  /**
+   * @brief support
+   * @return support string
+   */
+  const std::string& support() const {
+    return support_;
+  }
   /**
    * @brief set_switch_mode sets switch_mode
    * @param switch_mode
@@ -36,6 +50,7 @@ class LightUserInfo : public parser::ManifestData {
   }
 
  private:
+  std::string support_;
   std::string switch_mode_;
 };