1 /* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef DEVELOPTOOLS_PACKING_TOOL_APT_FRAMEWORKS_INCLUDE_APPQF_PACKAGER_H 17 #define DEVELOPTOOLS_PACKING_TOOL_APT_FRAMEWORKS_INCLUDE_APPQF_PACKAGER_H 18 19 #include "packager.h" 20 #include "zip_wrapper.h" 21 22 namespace OHOS { 23 namespace AppPackingTool { 24 25 class APPQFPackager : public Packager { 26 public: 27 APPQFPackager(const std::map<std::string, std::string> ¶meterMap, std::string &resultReceiver); ~APPQFPackager()28 ~APPQFPackager() override {} 29 30 protected: 31 int32_t InitAllowedParam() override; 32 int32_t PreProcess() override; 33 int32_t Process() override; 34 int32_t PostProcess() override; 35 36 private: 37 ZipWrapper zipWrapper_; 38 std::list<std::string> hqfList_; 39 bool CheckHqfList(const std::list<std::string> &hqfList); 40 }; 41 } // namespace AppExecFwk 42 } // namespace OHOS 43 #endif // DEVELOPTOOLS_PACKING_TOOL_APT_FRAMEWORKS_INCLUDE_APPQF_PACKAGER_H