diff --git a/framework/innerkitsimpl/common/unified_meta.cpp b/framework/innerkitsimpl/common/unified_meta.cpp index 996151ce490bbabcfba91a200ade522294cd7bf4..51f5641c71d64e73df3de3017a813331fe1c86d1 100644 --- a/framework/innerkitsimpl/common/unified_meta.cpp +++ b/framework/innerkitsimpl/common/unified_meta.cpp @@ -456,7 +456,51 @@ static constexpr UtdType UTD_TYPES[] = { { EXCEL_DIF, "EXCEL_DIF", "com.microsoft.excel.dif" }, { OPENHARMONY_APP, "OPENHARMONY_APP", "openharmony.app" }, { HMOS_WIFI, "HMOS_WIFI", "com.huawei.hmos.settings.wifi" }, - { TEL, "TEL", "general.tel" } + { TEL, "TEL", "general.tel" }, + { ETS, "ETS", "general.ets" }, + { JSON5, "JSON5", "general.json5" }, + { APE_AUDIO, "APE_AUDIO", "com.monkeysaudio.ape-audio" }, + { OPUS_AUDIO, "OPUS_AUDIO", "org.xiph.opus-audio"}, + { CONF, "CONF", "general.conf" }, + { MICROSOFT_DOS_BATCH, "MICROSOFT_DOS_BATCH", "com.microsoft.dos-batch" }, + { MICROSOFT_VBSCRIPT, "MICROSOFT_VBSCRIPT", "com.microsoft.vbscript" }, + { ION, "ION", "general.ion" }, + { MICROSOFT_REGISTRY, "MICROSOFT_REGISTRY", "com.microsoft.registry" }, + { MICROSOFT_CATALOG, "MICROSOFT_CATALOG", "com.microsoft.catalog" }, + { MICROSOFT_POWERSHELL_SCRIPT, "MICROSOFT_POWERSHELL_SCRIPT", "com.microsoft.powershell-script" }, + { W3_WOFF, "W3_WOFF", "org.w3.woff" }, + { SQLITE_DATABASE, "SQLITE_DATABASE", "org.sqlite.database" }, + { MICROSOFT_SYS, "MICROSOFT_SYS", "com.microsoft.sys" }, + { MICROSOFT_INF, "MICROSOFT_INF", "com.microsoft.inf" }, + { MICROSOFT_PDB, "MICROSOFT_PDB", "com.microsoft.pdb" }, + { MICROSOFT_TLB, "MICROSOFT_TLB", "com.microsoft.tlb" }, + { MICROSOFT_SCCD, "MICROSOFT_SCCD", "com.microsoft.sccd" }, + { ADOBE_F4V, "ADOBE_F4V", "com.adobe.f4v" }, + { MP2T, "MP2T", "general.mp2t" }, + { YOUTUBE_VIDEO, "YOUTUBE_VIDEO", "com.youtube.video" }, + { WEBEX_VIDEO, "WEBEX_VIDEO", "com.cisco.webex-video" }, + { MPEG2, "MPEG2", "general.mpeg-2" }, + { MPEG1, "MPEG1", "general.mpeg-1" }, + { REALMEDIA_VBR, "REALMEDIA_VBR", "com.real.realmedia-vbr" }, + { REAL_REALVIDEO, "REAL_REALVIDEO", "com.real.realvideo" }, + { DIVX_VIDEO, "DIVX_VIDEO", "general.divx-video" }, + { CSIRO_ANNODEX, "CSIRO_ANNODEX", "org.csiro.annodex" }, + { OGV, "OGV", "general.ogv" }, + { LSF_VIDEO, "LSF_VIDEO", "com.microsoft.lsf-video" }, + { H264_VIDEO, "H264_VIDEO", "general.h264-video" }, + { JPEG2000, "JPEG2000", "general.jpeg-2000" }, + { RAF_RAW_IMAGE, "RAF_RAW_IMAGE", "com.fujifilm.raf-raw-image" }, + { NRW_RAW_IMAGE, "NRW_RAW_IMAGE", "com.nikon.nrw-raw-image" }, + { RW2_RAW_IMAGE, "RW2_RAW_IMAGE", "com.panasonic.rw2-raw-image" }, + { PEF_RAW_IMAGE, "PEF_RAW_IMAGE", "com.pentax.pef-raw-image" }, + { SRW_RAW_IMAGE, "SRW_RAW_IMAGE", "com.sumsung.srw-raw-image" }, + { ERF_RAW_IMAGE, "ERF_RAW_IMAGE", "com.epson.erf-raw-image" }, + { ORF_RAW_IMAGE, "ORF_RAW_IMAGE", "com.olympus.orf-raw-image" }, + { IEF_IMAGE, "IEF_IMAGE", "general.ief-image" }, + { ART_IMAGE, "ART_IMAGE", "com.aol.art-image" }, + { CONTENT_FORM, "CONTENT_FORM", "general.content-form" }, + { M4P_AUDIO, "M4P_AUDIO", "com.apple.m4p-audio" }, + { AC3_AUDIO, "AC3_AUDIO", "general.ac3-audio" } }; namespace UtdUtils { diff --git a/framework/innerkitsimpl/data/preset_type_descriptors.cpp b/framework/innerkitsimpl/data/preset_type_descriptors.cpp index a4aaafcd45174af08b4af1880f55d676e7d66717..9130ebd5af1f64e5d1748cc4000cdc1679183068 100644 --- a/framework/innerkitsimpl/data/preset_type_descriptors.cpp +++ b/framework/innerkitsimpl/data/preset_type_descriptors.cpp @@ -209,7 +209,7 @@ void PresetTypeDescriptors::InitDescriptors() "Java source code.", REFERENCE_URL, ""}, - {"general.markdown", + {"general.markdown", {"general.text"}, {".md", ".markdown", ".markdn", ".mdown"}, {"text/markdown"}, @@ -302,7 +302,7 @@ void PresetTypeDescriptors::InitDescriptors() "sys.media.ohos_ic_normal_white_grid_image"}, {"com.microsoft.bmp", {"general.image"}, - {".bmp"}, + {".bmp", ".bm"}, {"image/bmp", "image/x-ms-bmp"}, "Windows bitmap image.", REFERENCE_URL, @@ -449,7 +449,7 @@ void PresetTypeDescriptors::InitDescriptors() "sys.media.ohos_ic_normal_white_grid_video"}, {"general.mpeg-4", {"general.video"}, - {".mp4"}, + {".mp4", ".mp4v", ".mpeg4"}, {"video/mp4", "video/mp4v"}, "MPEG-4 video.", REFERENCE_URL, @@ -1128,7 +1128,7 @@ void PresetTypeDescriptors::InitDescriptors() ""}, {"general.mpeg-4-audio", {"general.audio"}, - {".m4a"}, + {".m4a", ".m4b"}, {"audio/mpeg"}, "Audio-only MPEG-4 file", REFERENCE_URL, @@ -1211,12 +1211,12 @@ void PresetTypeDescriptors::InitDescriptors() REFERENCE_URL, ""}, {"general.djvu-image", - {"general.image"}, - {".djv", ".djvu"}, - {"image/vnd.djvu"}, - "Djvu image", - REFERENCE_URL, - ""}, + {"general.image"}, + {".djv", ".djvu"}, + {"image/vnd.djvu"}, + "Djvu image", + REFERENCE_URL, + ""}, {"general.jng-image", {"general.image"}, {".jng"}, @@ -1296,14 +1296,14 @@ void PresetTypeDescriptors::InitDescriptors() ""}, {"general.heif", {"general.image"}, - {".heif"}, + {".heif", ".heifs", ".hif"}, {"image/heif"}, "High efficiency image format", REFERENCE_URL, ""}, {"general.heic", {"general.image"}, - {".heic"}, + {".heic", ".heics"}, {"image/heic"}, "High efficiency image format", REFERENCE_URL, @@ -1343,8 +1343,8 @@ void PresetTypeDescriptors::InitDescriptors() "Pascal source code", REFERENCE_URL, ""}, - {"general.haskell-script", - {"general.script"}, + {"general.haskell-script", + {"general.script"}, {".hs"}, {"text/x-haskell"}, "Haskell script", @@ -1728,7 +1728,7 @@ void PresetTypeDescriptors::InitDescriptors() "Microsoft Excel spreadsheet template", REFERENCE_URL, ""}, - {"com.microsoft.visio.vsd", + {"com.microsoft.visio.vsd", {"general.composite-object"}, {".vsd"}, {"application/vnd.visio"}, @@ -1764,12 +1764,12 @@ void PresetTypeDescriptors::InitDescriptors() REFERENCE_URL, ""}, {"org.openxmlformats.wordprocessingml.template", - {"org.openxmlformats.openxml", "general.composite-object"}, - {".dotx"}, - {"application/vnd.openxmlformats-officedocument.wordprocessingml.template"}, - "Office Open XML document template.", - REFERENCE_URL, - ""}, + {"org.openxmlformats.openxml", "general.composite-object"}, + {".dotx"}, + {"application/vnd.openxmlformats-officedocument.wordprocessingml.template"}, + "Office Open XML document template.", + REFERENCE_URL, + ""}, {"org.openxmlformats.presentationml.template", {"org.openxmlformats.openxml", "general.composite-object"}, {".potx"}, @@ -2023,12 +2023,12 @@ void PresetTypeDescriptors::InitDescriptors() REFERENCE_URL, ""}, {"org.tug.sty", - {"general.tex"}, - {".sty"}, - {"text/x-tex"}, - "TeX Style file", - REFERENCE_URL, - ""}, + {"general.tex"}, + {".sty"}, + {"text/x-tex"}, + "TeX Style file", + REFERENCE_URL, + ""}, {"org.tug.tex", {"general.tex"}, {".tex"}, @@ -2416,8 +2416,8 @@ void PresetTypeDescriptors::InitDescriptors() ""}, {"com.adobe.flash", {"general.video"}, - {".swf"}, - {"application/x-shockwave-flash"}, + {".swf", ".flv"}, + {"application/x-shockwave-flash", "video/x-flv"}, "Shockwave flash movie", REFERENCE_URL, ""}, @@ -2785,7 +2785,7 @@ void PresetTypeDescriptors::InitDescriptors() "Android Package File", REFERENCE_URL, ""}, - {"com.adobe.postscript-pfb-font", + {"com.adobe.postscript-pfb-font", {"com.adobe.postscript-font"}, {".pfb"}, {"application/x-font"}, @@ -2981,6 +2981,314 @@ void PresetTypeDescriptors::InitDescriptors() "TEL schematic diagram file format", REFERENCE_URL, ""}, + {"general.ets", + {"general.script"}, + {".ets"}, + {}, + "Extended TypeScript source code", + REFERENCE_URL, + ""}, + {"general.json5", + {"general.script"}, + {".json5"}, + {}, + "JSON5 data interchange format", + REFERENCE_URL, + ""}, + {"com.monkeysaudio.ape-audio", + {"general.audio"}, + {".ape"}, + {"audio/x-monkeys-audio"}, + "Monkey's Audio", + REFERENCE_URL, + ""}, + {"org.xiph.opus-audio", + {"general.audio"}, + {".opus"}, + {"audio/opus"}, + "Opus Audio", + REFERENCE_URL, + ""}, + {"general.conf", + {"general.text"}, + {".conf"}, + {}, + "Generic Configuration File", + REFERENCE_URL, + ""}, + {"com.microsoft.dos-batch", + {"general.script"}, + {".bat"}, + {"application/x-bat"}, + "DOS Batch File", + REFERENCE_URL, + ""}, + {"com.microsoft.vbscript", + {"general.script"}, + {".vbs"}, + {"application/x-vbs"}, + "VBScript File", + REFERENCE_URL, + ""}, + {"general.ion", + {"general.text"}, + {".ion"}, + {}, + "File Description File", + REFERENCE_URL, + ""}, + {"com.microsoft.registry", + {"general.database"}, + {".reg"}, + {}, + "Registry File", + REFERENCE_URL, + ""}, + {"com.microsoft.catalog", + {"general.object"}, + {".cat"}, + {}, + "Windows Catalog File", + REFERENCE_URL, + ""}, + {"com.microsoft.powershell-script", + {"general.script"}, + {".ps1"}, + {}, + "Windows PowerShell Cmdlet File", + REFERENCE_URL, + ""}, + {"org.w3.woff", + {"general.font"}, + {".woff"}, + {"font/woff"}, + "Web Open Font Format File", + REFERENCE_URL, + ""}, + {"org.sqlite.database", + {"general.database"}, + {".sqlite", ".sqlite3", ".db", ".db3", ".s3db", ".sl3"}, + {"application/vnd.sqlite3"}, + "SQLite Database", + REFERENCE_URL, + ""}, + {"com.microsoft.sys", + {"general.object"}, + {".sys"}, + {}, + "Windows System File", + REFERENCE_URL, + ""}, + {"com.microsoft.inf", + {"general.text"}, + {".inf"}, + {"text/plain"}, + "Setup Information File", + REFERENCE_URL, + ""}, + {"com.microsoft.pdb", + {"general.database"}, + {".pdb"}, + {"application/x-ms-pdb"}, + "Program Database", + REFERENCE_URL, + ""}, + {"com.microsoft.tlb", + {"general.object"}, + {".tlb"}, + {}, + "OLE Type Library", + REFERENCE_URL, + ""}, + {"com.microsoft.sccd", + {"general.xml"}, + {".sccd"}, + {}, + "Signed Custom Capability Descriptor", + REFERENCE_URL, + ""}, + {"com.adobe.f4v", + {"general.video"}, + {".f4v"}, + {"video/mp4"}, + "Flash MP4 Video File", + REFERENCE_URL, + ""}, + {"general.mp2t", + {"general.video"}, + {".m2ts", ".mts", ".m2t"}, + {"video/mp2t"}, + "Blu-ray BDAV Video File Format", + REFERENCE_URL, + ""}, + {"com.youtube.video", + {"general.video"}, + {".yt", ".vt"}, + {"video/vnd.youtube.yt"}, + "Youtube Video format", + REFERENCE_URL, + ""}, + {"com.cisco.webex-video", + {"general.video"}, + {".wrf"}, + {"video/x-webex"}, + "WebEx Recording", + REFERENCE_URL, + ""}, + {"general.mpeg-2", + {"general.video"}, + {".mpeg2", ".mpv2", ".mp2v", ".m2v", ".mpv"}, + {"video/mpeg"}, + "MPEG-2 Video format", + REFERENCE_URL, + ""}, + {"general.mpeg-1", + {"general.video"}, + {".mpeg1", ".mpv1", ".mp1v", ".m1v"}, + {"video/mpeg"}, + "MPEG-1 Video format", + REFERENCE_URL, + ""}, + {"com.real.realmedia-vbr", + {"general.video"}, + {".rmvb"}, + {"application/vnd.rn-realmedia-vbr"}, + "RealMedia Variable Bit Rate Format", + REFERENCE_URL, + ""}, + {"com.real.realvideo", + {"general.video"}, + {".rv"}, + {"video/x-pn-realvideo"}, + "RealVideo Format", + REFERENCE_URL, + ""}, + {"general.divx-video", + {"general.video"}, + {".divx"}, + {"video/divx"}, + "DivX-Encoded Movie", + REFERENCE_URL, + ""}, + {"org.csiro.annodex", + {"general.video"}, + {".axv"}, + {"video/annodex"}, + "Annodex Video Format", + REFERENCE_URL, + ""}, + {"general.ogv", + {"general.video"}, + {".ogv"}, + {"video/ogg"}, + "Ogg Video Format", + REFERENCE_URL, + ""}, + {"com.microsoft.lsf-video", + {"general.video"}, + {".lsf", ".lsx"}, + {"video/x-la-asf"}, + "Streaming Media Format", + REFERENCE_URL, + ""}, + {"general.h264-video", + {"general.video"}, + {".h264"}, + {"video/H264"}, + "H.264 Encoded Video Format", + REFERENCE_URL, + ""}, + {"general.jpeg-2000", + {"general.image"}, + {".jp2", ".jpg2", ".jpx", ".jpf", ".jpm"}, + {"image/jp2", "image/jpx", "image/jpm"}, + "JPEG 2000 Image", + REFERENCE_URL, + ""}, + {"com.fujifilm.raf-raw-image", + {"general.raw-image"}, + {".raf"}, + {"image/x-fuji-raf"}, + "Fujifilm RAW Image", + REFERENCE_URL, + ""}, + {"com.nikon.nrw-raw-image", + {"general.raw-image"}, + {".nrw"}, + {"image/x-nikon-nrw"}, + "Nikon Raw Image", + REFERENCE_URL, + ""}, + {"com.panasonic.rw2-raw-image", + {"general.raw-image"}, + {".rw2", ".raw"}, + {"image/x-panasonic-raw"}, + "Panasonic RAW Image", + REFERENCE_URL, + ""}, + {"com.pentax.pef-raw-image", + {"general.raw-image"}, + {".pef"}, + {"image/x-pentax-pef"}, + "Pentax Electronic RAW Image", + REFERENCE_URL, + ""}, + {"com.sumsung.srw-raw-image", + {"general.raw-image"}, + {".srw"}, + {"image/x-samsung-srw"}, + "Samsung RAW Image", + REFERENCE_URL, + ""}, + {"com.epson.erf-raw-image", + {"general.raw-image"}, + {".erf"}, + {"image/x-epson-erf"}, + "Epson RAW Imager", + REFERENCE_URL, + ""}, + {"com.olympus.orf-raw-image", + {"general.raw-image"}, + {".orf"}, + {"image/x-olympus-orf"}, + "Olympus RAW Image", + REFERENCE_URL, + ""}, + {"general.ief-image", + {"general.image"}, + {".ief"}, + {"image/ief"}, + "Image Exchange Format", + REFERENCE_URL, + ""}, + {"com.aol.art-image", + {"general.image"}, + {".art"}, + {"image/x-jg"}, + "ART image format", + REFERENCE_URL, + ""}, + {"general.content-form", + {"general.object"}, + {}, + {}, + "Content form format", + REFERENCE_URL, + ""}, + {"com.apple.m4p-audio", + {"general.audio"}, + {".m4p"}, + {"audio/mp4"}, + "iTunes Music Store Audio File Format", + REFERENCE_URL, + ""}, + {"general.ac3-audio", + {"general.audio"}, + {".ac3"}, + {"audio/ac3"}, + "Audio Codec 3 File Format", + REFERENCE_URL, + ""} }; } } // namespace UDMF diff --git a/interfaces/innerkits/common/unified_meta.h b/interfaces/innerkits/common/unified_meta.h index a2db9346f2ffe1193f2a0adfc57886969576a75e..de2e2a01e491a35c557db2269490ab7b556c1c89 100644 --- a/interfaces/innerkits/common/unified_meta.h +++ b/interfaces/innerkits/common/unified_meta.h @@ -479,6 +479,50 @@ enum UDType : int32_t { OPENHARMONY_APP, HMOS_WIFI, TEL, + ETS, + JSON5, + APE_AUDIO, + OPUS_AUDIO, + CONF, + MICROSOFT_DOS_BATCH, + MICROSOFT_VBSCRIPT, + ION, + MICROSOFT_REGISTRY, + MICROSOFT_CATALOG, + MICROSOFT_POWERSHELL_SCRIPT, + W3_WOFF, + SQLITE_DATABASE, + MICROSOFT_SYS, + MICROSOFT_INF, + MICROSOFT_PDB, + MICROSOFT_TLB, + MICROSOFT_SCCD, + ADOBE_F4V, + MP2T, + YOUTUBE_VIDEO, + WEBEX_VIDEO, + MPEG2, + MPEG1, + REALMEDIA_VBR, + REAL_REALVIDEO, + DIVX_VIDEO, + CSIRO_ANNODEX, + OGV, + LSF_VIDEO, + H264_VIDEO, + JPEG2000, + RAF_RAW_IMAGE, + NRW_RAW_IMAGE, + RW2_RAW_IMAGE, + PEF_RAW_IMAGE, + SRW_RAW_IMAGE, + ERF_RAW_IMAGE, + ORF_RAW_IMAGE, + IEF_IMAGE, + ART_IMAGE, + CONTENT_FORM, + M4P_AUDIO, + AC3_AUDIO, UD_BUTT };