1 /* 2 * Copyright (c) 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 /** 17 * @addtogroup Pasteboard 18 * @{ 19 * 20 * @brief Provides the copy and paste support for the system Pasteboard. 21 * You can use the APIs of this module to operate the Pasteboard content of the plain text, HTML, 22 * URI, Want, pixel map, and other types. 23 * 24 * @since 13 25 */ 26 27 /** 28 * @file oh_pasteboard_err_code.h 29 * 30 * @brief Declaration error code information. 31 * 32 * @kit BasicServicesKit 33 * @library libpasteboard.so 34 * @syscap SystemCapability.MiscServices.Pasteboard 35 * 36 * @since 13 37 */ 38 39 #ifndef OH_PASTEBOARD_ERR_CODE_H 40 #define OH_PASTEBOARD_ERR_CODE_H 41 42 #ifdef __cplusplus 43 extern "C" { 44 #endif 45 46 /** 47 * @brief Enumerates the error codes. 48 * 49 * @since 13 50 */ 51 typedef enum PASTEBOARD_ErrCode { 52 /** 53 * @error The operation is successful. 54 */ 55 ERR_OK = 0, 56 /** 57 * @error Permission verification failed. 58 */ 59 ERR_PERMISSION_ERROR = 201, 60 /** 61 * @error Invalid parameter is detected. 62 */ 63 ERR_INVALID_PARAMETER = 401, 64 /** 65 * @error The capability is not supported. 66 */ 67 ERR_DEVICE_NOT_SUPPORTED = 801, 68 /** 69 * @error Inner error. 70 */ 71 ERR_INNER_ERROR = 12900000, 72 /** 73 * @error Another copy is in progress. 74 */ 75 ERR_BUSY = 12900003, 76 /** 77 * @error Copy file failed. 78 * @since 15 79 */ 80 ERR_PASTEBOARD_COPY_FILE_ERROR = 12900007, 81 /** 82 * @error Failed to start progress. 83 * @since 15 84 */ 85 ERR_PASTEBOARD_PROGRESS_START_ERROR = 12900008, 86 /** 87 * @error Progress exits abnormally. 88 * @since 15 89 */ 90 ERR_PASTEBOARD_PROGRESS_ABNORMAL = 12900009, 91 /** 92 * @error Get Data failed. 93 * @since 15 94 */ 95 ERR_PASTEBOARD_GET_DATA_FAILED = 12900010, 96 } PASTEBOARD_ErrCode; 97 #ifdef __cplusplus 98 }; 99 #endif 100 101 /** @} */ 102 #endif 103