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 
40 #ifndef OH_PASTEBOARD_ERR_CODE_H
41 #define OH_PASTEBOARD_ERR_CODE_H
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 /**
48  * @brief Enumerates the error codes.
49  *
50  * @since 13
51  */
52 typedef enum PASTEBOARD_ErrCode {
53     /**
54      * @error The operation is successful.
55      */
56     ERR_OK = 0,
57     /**
58      * @error Permission verification failed.
59      */
60     ERR_PERMISSION_ERROR = 201,
61     /**
62      * @error Invalid parameter is detected.
63      */
64     ERR_INVALID_PARAMETER = 401,
65     /**
66      * @error The capability is not supported.
67      */
68     ERR_DEVICE_NOT_SUPPORTED = 801,
69     /**
70      * @error Inner error.
71      */
72     ERR_INNER_ERROR = 12900000,
73     /**
74      * @error Another copy is in progress.
75      */
76     ERR_BUSY = 12900003,
77 } PASTEBOARD_ErrCode;
78 #ifdef __cplusplus
79 };
80 #endif
81 
82 /** @} */
83 #endif
84