harmony 鸿蒙utd.h
utd.h
Overview
Defines APIs and structs related to the Uniform Type Descriptors (UTDs).
File to include: <database/udmf/utd.h>
Library: libudmf.so
System capability: SystemCapability.DistributedDataManager.UDMF.Core
Since: 12
Related module: UDMF
Summary
Types
Name | Description |
---|---|
typedef struct OH_Utd OH_Utd | Defines a struct for a UTD. |
Functions
Name | Description |
---|---|
OH_Utd * OH_Utd_Create (const char *typeId) | Creates an OH_Utd instance and a pointer to it. |
void OH_Utd_Destroy (OH_Utd *pThis) | Destroys an OH_Utd instance. |
const char * OH_Utd_GetTypeId (OH_Utd *pThis) | Obtains the type ID from an OH_Utd instance. |
const char * OH_Utd_GetDescription (OH_Utd *pThis) | Obtains the description from an OH_Utd instance. |
const char * OH_Utd_GetReferenceUrl (OH_Utd *pThis) | Obtains the URL from an OH_Utd instance. |
const char * OH_Utd_GetIconFile (OH_Utd *pThis) | Obtains the path of the default icon file from an OH_Utd instance. |
const char ** OH_Utd_GetBelongingToTypes (OH_Utd *pThis, unsigned int *count) | Obtains the relationships between the data in an OH_Utd instance. |
const char ** OH_Utd_GetFilenameExtensions (OH_Utd *pThis, unsigned int *count) | Obtains the file name extensions associated with an OH_Utd instance. |
const char ** OH_Utd_GetMimeTypes (OH_Utd *pThis, unsigned int *count) | Obtains the MIME types associated with an OH_Utd instance. |
const char ** OH_Utd_GetTypesByFilenameExtension (const char *extension, unsigned int *count) | Obtains the uniform data types based on the file name extensions. |
const char ** OH_Utd_GetTypesByMimeType (const char *mimeType, unsigned int *count) | Obtains the uniform data types based on the MIME types. |
bool OH_Utd_BelongsTo (const char *srcTypeId, const char *destTypeId) | Checks whether a UTD belongs to the target UTD. |
bool OH_Utd_IsLower (const char *srcTypeId, const char *destTypeId) | Checks whether a UTD is a lower-level type of the target UTD. For example, TYPE_SCRIPT is a lower-level type of SOURCE_CODE, and TYPE_SCRIPT and SOURCE_CODE are lower-level types of PLAIN_TEXT. |
bool OH_Utd_IsHigher (const char *srcTypeId, const char *destTypeId) | Checks whether a UTD is a higher-level type of the target UTD. For example, SOURCE_CODE is a higher-level type of TYPE_SCRIPT, and PLAIN_TEXT is a higher-level type of SOURCE_CODE and TYPE_SCRIPT. |
bool OH_Utd_Equals (OH_Utd *utd1, OH_Utd *utd2) | Checks whether two UTDs are the same. |
void OH_Utd_DestroyStringList (const char **list, unsigned int count) | Destroys a UTD list. |
你可能感兴趣的鸿蒙文章
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦