114cf0368Sopenharmony_ci/* 214cf0368Sopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd. 314cf0368Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 414cf0368Sopenharmony_ci * you may not use this file except in compliance with the License. 514cf0368Sopenharmony_ci * You may obtain a copy of the License at 614cf0368Sopenharmony_ci * 714cf0368Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 814cf0368Sopenharmony_ci * 914cf0368Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1014cf0368Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1114cf0368Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1214cf0368Sopenharmony_ci * See the License for the specific language governing permissions and 1314cf0368Sopenharmony_ci * limitations under the License. 1414cf0368Sopenharmony_ci */ 1514cf0368Sopenharmony_ci#include "utd_client.h" 1614cf0368Sopenharmony_cinamespace OHOS { 1714cf0368Sopenharmony_cinamespace UDMF { 1814cf0368Sopenharmony_ciUtdClient::UtdClient() 1914cf0368Sopenharmony_ci{ 2014cf0368Sopenharmony_ci Init(); 2114cf0368Sopenharmony_ci} 2214cf0368Sopenharmony_ci 2314cf0368Sopenharmony_ciUtdClient::~UtdClient() 2414cf0368Sopenharmony_ci{ 2514cf0368Sopenharmony_ci} 2614cf0368Sopenharmony_ci 2714cf0368Sopenharmony_ciUtdClient &UtdClient::GetInstance() 2814cf0368Sopenharmony_ci{ 2914cf0368Sopenharmony_ci static auto instance = new UtdClient(); 3014cf0368Sopenharmony_ci return *instance; 3114cf0368Sopenharmony_ci} 3214cf0368Sopenharmony_ci 3314cf0368Sopenharmony_civoid UtdClient::Init() 3414cf0368Sopenharmony_ci{ 3514cf0368Sopenharmony_ci} 3614cf0368Sopenharmony_ci 3714cf0368Sopenharmony_ciStatus UtdClient::GetTypeDescriptor(const std::string &typeId, std::shared_ptr<TypeDescriptor> &descriptor) 3814cf0368Sopenharmony_ci{ 3914cf0368Sopenharmony_ci return Status::E_OK; 4014cf0368Sopenharmony_ci} 4114cf0368Sopenharmony_ci 4214cf0368Sopenharmony_cibool UtdClient::IsValidFileExtension(const std::string &fileExtension) 4314cf0368Sopenharmony_ci{ 4414cf0368Sopenharmony_ci return true; 4514cf0368Sopenharmony_ci} 4614cf0368Sopenharmony_ci 4714cf0368Sopenharmony_cibool UtdClient::IsValidMimeType(const std::string &mimeType) 4814cf0368Sopenharmony_ci{ 4914cf0368Sopenharmony_ci return true; 5014cf0368Sopenharmony_ci} 5114cf0368Sopenharmony_ci 5214cf0368Sopenharmony_ciStatus UtdClient::GetFlexibleTypeDescriptor(const std::string &typeId, std::shared_ptr<TypeDescriptor> &descriptor) 5314cf0368Sopenharmony_ci{ 5414cf0368Sopenharmony_ci return Status::E_OK; 5514cf0368Sopenharmony_ci} 5614cf0368Sopenharmony_ci 5714cf0368Sopenharmony_ciStatus UtdClient::GetUniformDataTypeByFilenameExtension(const std::string &fileExtension, std::string &typeId, 5814cf0368Sopenharmony_ci std::string belongsTo) 5914cf0368Sopenharmony_ci{ 6014cf0368Sopenharmony_ci return Status::E_OK; 6114cf0368Sopenharmony_ci} 6214cf0368Sopenharmony_ci 6314cf0368Sopenharmony_ciStatus UtdClient::GetUniformDataTypeByMIMEType(const std::string &mimeType, std::string &typeId, 6414cf0368Sopenharmony_ci std::string belongsTo) 6514cf0368Sopenharmony_ci{ 6614cf0368Sopenharmony_ci return Status::E_OK; 6714cf0368Sopenharmony_ci} 6814cf0368Sopenharmony_ci 6914cf0368Sopenharmony_ciStatus UtdClient::IsUtd(std::string typeId, bool &result) 7014cf0368Sopenharmony_ci{ 7114cf0368Sopenharmony_ci return Status::E_OK; 7214cf0368Sopenharmony_ci} 7314cf0368Sopenharmony_ci 7414cf0368Sopenharmony_ciStatus UtdClient::GetUniformDataTypesByFilenameExtension(const std::string &fileExtension, 7514cf0368Sopenharmony_ci std::vector<std::string> &typeIds, const std::string &belongsTo) 7614cf0368Sopenharmony_ci{ 7714cf0368Sopenharmony_ci return Status::E_OK; 7814cf0368Sopenharmony_ci} 7914cf0368Sopenharmony_ci 8014cf0368Sopenharmony_cistd::string UtdClient::GetTypeIdFromCfg(const std::string &mimeType) 8114cf0368Sopenharmony_ci{ 8214cf0368Sopenharmony_ci return ""; 8314cf0368Sopenharmony_ci} 8414cf0368Sopenharmony_ci 8514cf0368Sopenharmony_cistd::vector<std::string> UtdClient::GetTypeIdsFromCfg(const std::string &mimeType) 8614cf0368Sopenharmony_ci{ 8714cf0368Sopenharmony_ci std::vector<std::string> typeIdsInCfg; 8814cf0368Sopenharmony_ci return typeIdsInCfg; 8914cf0368Sopenharmony_ci} 9014cf0368Sopenharmony_ci 9114cf0368Sopenharmony_civoid UtdClient::SubscribeUtdChange() 9214cf0368Sopenharmony_ci{ 9314cf0368Sopenharmony_ci} 9414cf0368Sopenharmony_ci 9514cf0368Sopenharmony_ciStatus UtdClient::GetUniformDataTypesByMIMEType(const std::string &mimeType, std::vector<std::string> &typeIds, 9614cf0368Sopenharmony_ci const std::string &belongsTo) 9714cf0368Sopenharmony_ci{ 9814cf0368Sopenharmony_ci return Status::E_OK; 9914cf0368Sopenharmony_ci} 10014cf0368Sopenharmony_ci} // namespace UDMF 10114cf0368Sopenharmony_ci} // namespace OHOS 102