• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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 #ifndef OHOS_FILEMGMT_DATA_SYNC_MANAGER_H
16 #define OHOS_FILEMGMT_DATA_SYNC_MANAGER_H
17 
18 #include <set>
19 #include <string>
20 
21 namespace OHOS::FileManagement::CloudSync {
22 class DataSyncConst {
23 public:
24     // photo album table name
25     static const std::string ALBUM_TABLE_NAME;
26 
27     // columns only in PhotoAlbumTable
28     static const std::string ALBUM_ID;
29     static const std::string ALBUM_TYPE;
30     static const std::string ALBUM_SUBTYPE;
31     static const std::string ALBUM_NAME;
32     static const std::string ALBUM_COVER_URI;
33     static const std::string ALBUM_COUNT;
34     static const std::string ALBUM_DATE_MODIFIED;
35 
36     // For api9 compatibility
37     static const std::string ALBUM_RELATIVE_PATH;
38 
39     // default fetch columns
40     static const std::set<std::string> DEFAULT_FETCH_COLUMNS;
41 
42     // util constants
43     static const std::string ALBUM_URI_PREFIX;
44     static const std::string PHOTO_URI_PREFIX;
45 
46     static const std::string INVALID_ID;
47 };
48 }
49 #endif // OHOS_FILEMGMT_DATA_SYNC_MANAGER_H
50