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 PASTE_BOARD_PASTEBOARD_SERV_IPC_INTERFACE_CODE_H 17 #define PASTE_BOARD_PASTEBOARD_SERV_IPC_INTERFACE_CODE_H 18 19 /* SAID: 3701 */ 20 namespace OHOS { 21 namespace Security { 22 namespace PasteboardServ { 23 enum PasteboardServiceInterfaceCode { 24 GET_PASTE_DATA = 0, 25 HAS_PASTE_DATA = 1, 26 SET_PASTE_DATA = 2, 27 CLEAR_ALL = 3, 28 SUBSCRIBE_OBSERVER = 4, 29 UNSUBSCRIBE_OBSERVER = 5, 30 UNSUBSCRIBE_ALL_OBSERVER = 6, 31 IS_REMOTE_DATA = 7, 32 GET_DATA_SOURCE = 8, 33 HAS_DATA_TYPE = 9, 34 SET_GLOBAL_SHARE_OPTION = 10, 35 REMOVE_GLOBAL_SHARE_OPTION = 11, 36 GET_GLOBAL_SHARE_OPTION = 12, 37 SET_APP_SHARE_OPTIONS = 13, 38 REMOVE_APP_SHARE_OPTIONS = 14, 39 PASTE_START = 15, 40 PASTE_COMPLETE = 16, 41 REGISTER_CLIENT_DEATH_OBSERVER = 17, 42 DETECT_PATTERNS = 18, 43 GET_RECORD_VALUE = 19, 44 GET_MIME_TYPES = 20, 45 }; 46 47 enum PasteboardObserverInterfaceCode { 48 ON_PASTE_BOARD_CHANGE = 0, 49 ON_PASTE_BOARD_EVENT = 1, 50 }; 51 52 enum PasteboardEntryGetterInterfaceCode { 53 GET_RECORD_VALUE_BY_TYPE = 0, 54 }; 55 } // namespace PasteboardServ 56 } // namespace Security 57 } // namespace OHOS 58 #endif // PASTE_BOARD_PASTEBOARD_SERV_IPC_INTERFACE_CODE_H 59