1 /* 2 * Copyright (C) 2025 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 MEDIATOOL_URI_H_ 17 #define MEDIATOOL_URI_H_ 18 #include "base_data_uri.h" 19 namespace OHOS { 20 namespace Media { 21 const std::string TOOL_PHOTO = "mediatool_photo_operation"; 22 const std::string TOOL_AUDIO = "mediatool_audio_operation"; 23 const std::string TOOL_ALBUM = "mediatool_album_operation"; 24 25 const std::string OPRN_TOOL_QUERY_BY_DISPLAY_NAME = "tool_query_by_display_name"; 26 const std::string OPRN_LS = "ls_media_files"; 27 28 const std::string TOOL_CREATE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + TOOL_PHOTO + "/" + OPRN_CREATE; 29 const std::string TOOL_CREATE_AUDIO = MEDIALIBRARY_DATA_URI + "/" + TOOL_AUDIO + "/" + OPRN_CREATE; 30 const std::string TOOL_CLOSE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + TOOL_PHOTO + "/" + OPRN_CLOSE; 31 const std::string TOOL_CLOSE_AUDIO = MEDIALIBRARY_DATA_URI + "/" + TOOL_AUDIO + "/" + OPRN_CLOSE; 32 const std::string TOOL_QUERY_PHOTO = MEDIALIBRARY_DATA_URI + "/" + TOOL_PHOTO + "/" + OPRN_TOOL_QUERY_BY_DISPLAY_NAME; 33 const std::string TOOL_QUERY_AUDIO = MEDIALIBRARY_DATA_URI + "/" + TOOL_AUDIO + "/" + OPRN_TOOL_QUERY_BY_DISPLAY_NAME; 34 const std::string TOOL_LIST_PHOTO = MEDIALIBRARY_DATA_URI + "/" + TOOL_PHOTO + "/" + OPRN_QUERY; 35 const std::string TOOL_LIST_AUDIO = MEDIALIBRARY_DATA_URI + "/" + TOOL_AUDIO + "/" + OPRN_QUERY; 36 const std::string TOOL_UPDATE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + TOOL_PHOTO + "/" + OPRN_UPDATE; 37 const std::string TOOL_UPDATE_AUDIO = MEDIALIBRARY_DATA_URI + "/" + TOOL_AUDIO + "/" + OPRN_UPDATE; 38 const std::string TOOL_DELETE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + TOOL_ALBUM + "/" + OPRN_DELETE_PHOTOS; 39 const std::string TOOL_DELETE_AUDIO = MEDIALIBRARY_DATA_URI + "/" + TOOL_AUDIO + "/" + OPRN_DELETE; 40 const std::string TOOL_LS_PHOTO = MEDIALIBRARY_DATA_URI + "/" + TOOL_PHOTO + "/" + OPRN_LS; 41 42 const std::string IS_TOOL_OPEN = "is_mediatool_open_operation"; 43 const std::string TOOL_OPEN_TRUE = "1"; 44 } // namespace Media 45 } // namespace OHOS 46 47 #endif // MEDIATOOL_URI_H_