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 16 #ifndef DRIVE_KIT_CLOUD_CALLBACK_H 17 #define DRIVE_KIT_CLOUD_CALLBACK_H 18 19 #include <map> 20 #include <string> 21 #include <vector> 22 23 namespace DriveKit { 24 enum class DKCloudStatus { 25 DK_CLOUD_STATUS_UNKNOWN = 0, 26 DK_CLOUD_STATUS_UNACTIVATED, 27 DK_CLOUD_STATUS_LOGIN, 28 DK_CLOUD_STATUS_LOGOUT, 29 DK_CLOUD_STATUS_MAX, 30 }; 31 32 enum class DKAppSwitchStatus { 33 DK_APP_SWITCH_STATUS_CLOSE = 0, 34 DK_APP_SWITCH_STATUS_OPEN, 35 DK_APP_SWITCH_STATUS_NOTENABLE, // 未启用 36 DK_APP_SWITCH_STATUS_MAX, 37 }; 38 39 enum class DKAppDataClearPolicy { 40 DK_CLEAR_CLOUD_DATA = 0, 41 DK_RESERVE_CLOUD_DATA, 42 }; 43 44 enum class DKRecordsChangeType { 45 DK_RECORDS_CHANGE = 0, 46 DK_SCHEMA_CHANGE, 47 }; 48 49 using DKAppBundleName = std::string; 50 using DKContainerName = std::string; 51 } // namespace DriveKit 52 #endif 53