/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef ABILITY_RUNTIME_JS_DATA_STRUCT_CONVERTER_H #define ABILITY_RUNTIME_JS_DATA_STRUCT_CONVERTER_H #include "ability_info.h" #include "application_info.h" #include "launch_param.h" #include "module_info.h" #include "want.h" #include "configuration.h" class NativeEngine; class NativeValue; namespace OHOS { namespace AbilityRuntime { NativeValue* CreateJsWantObject(NativeEngine& engine, const AAFwk::Want& want); NativeValue* CreateJsAbilityInfo(NativeEngine& engine, const AppExecFwk::AbilityInfo& abilityInfo); NativeValue* CreateJsModuleInfo(NativeEngine& engine, const AppExecFwk::ModuleInfo &moduleInfo); NativeValue* CreateJsApplicationInfo(NativeEngine& engine, const AppExecFwk::ApplicationInfo &applicationInfo); NativeValue* CreateJsLaunchParam(NativeEngine& engine, const AAFwk::LaunchParam& launchParam); NativeValue* CreateJsCustomizeData(NativeEngine& engine, const AppExecFwk::CustomizeData &Info); NativeValue* CreateJsCustomizeDataArray(NativeEngine& engine, const std::vector &info); NativeValue* CreateJsConfiguration(NativeEngine& engine, const AppExecFwk::Configuration& configuration); NativeValue* CreateJsMetadataArray(NativeEngine& engine, const std::vector &infos); NativeValue* CreateJsMetadata(NativeEngine& engine, const AppExecFwk::Metadata &Info); } // namespace AbilityRuntime } // namespace OHOS #endif // ABILITY_RUNTIME_JS_DATA_STRUCT_CONVERTER_H