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 1614cf0368Sopenharmony_ci/** 1714cf0368Sopenharmony_ci * @addtogroup UDMF 1814cf0368Sopenharmony_ci * @{ 1914cf0368Sopenharmony_ci * 2014cf0368Sopenharmony_ci * @brief The Unified Data Management Framework(UDMF) aims to define various standards 2114cf0368Sopenharmony_ci * for data across applications, devices, and platforms, providing a unified OpenHarmony 2214cf0368Sopenharmony_ci * data language and standardized data access and reading paths. 2314cf0368Sopenharmony_ci * 2414cf0368Sopenharmony_ci * @syscap SystemCapability.DistributedDataManager.UDMF.Core 2514cf0368Sopenharmony_ci * 2614cf0368Sopenharmony_ci * @since 12 2714cf0368Sopenharmony_ci */ 2814cf0368Sopenharmony_ci 2914cf0368Sopenharmony_ci/** 3014cf0368Sopenharmony_ci * @file uds.h 3114cf0368Sopenharmony_ci * 3214cf0368Sopenharmony_ci * @brief Provides uniform data struct(UDS). 3314cf0368Sopenharmony_ci * 3414cf0368Sopenharmony_ci * @kit ArkData 3514cf0368Sopenharmony_ci * @library libudmf.so 3614cf0368Sopenharmony_ci * @syscap SystemCapability.DistributedDataManager.UDMF.Core 3714cf0368Sopenharmony_ci * @since 12 3814cf0368Sopenharmony_ci */ 3914cf0368Sopenharmony_ci 4014cf0368Sopenharmony_ci#ifndef UDS_H 4114cf0368Sopenharmony_ci#define UDS_H 4214cf0368Sopenharmony_ci 4314cf0368Sopenharmony_ci#ifdef __cplusplus 4414cf0368Sopenharmony_ciextern "C" { 4514cf0368Sopenharmony_ci#endif 4614cf0368Sopenharmony_ci 4714cf0368Sopenharmony_ci/** 4814cf0368Sopenharmony_ci * @brief Describes the unified data struct of plaintext. 4914cf0368Sopenharmony_ci * 5014cf0368Sopenharmony_ci * @since 12 5114cf0368Sopenharmony_ci */ 5214cf0368Sopenharmony_citypedef struct OH_UdsPlainText OH_UdsPlainText; 5314cf0368Sopenharmony_ci 5414cf0368Sopenharmony_ci/** 5514cf0368Sopenharmony_ci * @brief Describes the unified data struct of hyperlink. 5614cf0368Sopenharmony_ci * 5714cf0368Sopenharmony_ci * @since 12 5814cf0368Sopenharmony_ci */ 5914cf0368Sopenharmony_citypedef struct OH_UdsHyperlink OH_UdsHyperlink; 6014cf0368Sopenharmony_ci 6114cf0368Sopenharmony_ci/** 6214cf0368Sopenharmony_ci * @brief Describes the unified data struct of html. 6314cf0368Sopenharmony_ci * 6414cf0368Sopenharmony_ci * @since 12 6514cf0368Sopenharmony_ci */ 6614cf0368Sopenharmony_citypedef struct OH_UdsHtml OH_UdsHtml; 6714cf0368Sopenharmony_ci 6814cf0368Sopenharmony_ci/** 6914cf0368Sopenharmony_ci * @brief Describes the unified data struct of open harmony application item. 7014cf0368Sopenharmony_ci * 7114cf0368Sopenharmony_ci * @since 12 7214cf0368Sopenharmony_ci */ 7314cf0368Sopenharmony_citypedef struct OH_UdsAppItem OH_UdsAppItem; 7414cf0368Sopenharmony_ci 7514cf0368Sopenharmony_ci/** 7614cf0368Sopenharmony_ci * @brief Describes the unified data struct of file uri. 7714cf0368Sopenharmony_ci * 7814cf0368Sopenharmony_ci * @since 13 7914cf0368Sopenharmony_ci */ 8014cf0368Sopenharmony_citypedef struct OH_UdsFileUri OH_UdsFileUri; 8114cf0368Sopenharmony_ci 8214cf0368Sopenharmony_ci/** 8314cf0368Sopenharmony_ci * @brief Describes the unified data struct of open harmony pixel map. 8414cf0368Sopenharmony_ci * 8514cf0368Sopenharmony_ci * @since 13 8614cf0368Sopenharmony_ci */ 8714cf0368Sopenharmony_citypedef struct OH_UdsPixelMap OH_UdsPixelMap; 8814cf0368Sopenharmony_ci 8914cf0368Sopenharmony_ci/** 9014cf0368Sopenharmony_ci * @brief Describes the unified data struct of content form. 9114cf0368Sopenharmony_ci * 9214cf0368Sopenharmony_ci * @since 14 9314cf0368Sopenharmony_ci */ 9414cf0368Sopenharmony_citypedef struct OH_UdsContentForm OH_UdsContentForm; 9514cf0368Sopenharmony_ci 9614cf0368Sopenharmony_ci/** 9714cf0368Sopenharmony_ci * @brief Describes the of pixel map native. 9814cf0368Sopenharmony_ci * 9914cf0368Sopenharmony_ci * @since 13 10014cf0368Sopenharmony_ci */ 10114cf0368Sopenharmony_cistruct OH_PixelmapNative; 10214cf0368Sopenharmony_ci 10314cf0368Sopenharmony_ci/** 10414cf0368Sopenharmony_ci * @brief Describes the unified data struct of array buffer. 10514cf0368Sopenharmony_ci * 10614cf0368Sopenharmony_ci * @since 13 10714cf0368Sopenharmony_ci */ 10814cf0368Sopenharmony_citypedef struct OH_UdsArrayBuffer OH_UdsArrayBuffer; 10914cf0368Sopenharmony_ci 11014cf0368Sopenharmony_ci/** 11114cf0368Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsPlainText}. 11214cf0368Sopenharmony_ci * 11314cf0368Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of the {@link OH_UdsPlainText} 11414cf0368Sopenharmony_ci * structure is returned. If the operation is failed, nullptr is returned. 11514cf0368Sopenharmony_ci * @see OH_UdsPlainText 11614cf0368Sopenharmony_ci * @since 12 11714cf0368Sopenharmony_ci */ 11814cf0368Sopenharmony_ciOH_UdsPlainText* OH_UdsPlainText_Create(); 11914cf0368Sopenharmony_ci 12014cf0368Sopenharmony_ci/** 12114cf0368Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsPlainText} instance. 12214cf0368Sopenharmony_ci * 12314cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPlainText}. 12414cf0368Sopenharmony_ci * @see OH_UdsPlainText 12514cf0368Sopenharmony_ci * @since 12 12614cf0368Sopenharmony_ci */ 12714cf0368Sopenharmony_civoid OH_UdsPlainText_Destroy(OH_UdsPlainText* pThis); 12814cf0368Sopenharmony_ci 12914cf0368Sopenharmony_ci/** 13014cf0368Sopenharmony_ci * @brief Get type id from the {@link OH_UdsPlainText}. 13114cf0368Sopenharmony_ci * 13214cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPlainText}. 13314cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 13414cf0368Sopenharmony_ci * @see OH_UdsPlainText 13514cf0368Sopenharmony_ci * @since 12 13614cf0368Sopenharmony_ci */ 13714cf0368Sopenharmony_ciconst char* OH_UdsPlainText_GetType(OH_UdsPlainText* pThis); 13814cf0368Sopenharmony_ci 13914cf0368Sopenharmony_ci/** 14014cf0368Sopenharmony_ci * @brief Get content from the {@link OH_UdsPlainText}. 14114cf0368Sopenharmony_ci * 14214cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPlainText}. 14314cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 14414cf0368Sopenharmony_ci * @see OH_UdsPlainText 14514cf0368Sopenharmony_ci * @since 12 14614cf0368Sopenharmony_ci */ 14714cf0368Sopenharmony_ciconst char* OH_UdsPlainText_GetContent(OH_UdsPlainText* pThis); 14814cf0368Sopenharmony_ci 14914cf0368Sopenharmony_ci/** 15014cf0368Sopenharmony_ci * @brief Get abstract from the {@link OH_UdsPlainText}. 15114cf0368Sopenharmony_ci * 15214cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPlainText}. 15314cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 15414cf0368Sopenharmony_ci * @see OH_UdsPlainText 15514cf0368Sopenharmony_ci * @since 12 15614cf0368Sopenharmony_ci */ 15714cf0368Sopenharmony_ciconst char* OH_UdsPlainText_GetAbstract(OH_UdsPlainText* pThis); 15814cf0368Sopenharmony_ci 15914cf0368Sopenharmony_ci/** 16014cf0368Sopenharmony_ci * @brief Set content to the {@link OH_UdsPlainText}. 16114cf0368Sopenharmony_ci * 16214cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPlainText}. 16314cf0368Sopenharmony_ci * @param content Represents a new content string. 16414cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 16514cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 16614cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 16714cf0368Sopenharmony_ci * @see OH_UdsPlainText Udmf_ErrCode 16814cf0368Sopenharmony_ci * @since 12 16914cf0368Sopenharmony_ci */ 17014cf0368Sopenharmony_ciint OH_UdsPlainText_SetContent(OH_UdsPlainText* pThis, const char* content); 17114cf0368Sopenharmony_ci 17214cf0368Sopenharmony_ci/** 17314cf0368Sopenharmony_ci * @brief Set abstract to the {@link OH_UdsPlainText}. 17414cf0368Sopenharmony_ci * 17514cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPlainText}. 17614cf0368Sopenharmony_ci * @param abstract Represents a new string value. 17714cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 17814cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 17914cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 18014cf0368Sopenharmony_ci * @see OH_UdsPlainText Udmf_ErrCode 18114cf0368Sopenharmony_ci * @since 12 18214cf0368Sopenharmony_ci */ 18314cf0368Sopenharmony_ciint OH_UdsPlainText_SetAbstract(OH_UdsPlainText* pThis, const char* abstract); 18414cf0368Sopenharmony_ci 18514cf0368Sopenharmony_ci/** 18614cf0368Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsHyperlink}. 18714cf0368Sopenharmony_ci * 18814cf0368Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of {@link OH_UdsHyperlink} 18914cf0368Sopenharmony_ci * structure is returned. If the operation is failed, nullptr is returned. 19014cf0368Sopenharmony_ci * @see OH_UdsHyperlink 19114cf0368Sopenharmony_ci * @since 12 19214cf0368Sopenharmony_ci */ 19314cf0368Sopenharmony_ciOH_UdsHyperlink* OH_UdsHyperlink_Create(); 19414cf0368Sopenharmony_ci 19514cf0368Sopenharmony_ci/** 19614cf0368Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsHyperlink} instance. 19714cf0368Sopenharmony_ci * 19814cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHyperlink}. 19914cf0368Sopenharmony_ci * @see OH_UdsHyperlink 20014cf0368Sopenharmony_ci * @since 12 20114cf0368Sopenharmony_ci */ 20214cf0368Sopenharmony_civoid OH_UdsHyperlink_Destroy(OH_UdsHyperlink* pThis); 20314cf0368Sopenharmony_ci 20414cf0368Sopenharmony_ci/** 20514cf0368Sopenharmony_ci * @brief Get type from the {@link OH_UdsHyperlink}. 20614cf0368Sopenharmony_ci * 20714cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHyperlink}. 20814cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 20914cf0368Sopenharmony_ci * @see OH_UdsHyperlink 21014cf0368Sopenharmony_ci * @since 12 21114cf0368Sopenharmony_ci */ 21214cf0368Sopenharmony_ciconst char* OH_UdsHyperlink_GetType(OH_UdsHyperlink* pThis); 21314cf0368Sopenharmony_ci 21414cf0368Sopenharmony_ci/** 21514cf0368Sopenharmony_ci * @brief Get url from the {@link OH_UdsHyperlink}. 21614cf0368Sopenharmony_ci * 21714cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHyperlink}. 21814cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 21914cf0368Sopenharmony_ci * @see OH_UdsHyperlink 22014cf0368Sopenharmony_ci * @since 12 22114cf0368Sopenharmony_ci */ 22214cf0368Sopenharmony_ciconst char* OH_UdsHyperlink_GetUrl(OH_UdsHyperlink* pThis); 22314cf0368Sopenharmony_ci 22414cf0368Sopenharmony_ci/** 22514cf0368Sopenharmony_ci * @brief Get description from the {@link OH_UdsHyperlink}. 22614cf0368Sopenharmony_ci * 22714cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHyperlink}. 22814cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 22914cf0368Sopenharmony_ci * @see OH_UdsHyperlink 23014cf0368Sopenharmony_ci * @since 12 23114cf0368Sopenharmony_ci */ 23214cf0368Sopenharmony_ciconst char* OH_UdsHyperlink_GetDescription(OH_UdsHyperlink* pThis); 23314cf0368Sopenharmony_ci 23414cf0368Sopenharmony_ci/** 23514cf0368Sopenharmony_ci * @brief Set url to the {@link OH_UdsHyperlink}. 23614cf0368Sopenharmony_ci * 23714cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHyperlink}. 23814cf0368Sopenharmony_ci * @param url Represents a new string value. 23914cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 24014cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 24114cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 24214cf0368Sopenharmony_ci * @see OH_UdsHyperlink Udmf_ErrCode 24314cf0368Sopenharmony_ci * @since 12 24414cf0368Sopenharmony_ci */ 24514cf0368Sopenharmony_ciint OH_UdsHyperlink_SetUrl(OH_UdsHyperlink* pThis, const char* url); 24614cf0368Sopenharmony_ci 24714cf0368Sopenharmony_ci/** 24814cf0368Sopenharmony_ci * @brief Set description to the {@link OH_UdsHyperlink}. 24914cf0368Sopenharmony_ci * 25014cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHyperlink}. 25114cf0368Sopenharmony_ci * @param description Represents a new string value. 25214cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 25314cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 25414cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 25514cf0368Sopenharmony_ci * @see OH_UdsHyperlink Udmf_ErrCode 25614cf0368Sopenharmony_ci * @since 12 25714cf0368Sopenharmony_ci */ 25814cf0368Sopenharmony_ciint OH_UdsHyperlink_SetDescription(OH_UdsHyperlink* pThis, const char* description); 25914cf0368Sopenharmony_ci 26014cf0368Sopenharmony_ci/** 26114cf0368Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsHtml}. 26214cf0368Sopenharmony_ci * 26314cf0368Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of the {@link OH_UdsHtml} 26414cf0368Sopenharmony_ci * structure is returned. If the operation is failed, nullptr is returned. 26514cf0368Sopenharmony_ci * @see OH_UdsHtml 26614cf0368Sopenharmony_ci * @since 12 26714cf0368Sopenharmony_ci */ 26814cf0368Sopenharmony_ciOH_UdsHtml* OH_UdsHtml_Create(); 26914cf0368Sopenharmony_ci 27014cf0368Sopenharmony_ci/** 27114cf0368Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsHtml} instance. 27214cf0368Sopenharmony_ci * 27314cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHtml}. 27414cf0368Sopenharmony_ci * @see OH_UdsHtml 27514cf0368Sopenharmony_ci * @since 12 27614cf0368Sopenharmony_ci */ 27714cf0368Sopenharmony_civoid OH_UdsHtml_Destroy(OH_UdsHtml* pThis); 27814cf0368Sopenharmony_ci 27914cf0368Sopenharmony_ci/** 28014cf0368Sopenharmony_ci * @brief Get html from the {@link OH_UdsHtml}. 28114cf0368Sopenharmony_ci * 28214cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHtml}. 28314cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 28414cf0368Sopenharmony_ci * @see OH_UdsHtml 28514cf0368Sopenharmony_ci * @since 12 28614cf0368Sopenharmony_ci */ 28714cf0368Sopenharmony_ciconst char* OH_UdsHtml_GetType(OH_UdsHtml* pThis); 28814cf0368Sopenharmony_ci 28914cf0368Sopenharmony_ci/** 29014cf0368Sopenharmony_ci * @brief Get content from the {@link OH_UdsHtml}. 29114cf0368Sopenharmony_ci * 29214cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHtml}. 29314cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 29414cf0368Sopenharmony_ci * @see OH_UdsHtml 29514cf0368Sopenharmony_ci * @since 12 29614cf0368Sopenharmony_ci */ 29714cf0368Sopenharmony_ciconst char* OH_UdsHtml_GetContent(OH_UdsHtml* pThis); 29814cf0368Sopenharmony_ci 29914cf0368Sopenharmony_ci/** 30014cf0368Sopenharmony_ci * @brief Get plain content from the {@link OH_UdsHtml}. 30114cf0368Sopenharmony_ci * 30214cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHtml}. 30314cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 30414cf0368Sopenharmony_ci * @see OH_UdsHtml 30514cf0368Sopenharmony_ci * @since 12 30614cf0368Sopenharmony_ci */ 30714cf0368Sopenharmony_ciconst char* OH_UdsHtml_GetPlainContent(OH_UdsHtml* pThis); 30814cf0368Sopenharmony_ci 30914cf0368Sopenharmony_ci/** 31014cf0368Sopenharmony_ci * @brief Set content to the {@link OH_UdsHtml}. 31114cf0368Sopenharmony_ci * 31214cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHtml}. 31314cf0368Sopenharmony_ci * @param content Represents a new string value. 31414cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 31514cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 31614cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 31714cf0368Sopenharmony_ci * @see OH_UdsHtml Udmf_ErrCode 31814cf0368Sopenharmony_ci * @since 12 31914cf0368Sopenharmony_ci */ 32014cf0368Sopenharmony_ciint OH_UdsHtml_SetContent(OH_UdsHtml* pThis, const char* content); 32114cf0368Sopenharmony_ci 32214cf0368Sopenharmony_ci/** 32314cf0368Sopenharmony_ci * @brief Set plain content to the {@link OH_UdsHtml}. 32414cf0368Sopenharmony_ci * 32514cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsHtml}. 32614cf0368Sopenharmony_ci * @param plainContent Represents a new string value. 32714cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 32814cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 32914cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 33014cf0368Sopenharmony_ci * @see OH_UdsHtml Udmf_ErrCode 33114cf0368Sopenharmony_ci * @since 12 33214cf0368Sopenharmony_ci */ 33314cf0368Sopenharmony_ciint OH_UdsHtml_SetPlainContent(OH_UdsHtml* pThis, const char* plainContent); 33414cf0368Sopenharmony_ci 33514cf0368Sopenharmony_ci/** 33614cf0368Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsAppItem}. 33714cf0368Sopenharmony_ci * 33814cf0368Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of the {@link OH_UdsAppItem} 33914cf0368Sopenharmony_ci * structure is returned. sIf the operation is failed, nullptr is returned. 34014cf0368Sopenharmony_ci * @see OH_UdsAppItem 34114cf0368Sopenharmony_ci * @since 12 34214cf0368Sopenharmony_ci */ 34314cf0368Sopenharmony_ciOH_UdsAppItem* OH_UdsAppItem_Create(); 34414cf0368Sopenharmony_ci 34514cf0368Sopenharmony_ci/** 34614cf0368Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsAppItem} instance. 34714cf0368Sopenharmony_ci * 34814cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 34914cf0368Sopenharmony_ci * @see OH_UdsAppItem 35014cf0368Sopenharmony_ci * @since 12 35114cf0368Sopenharmony_ci */ 35214cf0368Sopenharmony_civoid OH_UdsAppItem_Destroy(OH_UdsAppItem* pThis); 35314cf0368Sopenharmony_ci 35414cf0368Sopenharmony_ci/** 35514cf0368Sopenharmony_ci * @brief Get type from the {@link OH_UdsAppItem}. 35614cf0368Sopenharmony_ci * 35714cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 35814cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 35914cf0368Sopenharmony_ci * @see OH_UdsAppItem 36014cf0368Sopenharmony_ci * @since 12 36114cf0368Sopenharmony_ci */ 36214cf0368Sopenharmony_ciconst char* OH_UdsAppItem_GetType(OH_UdsAppItem* pThis); 36314cf0368Sopenharmony_ci 36414cf0368Sopenharmony_ci/** 36514cf0368Sopenharmony_ci * @brief Get app id from the {@link OH_UdsAppItem}. 36614cf0368Sopenharmony_ci * 36714cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 36814cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 36914cf0368Sopenharmony_ci * @see OH_UdsAppItem 37014cf0368Sopenharmony_ci * @since 12 37114cf0368Sopenharmony_ci */ 37214cf0368Sopenharmony_ciconst char* OH_UdsAppItem_GetId(OH_UdsAppItem* pThis); 37314cf0368Sopenharmony_ci 37414cf0368Sopenharmony_ci/** 37514cf0368Sopenharmony_ci * @brief Get app name from the {@link OH_UdsAppItem}. 37614cf0368Sopenharmony_ci * 37714cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 37814cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 37914cf0368Sopenharmony_ci * @see OH_UdsAppItem 38014cf0368Sopenharmony_ci * @since 12 38114cf0368Sopenharmony_ci */ 38214cf0368Sopenharmony_ciconst char* OH_UdsAppItem_GetName(OH_UdsAppItem* pThis); 38314cf0368Sopenharmony_ci 38414cf0368Sopenharmony_ci/** 38514cf0368Sopenharmony_ci * @brief Get app icon id from the {@link OH_UdsAppItem}. 38614cf0368Sopenharmony_ci * 38714cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 38814cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 38914cf0368Sopenharmony_ci * @see OH_UdsAppItem 39014cf0368Sopenharmony_ci * @since 12 39114cf0368Sopenharmony_ci */ 39214cf0368Sopenharmony_ciconst char* OH_UdsAppItem_GetIconId(OH_UdsAppItem* pThis); 39314cf0368Sopenharmony_ci 39414cf0368Sopenharmony_ci/** 39514cf0368Sopenharmony_ci * @brief Get app label id from the {@link OH_UdsAppItem}. 39614cf0368Sopenharmony_ci * 39714cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 39814cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 39914cf0368Sopenharmony_ci * @see OH_UdsAppItem 40014cf0368Sopenharmony_ci * @since 12 40114cf0368Sopenharmony_ci */ 40214cf0368Sopenharmony_ciconst char* OH_UdsAppItem_GetLabelId(OH_UdsAppItem* pThis); 40314cf0368Sopenharmony_ci 40414cf0368Sopenharmony_ci/** 40514cf0368Sopenharmony_ci * @brief Get bundle name from the {@link OH_UdsAppItem}. 40614cf0368Sopenharmony_ci * 40714cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 40814cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 40914cf0368Sopenharmony_ci * @see OH_UdsAppItem 41014cf0368Sopenharmony_ci * @since 12 41114cf0368Sopenharmony_ci */ 41214cf0368Sopenharmony_ciconst char* OH_UdsAppItem_GetBundleName(OH_UdsAppItem* pThis); 41314cf0368Sopenharmony_ci 41414cf0368Sopenharmony_ci/** 41514cf0368Sopenharmony_ci * @brief Get ability name from the {@link OH_UdsAppItem}. 41614cf0368Sopenharmony_ci * 41714cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance {@link OH_UdsAppItem}. 41814cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 41914cf0368Sopenharmony_ci * @see OH_UdsAppItem 42014cf0368Sopenharmony_ci * @since 12 42114cf0368Sopenharmony_ci */ 42214cf0368Sopenharmony_ciconst char* OH_UdsAppItem_GetAbilityName(OH_UdsAppItem* pThis); 42314cf0368Sopenharmony_ci 42414cf0368Sopenharmony_ci/** 42514cf0368Sopenharmony_ci * @brief Set application id to the {@link OH_UdsAppItem}. 42614cf0368Sopenharmony_ci * 42714cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 42814cf0368Sopenharmony_ci * @param appId Represents a new string value. 42914cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 43014cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 43114cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 43214cf0368Sopenharmony_ci * @see OH_UdsAppItem Udmf_ErrCode 43314cf0368Sopenharmony_ci * @since 12 43414cf0368Sopenharmony_ci */ 43514cf0368Sopenharmony_ciint OH_UdsAppItem_SetId(OH_UdsAppItem* pThis, const char* appId); 43614cf0368Sopenharmony_ci 43714cf0368Sopenharmony_ci/** 43814cf0368Sopenharmony_ci * @brief Set application name to the {@link OH_UdsAppItem}. 43914cf0368Sopenharmony_ci * 44014cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 44114cf0368Sopenharmony_ci * @param appName Represents a new string value. 44214cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 44314cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 44414cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 44514cf0368Sopenharmony_ci * @see OH_UdsAppItem Udmf_ErrCode 44614cf0368Sopenharmony_ci * @since 12 44714cf0368Sopenharmony_ci */ 44814cf0368Sopenharmony_ciint OH_UdsAppItem_SetName(OH_UdsAppItem* pThis, const char* appName); 44914cf0368Sopenharmony_ci 45014cf0368Sopenharmony_ci/** 45114cf0368Sopenharmony_ci * @brief Set application icon id to the {@link OH_UdsAppItem}. 45214cf0368Sopenharmony_ci * 45314cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 45414cf0368Sopenharmony_ci * @param appIconId Represents a new string value. 45514cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 45614cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 45714cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 45814cf0368Sopenharmony_ci * @see OH_UdsAppItem Udmf_ErrCode 45914cf0368Sopenharmony_ci * @since 12 46014cf0368Sopenharmony_ci */ 46114cf0368Sopenharmony_ciint OH_UdsAppItem_SetIconId(OH_UdsAppItem* pThis, const char* appIconId); 46214cf0368Sopenharmony_ci 46314cf0368Sopenharmony_ci/** 46414cf0368Sopenharmony_ci * @brief Set application label id to the {@link OH_UdsAppItem}. 46514cf0368Sopenharmony_ci * 46614cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 46714cf0368Sopenharmony_ci * @param appLabelId Represents a new string value. 46814cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 46914cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 47014cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 47114cf0368Sopenharmony_ci * @see OH_UdsAppItem Udmf_ErrCode 47214cf0368Sopenharmony_ci * @since 12 47314cf0368Sopenharmony_ci */ 47414cf0368Sopenharmony_ciint OH_UdsAppItem_SetLabelId(OH_UdsAppItem* pThis, const char* appLabelId); 47514cf0368Sopenharmony_ci 47614cf0368Sopenharmony_ci/** 47714cf0368Sopenharmony_ci * @brief Set bundle name to the {@link OH_UdsAppItem}. 47814cf0368Sopenharmony_ci * 47914cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 48014cf0368Sopenharmony_ci * @param bundleName Represents a new string value. 48114cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 48214cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 48314cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 48414cf0368Sopenharmony_ci * @see OH_UdsAppItem Udmf_ErrCode 48514cf0368Sopenharmony_ci * @since 12 48614cf0368Sopenharmony_ci */ 48714cf0368Sopenharmony_ciint OH_UdsAppItem_SetBundleName(OH_UdsAppItem* pThis, const char* bundleName); 48814cf0368Sopenharmony_ci 48914cf0368Sopenharmony_ci/** 49014cf0368Sopenharmony_ci * @brief Set ability name to the {@link OH_UdsAppItem}. 49114cf0368Sopenharmony_ci * 49214cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsAppItem}. 49314cf0368Sopenharmony_ci * @param abilityName Represents a new string value. 49414cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 49514cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 49614cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 49714cf0368Sopenharmony_ci * @see OH_UdsAppItem Udmf_ErrCode 49814cf0368Sopenharmony_ci * @since 12 49914cf0368Sopenharmony_ci */ 50014cf0368Sopenharmony_ciint OH_UdsAppItem_SetAbilityName(OH_UdsAppItem* pThis, const char* abilityName); 50114cf0368Sopenharmony_ci 50214cf0368Sopenharmony_ci/** 50314cf0368Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsFileUri}. 50414cf0368Sopenharmony_ci * 50514cf0368Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of the {@link OH_UdsFileUri} 50614cf0368Sopenharmony_ci * structure is returned. If the operation is failed, nullptr is returned. 50714cf0368Sopenharmony_ci * @see OH_UdsFileUri 50814cf0368Sopenharmony_ci * @since 13 50914cf0368Sopenharmony_ci */ 51014cf0368Sopenharmony_ciOH_UdsFileUri* OH_UdsFileUri_Create(); 51114cf0368Sopenharmony_ci 51214cf0368Sopenharmony_ci/** 51314cf0368Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsFileUri} instance. 51414cf0368Sopenharmony_ci * 51514cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsFileUri}. 51614cf0368Sopenharmony_ci * @see OH_UdsFileUri 51714cf0368Sopenharmony_ci * @since 13 51814cf0368Sopenharmony_ci */ 51914cf0368Sopenharmony_civoid OH_UdsFileUri_Destroy(OH_UdsFileUri* pThis); 52014cf0368Sopenharmony_ci 52114cf0368Sopenharmony_ci/** 52214cf0368Sopenharmony_ci * @brief Get type id from the {@link OH_UdsFileUri}. 52314cf0368Sopenharmony_ci * 52414cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsFileUri}. 52514cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 52614cf0368Sopenharmony_ci * @see OH_UdsFileUri 52714cf0368Sopenharmony_ci * @since 13 52814cf0368Sopenharmony_ci */ 52914cf0368Sopenharmony_ciconst char* OH_UdsFileUri_GetType(OH_UdsFileUri* pThis); 53014cf0368Sopenharmony_ci 53114cf0368Sopenharmony_ci/** 53214cf0368Sopenharmony_ci * @brief Get file uri from the {@link OH_UdsFileUri}. 53314cf0368Sopenharmony_ci * 53414cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsFileUri}. 53514cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 53614cf0368Sopenharmony_ci * @see OH_UdsFileUri 53714cf0368Sopenharmony_ci * @since 13 53814cf0368Sopenharmony_ci */ 53914cf0368Sopenharmony_ciconst char* OH_UdsFileUri_GetFileUri(OH_UdsFileUri* pThis); 54014cf0368Sopenharmony_ci 54114cf0368Sopenharmony_ci/** 54214cf0368Sopenharmony_ci * @brief Get file type from the {@link OH_UdsFileUri}. 54314cf0368Sopenharmony_ci * 54414cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsFileUri}. 54514cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 54614cf0368Sopenharmony_ci * @see OH_UdsFileUri 54714cf0368Sopenharmony_ci * @since 13 54814cf0368Sopenharmony_ci */ 54914cf0368Sopenharmony_ciconst char* OH_UdsFileUri_GetFileType(OH_UdsFileUri* pThis); 55014cf0368Sopenharmony_ci 55114cf0368Sopenharmony_ci/** 55214cf0368Sopenharmony_ci * @brief Set file uri to the {@link OH_UdsFileUri}. 55314cf0368Sopenharmony_ci * 55414cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsFileUri}. 55514cf0368Sopenharmony_ci * @param fileUri Represents a new file uri string. 55614cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 55714cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 55814cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 55914cf0368Sopenharmony_ci * @see OH_UdsFileUri Udmf_ErrCode 56014cf0368Sopenharmony_ci * @since 13 56114cf0368Sopenharmony_ci */ 56214cf0368Sopenharmony_ciint OH_UdsFileUri_SetFileUri(OH_UdsFileUri* pThis, const char* fileUri); 56314cf0368Sopenharmony_ci 56414cf0368Sopenharmony_ci/** 56514cf0368Sopenharmony_ci * @brief Set file type to the {@link OH_UdsFileUri}. 56614cf0368Sopenharmony_ci * 56714cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsFileUri}. 56814cf0368Sopenharmony_ci * @param fileType Represents a new file type string. 56914cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 57014cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 57114cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 57214cf0368Sopenharmony_ci * @see OH_UdsFileUri Udmf_ErrCode 57314cf0368Sopenharmony_ci * @since 13 57414cf0368Sopenharmony_ci */ 57514cf0368Sopenharmony_ciint OH_UdsFileUri_SetFileType(OH_UdsFileUri* pThis, const char* fileType); 57614cf0368Sopenharmony_ci 57714cf0368Sopenharmony_ci/** 57814cf0368Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsPixelMap}. 57914cf0368Sopenharmony_ci * 58014cf0368Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of the {@link OH_UdsPixelMap} 58114cf0368Sopenharmony_ci * structure is returned. If the operation is failed, nullptr is returned. 58214cf0368Sopenharmony_ci * @see OH_UdsPixelMap 58314cf0368Sopenharmony_ci * @since 13 58414cf0368Sopenharmony_ci */ 58514cf0368Sopenharmony_ciOH_UdsPixelMap* OH_UdsPixelMap_Create(); 58614cf0368Sopenharmony_ci 58714cf0368Sopenharmony_ci/** 58814cf0368Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsPixelMap} instance. 58914cf0368Sopenharmony_ci * 59014cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPixelMap}. 59114cf0368Sopenharmony_ci * @see OH_UdsPixelMap 59214cf0368Sopenharmony_ci * @since 13 59314cf0368Sopenharmony_ci */ 59414cf0368Sopenharmony_civoid OH_UdsPixelMap_Destroy(OH_UdsPixelMap* pThis); 59514cf0368Sopenharmony_ci 59614cf0368Sopenharmony_ci/** 59714cf0368Sopenharmony_ci * @brief Get type id from the {@link OH_UdsPixelMap}. 59814cf0368Sopenharmony_ci * 59914cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPixelMap}. 60014cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 60114cf0368Sopenharmony_ci * @see OH_UdsPixelMap 60214cf0368Sopenharmony_ci * @since 13 60314cf0368Sopenharmony_ci */ 60414cf0368Sopenharmony_ciconst char* OH_UdsPixelMap_GetType(OH_UdsPixelMap* pThis); 60514cf0368Sopenharmony_ci 60614cf0368Sopenharmony_ci/** 60714cf0368Sopenharmony_ci * @brief Get pixel map from the {@link OH_UdsPixelMap}. 60814cf0368Sopenharmony_ci * 60914cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPixelMap}. 61014cf0368Sopenharmony_ci * @param pixelmapNative Represents output params of {@link OH_PixelmapNative}. 61114cf0368Sopenharmony_ci * @see OH_UdsPixelMap 61214cf0368Sopenharmony_ci * @since 13 61314cf0368Sopenharmony_ci */ 61414cf0368Sopenharmony_civoid OH_UdsPixelMap_GetPixelMap(OH_UdsPixelMap* pThis, OH_PixelmapNative* pixelmapNative); 61514cf0368Sopenharmony_ci 61614cf0368Sopenharmony_ci/** 61714cf0368Sopenharmony_ci * @brief Set pixel map to the {@link OH_UdsPixelMap}. 61814cf0368Sopenharmony_ci * 61914cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsPixelMap}. 62014cf0368Sopenharmony_ci * @param pixelmapNative Represents a new {@link OH_PixelmapNative}. 62114cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 62214cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 62314cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 62414cf0368Sopenharmony_ci * @see OH_UdsPixelMap Udmf_ErrCode 62514cf0368Sopenharmony_ci * @since 13 62614cf0368Sopenharmony_ci */ 62714cf0368Sopenharmony_ciint OH_UdsPixelMap_SetPixelMap(OH_UdsPixelMap* pThis, OH_PixelmapNative* pixelmapNative); 62814cf0368Sopenharmony_ci 62914cf0368Sopenharmony_ci/** 63014cf0368Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsArrayBuffer}. 63114cf0368Sopenharmony_ci * 63214cf0368Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of the {@link OH_UdsArrayBuffer} 63314cf0368Sopenharmony_ci * structure is returned. If the memory is not enough, nullptr is returned. 63414cf0368Sopenharmony_ci * @see OH_UdsArrayBuffer 63514cf0368Sopenharmony_ci * @since 13 63614cf0368Sopenharmony_ci */ 63714cf0368Sopenharmony_ciOH_UdsArrayBuffer* OH_UdsArrayBuffer_Create(); 63814cf0368Sopenharmony_ci 63914cf0368Sopenharmony_ci/** 64014cf0368Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsArrayBuffer} instance. 64114cf0368Sopenharmony_ci * 64214cf0368Sopenharmony_ci * @param buffer Represents a pointer to an instance of {@link OH_UdsArrayBuffer}. 64314cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 64414cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 64514cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 64614cf0368Sopenharmony_ci * @see OH_UdsArrayBuffer Udmf_ErrCode 64714cf0368Sopenharmony_ci * @since 13 64814cf0368Sopenharmony_ci */ 64914cf0368Sopenharmony_ciint OH_UdsArrayBuffer_Destroy(OH_UdsArrayBuffer* buffer); 65014cf0368Sopenharmony_ci 65114cf0368Sopenharmony_ci/** 65214cf0368Sopenharmony_ci * @brief Set array buffer data to the {@link OH_UdsArrayBuffer}. 65314cf0368Sopenharmony_ci * 65414cf0368Sopenharmony_ci * @param buffer Represents a pointer to an instance of {@link OH_UdsArrayBuffer}. 65514cf0368Sopenharmony_ci * @param data Represents the array buffer data. 65614cf0368Sopenharmony_ci * @param len Represents the length of data param. 65714cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 65814cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 65914cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 66014cf0368Sopenharmony_ci * @see OH_UdsArrayBuffer Udmf_ErrCode 66114cf0368Sopenharmony_ci * @since 13 66214cf0368Sopenharmony_ci */ 66314cf0368Sopenharmony_ciint OH_UdsArrayBuffer_SetData(OH_UdsArrayBuffer* buffer, unsigned char* data, unsigned int len); 66414cf0368Sopenharmony_ci 66514cf0368Sopenharmony_ci/** 66614cf0368Sopenharmony_ci * @brief Get array buffer data from the {@link OH_UdsArrayBuffer}. 66714cf0368Sopenharmony_ci * 66814cf0368Sopenharmony_ci * @param buffer Represents a pointer to an instance of {@link OH_UdsArrayBuffer}. 66914cf0368Sopenharmony_ci * @param data Represents a pointer to array buffer data that is a output param. 67014cf0368Sopenharmony_ci * @param len Represents the array buffer data length that is a output param. 67114cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 67214cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 67314cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 67414cf0368Sopenharmony_ci * @see OH_UdsArrayBuffer Udmf_ErrCode 67514cf0368Sopenharmony_ci * @since 13 67614cf0368Sopenharmony_ci */ 67714cf0368Sopenharmony_ciint OH_UdsArrayBuffer_GetData(OH_UdsArrayBuffer* buffer, unsigned char** data, unsigned int* len); 67814cf0368Sopenharmony_ci 67914cf0368Sopenharmony_ci/** 68014cf0368Sopenharmony_ci * @brief Creation a pointer to the instance of the {@link OH_UdsContentForm}. 68114cf0368Sopenharmony_ci * 68214cf0368Sopenharmony_ci * @return If the operation is successful, a pointer to the instance of the {@link OH_UdsContentForm} 68314cf0368Sopenharmony_ci * structure is returned. If the operation is failed, nullptr is returned. 68414cf0368Sopenharmony_ci * @see OH_UdsContentForm 68514cf0368Sopenharmony_ci * @since 14 68614cf0368Sopenharmony_ci */ 68714cf0368Sopenharmony_ciOH_UdsContentForm* OH_UdsContentForm_Create(); 68814cf0368Sopenharmony_ci 68914cf0368Sopenharmony_ci/** 69014cf0368Sopenharmony_ci * @brief Destroy a pointer that points to the {@link OH_UdsContentForm} instance. 69114cf0368Sopenharmony_ci * 69214cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 69314cf0368Sopenharmony_ci * @see OH_UdsContentForm 69414cf0368Sopenharmony_ci * @since 14 69514cf0368Sopenharmony_ci */ 69614cf0368Sopenharmony_civoid OH_UdsContentForm_Destroy(OH_UdsContentForm* pThis); 69714cf0368Sopenharmony_ci 69814cf0368Sopenharmony_ci/** 69914cf0368Sopenharmony_ci * @brief Get type id from the {@link OH_UdsContentForm}. 70014cf0368Sopenharmony_ci * 70114cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 70214cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 70314cf0368Sopenharmony_ci * @see OH_UdsContentForm 70414cf0368Sopenharmony_ci * @since 14 70514cf0368Sopenharmony_ci */ 70614cf0368Sopenharmony_ciconst char* OH_UdsContentForm_GetType(OH_UdsContentForm* pThis); 70714cf0368Sopenharmony_ci 70814cf0368Sopenharmony_ci/** 70914cf0368Sopenharmony_ci * @brief Get thumb data from the {@link OH_UdsContentForm}. 71014cf0368Sopenharmony_ci * 71114cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 71214cf0368Sopenharmony_ci * @param thumbData Represents a pointer to thumb data that is a output param. 71314cf0368Sopenharmony_ci * @param len Represents the thumb data length that is a output param. 71414cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 71514cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 71614cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 71714cf0368Sopenharmony_ci * {@link UDMF_ERR} Internal data error. 71814cf0368Sopenharmony_ci * @see OH_UdsContentForm Udmf_ErrCode 71914cf0368Sopenharmony_ci * @since 14 72014cf0368Sopenharmony_ci */ 72114cf0368Sopenharmony_ciint OH_UdsContentForm_GetThumbData(OH_UdsContentForm* pThis, unsigned char** thumbData, unsigned int* len); 72214cf0368Sopenharmony_ci 72314cf0368Sopenharmony_ci/** 72414cf0368Sopenharmony_ci * @brief Get description from the {@link OH_UdsContentForm}. 72514cf0368Sopenharmony_ci * 72614cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 72714cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 72814cf0368Sopenharmony_ci * @see OH_UdsContentForm 72914cf0368Sopenharmony_ci * @since 14 73014cf0368Sopenharmony_ci */ 73114cf0368Sopenharmony_ciconst char* OH_UdsContentForm_GetDescription(OH_UdsContentForm* pThis); 73214cf0368Sopenharmony_ci 73314cf0368Sopenharmony_ci/** 73414cf0368Sopenharmony_ci * @brief Get title from the {@link OH_UdsContentForm}. 73514cf0368Sopenharmony_ci * 73614cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 73714cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 73814cf0368Sopenharmony_ci * @see OH_UdsContentForm 73914cf0368Sopenharmony_ci * @since 14 74014cf0368Sopenharmony_ci */ 74114cf0368Sopenharmony_ciconst char* OH_UdsContentForm_GetTitle(OH_UdsContentForm* pThis); 74214cf0368Sopenharmony_ci 74314cf0368Sopenharmony_ci/** 74414cf0368Sopenharmony_ci * @brief Get thumb data from the {@link OH_UdsContentForm}. 74514cf0368Sopenharmony_ci * 74614cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 74714cf0368Sopenharmony_ci * @param appIcon Represents a pointer to app icon that is a output param. 74814cf0368Sopenharmony_ci * @param len Represents the app icon length that is a output param. 74914cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 75014cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 75114cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 75214cf0368Sopenharmony_ci * {@link UDMF_ERR} Internal data error. 75314cf0368Sopenharmony_ci * @see OH_UdsContentForm Udmf_ErrCode 75414cf0368Sopenharmony_ci * @since 14 75514cf0368Sopenharmony_ci */ 75614cf0368Sopenharmony_ciint OH_UdsContentForm_GetAppIcon(OH_UdsContentForm* pThis, unsigned char** appIcon, unsigned int* len); 75714cf0368Sopenharmony_ci 75814cf0368Sopenharmony_ci/** 75914cf0368Sopenharmony_ci * @brief Get app name from the {@link OH_UdsContentForm}. 76014cf0368Sopenharmony_ci * 76114cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 76214cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 76314cf0368Sopenharmony_ci * @see OH_UdsContentForm 76414cf0368Sopenharmony_ci * @since 14 76514cf0368Sopenharmony_ci */ 76614cf0368Sopenharmony_ciconst char* OH_UdsContentForm_GetAppName(OH_UdsContentForm* pThis); 76714cf0368Sopenharmony_ci 76814cf0368Sopenharmony_ci/** 76914cf0368Sopenharmony_ci * @brief Get link url from the {@link OH_UdsContentForm}. 77014cf0368Sopenharmony_ci * 77114cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 77214cf0368Sopenharmony_ci * @return Returns a pointer of the value string when input args normally, otherwise return nullptr. 77314cf0368Sopenharmony_ci * @see OH_UdsContentForm 77414cf0368Sopenharmony_ci * @since 14 77514cf0368Sopenharmony_ci */ 77614cf0368Sopenharmony_ciconst char* OH_UdsContentForm_GetLinkUri(OH_UdsContentForm* pThis); 77714cf0368Sopenharmony_ci 77814cf0368Sopenharmony_ci/** 77914cf0368Sopenharmony_ci * @brief Set thumb data to the {@link OH_UdsContentForm}. 78014cf0368Sopenharmony_ci * 78114cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 78214cf0368Sopenharmony_ci * @param thumbData Represents the thumb data. 78314cf0368Sopenharmony_ci * @param len Represents the length of thumb data param. 78414cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 78514cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 78614cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 78714cf0368Sopenharmony_ci * @see OH_UdsContentForm Udmf_ErrCode 78814cf0368Sopenharmony_ci * @since 14 78914cf0368Sopenharmony_ci */ 79014cf0368Sopenharmony_ciint OH_UdsContentForm_SetThumbData(OH_UdsContentForm* pThis, const unsigned char* thumbData, unsigned int len); 79114cf0368Sopenharmony_ci 79214cf0368Sopenharmony_ci/** 79314cf0368Sopenharmony_ci * @brief Set description to the {@link OH_UdsContentForm}. 79414cf0368Sopenharmony_ci * 79514cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 79614cf0368Sopenharmony_ci * @param description Represents a description string. 79714cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 79814cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 79914cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 80014cf0368Sopenharmony_ci * @see OH_UdsContentForm Udmf_ErrCode 80114cf0368Sopenharmony_ci * @since 14 80214cf0368Sopenharmony_ci */ 80314cf0368Sopenharmony_ciint OH_UdsContentForm_SetDescription(OH_UdsContentForm* pThis, const char* description); 80414cf0368Sopenharmony_ci 80514cf0368Sopenharmony_ci/** 80614cf0368Sopenharmony_ci * @brief Set title to the {@link OH_UdsContentForm}. 80714cf0368Sopenharmony_ci * 80814cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 80914cf0368Sopenharmony_ci * @param title Represents a title string. 81014cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 81114cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 81214cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 81314cf0368Sopenharmony_ci * @see OH_UdsContentForm Udmf_ErrCode 81414cf0368Sopenharmony_ci * @since 14 81514cf0368Sopenharmony_ci */ 81614cf0368Sopenharmony_ciint OH_UdsContentForm_SetTitle(OH_UdsContentForm* pThis, const char* title); 81714cf0368Sopenharmony_ci 81814cf0368Sopenharmony_ci/** 81914cf0368Sopenharmony_ci * @brief Set thumb data to the {@link OH_UdsContentForm}. 82014cf0368Sopenharmony_ci * 82114cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 82214cf0368Sopenharmony_ci * @param appIcon Represents the app icon. 82314cf0368Sopenharmony_ci * @param len Represents the length of app icon param. 82414cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 82514cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 82614cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 82714cf0368Sopenharmony_ci * @see OH_UdsContentForm Udmf_ErrCode 82814cf0368Sopenharmony_ci * @since 14 82914cf0368Sopenharmony_ci */ 83014cf0368Sopenharmony_ciint OH_UdsContentForm_SetAppIcon(OH_UdsContentForm* pThis, const unsigned char* appIcon, unsigned int len); 83114cf0368Sopenharmony_ci 83214cf0368Sopenharmony_ci/** 83314cf0368Sopenharmony_ci * @brief Set app name to the {@link OH_UdsContentForm}. 83414cf0368Sopenharmony_ci * 83514cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 83614cf0368Sopenharmony_ci * @param appName Represents a app name string. 83714cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 83814cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 83914cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 84014cf0368Sopenharmony_ci * @see OH_UdsContentForm Udmf_ErrCode 84114cf0368Sopenharmony_ci * @since 14 84214cf0368Sopenharmony_ci */ 84314cf0368Sopenharmony_ciint OH_UdsContentForm_SetAppName(OH_UdsContentForm* pThis, const char* appName); 84414cf0368Sopenharmony_ci 84514cf0368Sopenharmony_ci/** 84614cf0368Sopenharmony_ci * @brief Set link uri to the {@link OH_UdsContentForm}. 84714cf0368Sopenharmony_ci * 84814cf0368Sopenharmony_ci * @param pThis Represents a pointer to an instance of {@link OH_UdsContentForm}. 84914cf0368Sopenharmony_ci * @param linkUri Represents a link uri string. 85014cf0368Sopenharmony_ci * @return Returns the status code of the execution. See {@link Udmf_ErrCode}. 85114cf0368Sopenharmony_ci * {@link UDMF_E_OK} success. 85214cf0368Sopenharmony_ci * {@link UDMF_E_INVALID_PARAM} The error code for common invalid args. 85314cf0368Sopenharmony_ci * @see OH_UdsContentForm Udmf_ErrCode 85414cf0368Sopenharmony_ci * @since 14 85514cf0368Sopenharmony_ci */ 85614cf0368Sopenharmony_ciint OH_UdsContentForm_SetLinkUri(OH_UdsContentForm* pThis, const char* linkUri); 85714cf0368Sopenharmony_ci 85814cf0368Sopenharmony_ci#ifdef __cplusplus 85914cf0368Sopenharmony_ci}; 86014cf0368Sopenharmony_ci#endif 86114cf0368Sopenharmony_ci 86214cf0368Sopenharmony_ci/** @} */ 86314cf0368Sopenharmony_ci#endif 864