1 /*
2  * Copyright (c) 2022-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 OHOS_FILEMGMT_BACKUP_BACKUP_PARA_H
17 #define OHOS_FILEMGMT_BACKUP_BACKUP_PARA_H
18 
19 #include <tuple>
20 
21 namespace OHOS::FileManagement::Backup {
22 class BackupPara {
23 public:
24     /**
25      * @brief 获取backup.para配置项backup.debug.overrideExtensionConfig的值
26      *
27      * @return 获取的配置项backup.debug.overrideExtensionConfig值为true时则返回true,否则返回false
28      */
29     bool GetBackupDebugOverrideExtensionConfig();
30 
31     /**
32      * @brief 获取backup.para配置项backup.debug.overrideAccountConfig
33      *
34      * @return bool值为配置项backup.debug.overrideAccountConfig值
35      * @return int32_t值为配置项backup.debug.overrideAccountNumber值
36      */
37     std::tuple<bool, int32_t> GetBackupDebugOverrideAccount();
38 
39     /**
40      * @brief 获取backup.para配置项backup.overrideBackupSARelease的值
41      *
42      * @return 获取的配置项backup.overrideBackupSARelease的值为true时则返回true,否则返回false
43      */
44     bool GetBackupOverrideBackupSARelease();
45 
46     /**
47      * @brief 获取backup.para配置项backup.overrideIncrementalRestore的值
48      *
49      * @return 获取的配置项backup.overrideIncrementalRestore的值为true时则返回true,否则返回false
50      */
51     bool GetBackupOverrideIncrementalRestore();
52 
53     /**
54      * @brief 获取backup.para配置项backupDebugState的值
55      *
56      * @return 获取的配置项backup.backupDebugState的值为true时则返回true,否则返回false
57      */
58     static bool GetBackupDebugState();
59 };
60 } // namespace OHOS::FileManagement::Backup
61 
62 #endif // OHOS_FILEMGMT_BACKUP_BACKUP_PARA_H