add form type

Signed-off-by: zhaoyuan <zhaoyuan17@huawei.com>
This commit is contained in:
zhaoyuan 2021-09-18 20:29:10 +08:00 committed by blackleon
parent 9de148fb17
commit 93211dbf06
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ enum class AbilityType {
PAGE,
SERVICE,
DATA,
FORM,
};
enum class AbilitySubType {

View File

@ -29,7 +29,7 @@ namespace ProfileReader {
thread_local int32_t parseResult;
const std::map<std::string, AbilityType> ABILITY_TYPE_MAP = {
{"page", AbilityType::PAGE}, {"service", AbilityType::SERVICE}, {"data", AbilityType::DATA}};
{"page", AbilityType::PAGE}, {"service", AbilityType::SERVICE}, {"data", AbilityType::DATA}}, {"form", AbilityType::FORM};
const std::map<std::string, DisplayOrientation> DISPLAY_ORIENTATION_MAP = {
{"unspecified", DisplayOrientation::UNSPECIFIED},
{"landscape", DisplayOrientation::LANDSCAPE},