1 /* 2 * Copyright (c) 2021 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 FOUNDATION_APPEXECFWK_SERVICES_FORMMGR_INCLUDE_FORM_RECORD_H 17 #define FOUNDATION_APPEXECFWK_SERVICES_FORMMGR_INCLUDE_FORM_RECORD_H 18 19 #include <vector> 20 #include "form_info_base.h" 21 #include "form_provider_info.h" 22 23 namespace OHOS { 24 namespace AppExecFwk { 25 /** 26 * @class FormRecord 27 * Form data. 28 */ 29 class FormRecord { 30 public: 31 int64_t formId; 32 bool isInited = false; 33 bool needFreeInstall = false; 34 bool versionUpgrade = false; 35 bool needRefresh = false; 36 bool isCountTimerRefresh = false; 37 std::string packageName = ""; 38 std::string bundleName = ""; 39 std::string moduleName = ""; 40 std::string abilityName = ""; 41 std::string formName = ""; 42 int32_t specification; 43 bool isEnableUpdate = false; 44 bool isVisible = false; 45 long updateDuration = false; 46 int updateAtHour = -1; 47 int updateAtMin = -1; 48 FormProviderInfo formProviderInfo; 49 std::vector<std::string> hapSourceDirs; 50 std::string jsFormCodePath = ""; 51 bool formTempFlg = false; 52 std::vector<int> formUserUids; 53 bool formVisibleNotify = false; 54 int formVisibleNotifyState = 0; 55 int32_t userId = 0; 56 std::string formSrc = ""; 57 FormWindow formWindow; 58 uint32_t versionCode = 0; 59 std::string versionName = ""; 60 uint32_t compatibleVersion = 0; 61 std::string icon = ""; 62 }; 63 } // namespace AppExecFwk 64 } // namespace OHOS 65 66 #endif // FOUNDATION_APPEXECFWK_SERVICES_FORMMGR_INCLUDE_FORM_RECORD_H 67