1bc03f14fSopenharmony_ci/* 2bc03f14fSopenharmony_ci * Copyright (c) 2022-2023 Huawei Device Co., Ltd. 3bc03f14fSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4bc03f14fSopenharmony_ci * you may not use this file except in compliance with the License. 5bc03f14fSopenharmony_ci * You may obtain a copy of the License at 6bc03f14fSopenharmony_ci * 7bc03f14fSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8bc03f14fSopenharmony_ci * 9bc03f14fSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10bc03f14fSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11bc03f14fSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12bc03f14fSopenharmony_ci * See the License for the specific language governing permissions and 13bc03f14fSopenharmony_ci * limitations under the License. 14bc03f14fSopenharmony_ci */ 15bc03f14fSopenharmony_ci 16bc03f14fSopenharmony_ci#ifndef OHOS_PASTEBOARD_SERVICES_LOAD_CONFIG_H 17bc03f14fSopenharmony_ci#define OHOS_PASTEBOARD_SERVICES_LOAD_CONFIG_H 18bc03f14fSopenharmony_ci#include "serializable/serializable.h" 19bc03f14fSopenharmony_cinamespace OHOS::MiscServices { 20bc03f14fSopenharmony_ciclass Config final : public DistributedData::Serializable { 21bc03f14fSopenharmony_cipublic: 22bc03f14fSopenharmony_ci class Component final : public DistributedData::Serializable { 23bc03f14fSopenharmony_ci public: 24bc03f14fSopenharmony_ci std::string description = ""; 25bc03f14fSopenharmony_ci std::string lib = ""; 26bc03f14fSopenharmony_ci std::string constructor = ""; 27bc03f14fSopenharmony_ci std::string destructor = ""; 28bc03f14fSopenharmony_ci std::string params = ""; 29bc03f14fSopenharmony_ci bool Marshal(json &node) const override; 30bc03f14fSopenharmony_ci bool Unmarshal(const json &node) override; 31bc03f14fSopenharmony_ci }; 32bc03f14fSopenharmony_ci std::string processLabel; 33bc03f14fSopenharmony_ci std::string version; 34bc03f14fSopenharmony_ci std::vector<std::string> features; 35bc03f14fSopenharmony_ci std::vector<std::string> plugins; 36bc03f14fSopenharmony_ci std::vector<Component> components; 37bc03f14fSopenharmony_ci std::vector<std::string> bundles; 38bc03f14fSopenharmony_ci int32_t uid = -1; 39bc03f14fSopenharmony_ci bool Marshal(json &node) const override; 40bc03f14fSopenharmony_ci bool Unmarshal(const json &node) override; 41bc03f14fSopenharmony_ci}; 42bc03f14fSopenharmony_ci} // namespace OHOS::MiscServices 43bc03f14fSopenharmony_ci#endif // OHOS_PASTEBOARD_SERVICES_LOAD_CONFIG_H 44