const char kWidgetApplicationNoDisplayKey[] = "@nodisplay";
const char kWidgetApplicationHwAccelerationKey[] = "@hwacceleration";
const char kWidgetApplicationKey[] = "manifest.widget-application";
+const char kWidgetApplicationTypeKey[] = "@type";
const char kTrue[] = "true";
const char kFalse[] = "false";
std::string nodisplay;
if (app_dict.GetString(kWidgetApplicationNoDisplayKey, &nodisplay))
widgetapplicationinfo->app_info.set_nodisplay(nodisplay);
+ std::string type;
+ if (app_dict.GetString(kWidgetApplicationTypeKey, &type))
+ widgetapplicationinfo->app_info.set_type(type);
std::string launch_mode;
if (app_dict.GetString(kWidgetApplicationLaunchModeKey, &launch_mode)) {
WidgetApplicationInfo::WidgetApplicationInfo()
: multiple_("false"),
nodisplay_("false"),
- hwacceleration_("default") {
+ hwacceleration_("default"),
+ type_("capp") {
}
bool WidgetApplicationHandler::Parse(
hwacceleration_ = std::move(hwacceleration);
}
+ /**
+ * @brief set_launch_mode sets launch mdoe
+ * @param launch_mode
+ */
+ void set_type(std::string type) {
+ type_ = std::move(type);
+ }
+
/**
* @brief launch_mode
* @return launch mode string
return hwacceleration_;
}
+ const std::string& type() const {
+ return type_;
+ }
+
private:
std::string launch_mode_;
std::string multiple_;
std::string nodisplay_;
std::string hwacceleration_;
+ std::string type_;
+
};
struct WidgetApplicationSingleEntry :