const char kWidgetApplicationNoDisplayKey[] = "@nodisplay";
const char kWidgetApplicationHwAccelerationKey[] = "@hwacceleration";
const char kWidgetApplicationKey[] = "manifest.widget-application";
-const char kWidgetApplicationMainKey[] = "@main";
const char kTrue[] = "true";
const char kFalse[] = "false";
return false;
}
- const std::string& main = item.app_info.main();
- if (main != kTrue && main != kFalse) {
- *error = "main attribute should have 'true' or 'false' value";
- return false;
- }
-
return true;
}
std::string nodisplay;
if (app_dict.GetString(kWidgetApplicationNoDisplayKey, &nodisplay))
widgetapplicationinfo->app_info.set_nodisplay(nodisplay);
- std::string main("false");
- app_dict.GetString(kWidgetApplicationMainKey, &main);
- widgetapplicationinfo->app_info.set_main(main);
std::string launch_mode;
if (app_dict.GetString(kWidgetApplicationLaunchModeKey, &launch_mode)) {
hwacceleration_ = hwacceleration;
}
- void set_main(const std::string& main) {
- main_ = main;
- }
-
/**
* @brief launch_mode
* @return launch mode string
return hwacceleration_;
}
- const std::string& main() const {
- return main_;
- }
-
private:
std::string launch_mode_;
std::string multiple_;
std::string nodisplay_;
std::string hwacceleration_;
- std::string main_;
};
struct WidgetApplicationSingleEntry :