/* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "data_sync_const.h" #include "media_column.h" #include "medialibrary_db_const.h" #include "photo_album_column.h" #include "photo_map_column.h" namespace OHOS::FileManagement::CloudSync { // PhotoAlbum table const std::string DataSyncConst::ALBUM_TABLE_NAME = "PhotoAlbum"; const std::string DataSyncConst::ALBUM_ID = "album_id"; const std::string DataSyncConst::ALBUM_TYPE = "album_type"; const std::string DataSyncConst::ALBUM_SUBTYPE = "album_subtype"; const std::string DataSyncConst::ALBUM_NAME = "album_name"; const std::string DataSyncConst::ALBUM_COVER_URI = "cover_uri"; const std::string DataSyncConst::ALBUM_COUNT = "count"; const std::string DataSyncConst::ALBUM_DATE_MODIFIED = "date_modified"; // For api9 compatibility const std::string DataSyncConst::ALBUM_RELATIVE_PATH = "relative_path"; // default fetch columns const std::set DataSyncConst::DEFAULT_FETCH_COLUMNS = { ALBUM_ID, ALBUM_TYPE, ALBUM_SUBTYPE, ALBUM_NAME, ALBUM_COVER_URI, ALBUM_COUNT }; const std::string DataSyncConst::ALBUM_URI_PREFIX = Media::PhotoAlbumColumns::ALBUM_URI_PREFIX; const std::string DataSyncConst::PHOTO_URI_PREFIX = Media::PhotoColumn::PHOTO_URI_PREFIX; const std::string DataSyncConst::INVALID_ID = "0"; } // namespace OHOS::FileManagement::CloudSync