1cb7eb8c9Sopenharmony_ci/*
2cb7eb8c9Sopenharmony_ci * Copyright (c) 2023-2024 Huawei Device Co., Ltd.
3cb7eb8c9Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4cb7eb8c9Sopenharmony_ci * you may not use this file except in compliance with the License.
5cb7eb8c9Sopenharmony_ci * You may obtain a copy of the License at
6cb7eb8c9Sopenharmony_ci *
7cb7eb8c9Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8cb7eb8c9Sopenharmony_ci *
9cb7eb8c9Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10cb7eb8c9Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11cb7eb8c9Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12cb7eb8c9Sopenharmony_ci * See the License for the specific language governing permissions and
13cb7eb8c9Sopenharmony_ci * limitations under the License.
14cb7eb8c9Sopenharmony_ci */
15cb7eb8c9Sopenharmony_ci
16cb7eb8c9Sopenharmony_ci#ifndef OHOS_CLOUD_DISK_SERVICE_FILE_COLUMN_H
17cb7eb8c9Sopenharmony_ci#define OHOS_CLOUD_DISK_SERVICE_FILE_COLUMN_H
18cb7eb8c9Sopenharmony_ci
19cb7eb8c9Sopenharmony_ci#include <vector>
20cb7eb8c9Sopenharmony_ci
21cb7eb8c9Sopenharmony_ci#include "clouddisk_db_const.h"
22cb7eb8c9Sopenharmony_ci
23cb7eb8c9Sopenharmony_cinamespace OHOS {
24cb7eb8c9Sopenharmony_cinamespace FileManagement {
25cb7eb8c9Sopenharmony_cinamespace CloudDisk {
26cb7eb8c9Sopenharmony_ciclass FileColumn {
27cb7eb8c9Sopenharmony_cipublic:
28cb7eb8c9Sopenharmony_ci    // Local And Cloud
29cb7eb8c9Sopenharmony_ci    static const std::string CLOUD_ID;
30cb7eb8c9Sopenharmony_ci    static const std::string IS_DIRECTORY;
31cb7eb8c9Sopenharmony_ci    static const std::string FILE_NAME;
32cb7eb8c9Sopenharmony_ci    static const std::string PARENT_CLOUD_ID;
33cb7eb8c9Sopenharmony_ci    static const std::string FILE_SIZE;
34cb7eb8c9Sopenharmony_ci    static const std::string FILE_SHA256;
35cb7eb8c9Sopenharmony_ci    static const std::string FILE_TIME_ADDED;
36cb7eb8c9Sopenharmony_ci    static const std::string FILE_TIME_EDITED;
37cb7eb8c9Sopenharmony_ci    static const std::string FILE_TIME_RECYCLED;
38cb7eb8c9Sopenharmony_ci    static const std::string META_TIME_EDITED;
39cb7eb8c9Sopenharmony_ci    static const std::string DIRECTLY_RECYCLED;
40cb7eb8c9Sopenharmony_ci    static const std::string VERSION;
41cb7eb8c9Sopenharmony_ci    static const std::string OPERATE_TYPE;
42cb7eb8c9Sopenharmony_ci    static const std::string FILE_STATUS;
43cb7eb8c9Sopenharmony_ci    static const std::string ROW_ID;
44cb7eb8c9Sopenharmony_ci    static const std::string CHECK_FLAG;
45cb7eb8c9Sopenharmony_ci    static const std::string ROOT_DIRECTORY;
46cb7eb8c9Sopenharmony_ci    static const std::string ATTRIBUTE;
47cb7eb8c9Sopenharmony_ci
48cb7eb8c9Sopenharmony_ci    // Only Local
49cb7eb8c9Sopenharmony_ci    static const std::string FILE_TIME_VISIT;
50cb7eb8c9Sopenharmony_ci    static const std::string SYNC_STATUS;
51cb7eb8c9Sopenharmony_ci    static const std::string POSITION;
52cb7eb8c9Sopenharmony_ci    static const std::string DIRTY_TYPE;
53cb7eb8c9Sopenharmony_ci    static const std::string THM_FLAG;
54cb7eb8c9Sopenharmony_ci    static const std::string LCD_FLAG;
55cb7eb8c9Sopenharmony_ci    static const std::string MIME_TYPE;
56cb7eb8c9Sopenharmony_ci    static const std::string FILE_TYPE;
57cb7eb8c9Sopenharmony_ci    static const std::string FILE_CATEGORY;
58cb7eb8c9Sopenharmony_ci    static const std::string IS_FAVORITE;
59cb7eb8c9Sopenharmony_ci    static const std::string NO_NEED_UPLOAD;
60cb7eb8c9Sopenharmony_ci
61cb7eb8c9Sopenharmony_ci    // table name
62cb7eb8c9Sopenharmony_ci    static const std::string FILES_TABLE;
63cb7eb8c9Sopenharmony_ci
64cb7eb8c9Sopenharmony_ci    // parentCloudId index
65cb7eb8c9Sopenharmony_ci    static const std::string PARENT_CLOUD_ID_INDEX;
66cb7eb8c9Sopenharmony_ci
67cb7eb8c9Sopenharmony_ci    // create FileTable sql
68cb7eb8c9Sopenharmony_ci    static const std::string CREATE_FILE_TABLE;
69cb7eb8c9Sopenharmony_ci
70cb7eb8c9Sopenharmony_ci    // create parentCloudId index
71cb7eb8c9Sopenharmony_ci    static const std::string CREATE_PARENT_CLOUD_ID_INDEX;
72cb7eb8c9Sopenharmony_ci
73cb7eb8c9Sopenharmony_ci    //create IsFavorite
74cb7eb8c9Sopenharmony_ci    static const std::string ADD_IS_FAVORITE;
75cb7eb8c9Sopenharmony_ci
76cb7eb8c9Sopenharmony_ci    //create FileStatus
77cb7eb8c9Sopenharmony_ci    static const std::string ADD_FILE_STATUS;
78cb7eb8c9Sopenharmony_ci
79cb7eb8c9Sopenharmony_ci    //set FileStatus
80cb7eb8c9Sopenharmony_ci    static const std::string SET_FILE_STATUS_DEFAULT;
81cb7eb8c9Sopenharmony_ci
82cb7eb8c9Sopenharmony_ci    //set CheckFlag
83cb7eb8c9Sopenharmony_ci    static const std::string ADD_CHECK_FLAG;
84cb7eb8c9Sopenharmony_ci
85cb7eb8c9Sopenharmony_ci    // set attribute
86cb7eb8c9Sopenharmony_ci    static const std::string ADD_ATTRIBUTE;
87cb7eb8c9Sopenharmony_ci
88cb7eb8c9Sopenharmony_ci    static const std::string ADD_THM_FLAG;
89cb7eb8c9Sopenharmony_ci
90cb7eb8c9Sopenharmony_ci    static const std::string ADD_LCD_FLAG;
91cb7eb8c9Sopenharmony_ci
92cb7eb8c9Sopenharmony_ci    static const std::string ADD_UPLOAD_FLAG;
93cb7eb8c9Sopenharmony_ci
94cb7eb8c9Sopenharmony_ci    // Query FILES_TABLE for FileSystem
95cb7eb8c9Sopenharmony_ci    static const std::vector<std::string> FILE_SYSTEM_QUERY_COLUMNS;
96cb7eb8c9Sopenharmony_ci
97cb7eb8c9Sopenharmony_ci    // Query FILES_TABLE for Disk Push
98cb7eb8c9Sopenharmony_ci    static const std::vector<std::string> DISK_CLOUD_SYNC_COLUMNS;
99cb7eb8c9Sopenharmony_ci
100cb7eb8c9Sopenharmony_ci    static const std::vector<std::string> LOCAL_COLUMNS;
101cb7eb8c9Sopenharmony_ci
102cb7eb8c9Sopenharmony_ci    // Query pull info columns
103cb7eb8c9Sopenharmony_ci    static const std::vector<std::string> PULL_QUERY_COLUMNS;
104cb7eb8c9Sopenharmony_ci
105cb7eb8c9Sopenharmony_ci    // Query local info columns
106cb7eb8c9Sopenharmony_ci    static const std::vector<std::string> DISK_ON_UPLOAD_COLUMNS;
107cb7eb8c9Sopenharmony_ci
108cb7eb8c9Sopenharmony_ci    static const std::vector<std::string> EXT_ATTR_QUERY_COLUMNS;
109cb7eb8c9Sopenharmony_ci};
110cb7eb8c9Sopenharmony_ci} // namespace CloudDisk
111cb7eb8c9Sopenharmony_ci} // namespace FileManagement
112cb7eb8c9Sopenharmony_ci} // namespace OHOS
113cb7eb8c9Sopenharmony_ci#endif // OHOS_CLOUD_DISK_SERVICE_FILE_COLUMN_H