• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021-2022 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 OHOS_FORM_FWK_FORM_RECORD_H
17 #define OHOS_FORM_FWK_FORM_RECORD_H
18 
19 #include <vector>
20 #include "form_constants.h"
21 #include "form_info_base.h"
22 #include "form_provider_info.h"
23 
24 namespace OHOS {
25 namespace AppExecFwk {
26 /**
27  * @class FormRecord
28  * Form data.
29  */
30 class FormRecord {
31 public:
32     int64_t formId = 0;
33     bool isInited = false;
34     bool needFreeInstall = false;
35     bool versionUpgrade = false;
36     bool needRefresh = false;
37     bool isCountTimerRefresh = false;
38     std::string packageName = "";
39     std::string bundleName = "";
40     std::string moduleName = "";
41     std::string abilityName = "";
42     std::string formName = "";
43     int32_t specification;
44     bool isEnableUpdate = false;
45     bool isVisible = false;
46     int64_t updateDuration = 0;
47     int updateAtHour = -1;
48     int updateAtMin = -1;
49     FormProviderInfo formProviderInfo;
50     std::vector<std::string> hapSourceDirs;
51     std::string jsFormCodePath = "";
52     bool formTempFlag = false;
53     std::vector<int> formUserUids;
54     bool formVisibleNotify = false;
55     int formVisibleNotifyState = 0;
56     int32_t userId = 0;
57     int32_t providerUserId = Constants::DEFAULT_PROVIDER_USER_ID;
58     std::string formSrc = "";
59     FormWindow formWindow;
60     uint32_t versionCode = 0;
61     std::string versionName = "";
62     uint32_t compatibleVersion = 0;
63     FormType type = FormType::JS;
64     FormType uiSyntax = FormType::JS;
65     bool isDynamic = true;
66     bool isTimerRefresh = false;
67     bool isDataProxy = false;
68     bool isSystemApp = false;
69 };
70 }  // namespace AppExecFwk
71 }  // namespace OHOS
72 
73 #endif // OHOS_FORM_FWK_FORM_RECORD_H
74