Add 'splash-screen-display' attribute for uiapplication 96/61996/3 accepted/tizen/common/20160321.150446 accepted/tizen/mobile/20160321.113359 accepted/tizen/tv/20160321.113421 accepted/tizen/wearable/20160321.113441 submit/tizen/20160321.014821
authorHwankyu Jhun <h.jhun@samsung.com>
Sat, 12 Mar 2016 07:28:53 +0000 (16:28 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Wed, 16 Mar 2016 11:03:20 +0000 (04:03 -0700)
Requires:
https://review.tizen.org/gerrit/#/c/61995/

Change-Id: I90cb6506751603e693eda45ba881ec60325bad59
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/tpk_manifest_handlers/ui_application_handler.cc
src/tpk_manifest_handlers/ui_application_handler.h

index 0d14f16e60d7bf63616da936e3503c1d5321411c..f1e0e69a7f8b83b512b8c2cdedf23af07aef3434 100644 (file)
@@ -40,6 +40,7 @@ const char kUIApplicationPortraitEffectImageKey[] = "@portrait-effectimage";
 const char kUIApplicationLandscapeEffectImageKey[] = "@landscape-effectimage";
 const char kUIApplicationEffectImageTypeKey[] = "@effectimage-type";
 const char kUIApplicationHwAccelerationKey[] = "@hw-acceleration";
+const char kUIApplicationSplashScreenDisplayKey[] = "@splash-screen-display";
 const char kUIApplicationKey[] = "manifest.ui-application";
 
 const char kTrue[] = "true";
@@ -255,6 +256,17 @@ bool ParseUIApplicationAndStore(
   if (app_dict.GetString(kUIApplicationHwAccelerationKey, &hwacceleration))
     uiapplicationinfo->app_info.set_hwacceleration(hwacceleration);
 
+  std::string splash_screen_display;
+  if (app_dict.GetString(kUIApplicationSplashScreenDisplayKey,
+                         &splash_screen_display)) {
+    if (!IsBooleanString(splash_screen_display)) {
+      *error = "splash-screen-display must be 'true' or 'false'";
+      return false;
+    }
+    uiapplicationinfo->app_info.set_splash_screen_display(
+        splash_screen_display);
+  }
+
   return InitializeParsing(app_dict, uiapplicationinfo, error);
 }
 
@@ -266,7 +278,8 @@ UIApplicationInfo::UIApplicationInfo()
       submode_("false"),
       indicator_display_("true"),
       effectimage_type_("image"),
-      hwacceleration_("default") {
+      hwacceleration_("default"),
+      splash_screen_display_("true") {
 }
 
 bool UIApplicationHandler::Parse(
index 7c4d8dd6d1b1b850a6533adb71d986553972bd82..518ed61b2b607f4a5706b07bbb6fcb1f7a8295f2 100644 (file)
@@ -83,6 +83,9 @@ class UIApplicationInfo : public ApplicationInfo {
   void set_hwacceleration(const std::string& hwacceleration) {
     hwacceleration_ = hwacceleration;
   }
+  void set_splash_screen_display(const std::string& splash_screen_display) {
+    splash_screen_display_ = splash_screen_display;
+  }
 
   const std::string& type() const {
     return type_;
@@ -151,6 +154,10 @@ class UIApplicationInfo : public ApplicationInfo {
     return hwacceleration_;
   }
 
+  const std::string& splash_screen_display() const {
+    return splash_screen_display_;
+  }
+
  private:
   std::string type_;
   std::string process_pool_;
@@ -166,6 +173,7 @@ class UIApplicationInfo : public ApplicationInfo {
   std::string landscape_image_;
   std::string effectimage_type_;
   std::string hwacceleration_;
+  std::string splash_screen_display_;
 };
 
 struct UIApplicationSingleEntry :