|
| 1 | +//****************************************************************************** |
| 2 | +// |
| 3 | +// Copyright (c) 2016 Microsoft Corporation. All rights reserved. |
| 4 | +// |
| 5 | +// This code is licensed under the MIT License (MIT). |
| 6 | +// |
| 7 | +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 8 | +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 9 | +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 10 | +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 11 | +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 12 | +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 13 | +// THE SOFTWARE. |
| 14 | +// |
| 15 | +//****************************************************************************** |
| 16 | + |
| 17 | +#import <MobileCoreServices/MobileCoreServices.h> |
| 18 | +#import <StubReturn.h> |
| 19 | +#import <ErrorHandling.h> |
| 20 | + |
| 21 | +// Type Declaration Dictionary Keys |
| 22 | +const CFStringRef kUTExportedTypeDeclarationsKey = static_cast<const CFStringRef>(@"UTExportedTypeDeclarations"); |
| 23 | +const CFStringRef kUTImportedTypeDeclarationsKey = static_cast<const CFStringRef>(@"UTImportedTypeDeclarations"); |
| 24 | +const CFStringRef kUTTypeIdentifierKey = static_cast<const CFStringRef>(@"UTTypeIdentifierKey"); |
| 25 | +const CFStringRef kUTTypeTagSpecificationKey = static_cast<const CFStringRef>(@"UTTypeTagSpecificationKey"); |
| 26 | +const CFStringRef kUTTypeConformsToKey = static_cast<const CFStringRef>(@"UTTypeConformsToKey"); |
| 27 | +const CFStringRef kUTTypeDescriptionKey = static_cast<const CFStringRef>(@"UTTypeDescriptionKey"); |
| 28 | +const CFStringRef kUTTypeIconFileKey = static_cast<const CFStringRef>(@"UTTypeIconFileKey"); |
| 29 | +const CFStringRef kUTTypeReferenceURLKey = static_cast<const CFStringRef>(@"UTTypeReferenceURLKey"); |
| 30 | +const CFStringRef kUTTypeVersionKey = static_cast<const CFStringRef>(@"UTTypeVersionKey"); |
| 31 | + |
| 32 | +// Type Tag Classes |
| 33 | +const CFStringRef kUTTagClassFilenameExtension = static_cast<const CFStringRef>(@"public.filename-extension"); |
| 34 | +const CFStringRef kUTTagClassMIMEType = static_cast<const CFStringRef>(@"public.mime-type"); |
| 35 | + |
| 36 | +// UTI Abstract Types |
| 37 | +const CFStringRef kUTTypeItem = static_cast<const CFStringRef>(@"public.item"); |
| 38 | +const CFStringRef kUTTypeContent = static_cast<const CFStringRef>(@"public.content"); |
| 39 | +const CFStringRef kUTTypeCompositeContent = static_cast<const CFStringRef>(@"public.composite-content"); |
| 40 | +const CFStringRef kUTTypeApplication = static_cast<const CFStringRef>(@"com.apple.application"); |
| 41 | +const CFStringRef kUTTypeMessage = static_cast<const CFStringRef>(@"public.message"); |
| 42 | +const CFStringRef kUTTypeContact = static_cast<const CFStringRef>(@"public.contact"); |
| 43 | +const CFStringRef kUTTypeArchive = static_cast<const CFStringRef>(@"public.archive"); |
| 44 | +const CFStringRef kUTTypeDiskImage = static_cast<const CFStringRef>(@"public.disk-image"); |
| 45 | + |
| 46 | +// UTI Concrete Types |
| 47 | +const CFStringRef kUTTypeData = static_cast<const CFStringRef>(@"public.data"); |
| 48 | +const CFStringRef kUTTypeDirectory = static_cast<const CFStringRef>(@"public.directory"); |
| 49 | +const CFStringRef kUTTypeResolvable = static_cast<const CFStringRef>(@"com.apple.resolvable"); |
| 50 | +const CFStringRef kUTTypeSymLink = static_cast<const CFStringRef>(@"public.symlink"); |
| 51 | +const CFStringRef kUTTypeMountPoint = static_cast<const CFStringRef>(@"com.apple.mount-point"); |
| 52 | +const CFStringRef kUTTypeAliasFile = static_cast<const CFStringRef>(@"com.apple.alias-file"); |
| 53 | +const CFStringRef kUTTypeAliasRecord = static_cast<const CFStringRef>(@"com.apple.alias-record"); |
| 54 | +const CFStringRef kUTTypeURL = static_cast<const CFStringRef>(@"public.url"); |
| 55 | +const CFStringRef kUTTypeFileURL = static_cast<const CFStringRef>(@"public.file-url"); |
| 56 | + |
| 57 | +// UTI Text Types |
| 58 | +const CFStringRef kUTTypeText = static_cast<const CFStringRef>(@"public.text"); |
| 59 | +const CFStringRef kUTTypePlainText = static_cast<const CFStringRef>(@"public.plain-text"); |
| 60 | +const CFStringRef kUTTypeUTF8PlainText = static_cast<const CFStringRef>(@"public.utf8-plain-text"); |
| 61 | +const CFStringRef kUTTypeUTF16ExternalPlainText = static_cast<const CFStringRef>(@"public.utf16-external-plain-text"); |
| 62 | +const CFStringRef kUTTypeUTF16PlainText = static_cast<const CFStringRef>(@"public.utf16-plain-text"); |
| 63 | +const CFStringRef kUTTypeRTF = static_cast<const CFStringRef>(@"public.rtf"); |
| 64 | +const CFStringRef kUTTypeHTML = static_cast<const CFStringRef>(@"public.html"); |
| 65 | +const CFStringRef kUTTypeXML = static_cast<const CFStringRef>(@"public.xml"); |
| 66 | +const CFStringRef kUTTypeSourceCode = static_cast<const CFStringRef>(@"public.source-code"); |
| 67 | +const CFStringRef kUTTypeCSource = static_cast<const CFStringRef>(@"public.c-source"); |
| 68 | +const CFStringRef kUTTypeObjectiveCSource = static_cast<const CFStringRef>(@"public.objective-c-source"); |
| 69 | +const CFStringRef kUTTypeCPlusPlusSource = static_cast<const CFStringRef>(@"public.c-plus-plus-source"); |
| 70 | +const CFStringRef kUTTypeObjectiveCPlusPlusSource = static_cast<const CFStringRef>(@"public.objective-c-plus-plus-source"); |
| 71 | +const CFStringRef kUTTypeCHeader = static_cast<const CFStringRef>(@"public.c-header"); |
| 72 | +const CFStringRef kUTTypeCPlusPlusHeader = static_cast<const CFStringRef>(@"public.c-plus-plus-header"); |
| 73 | +const CFStringRef kUTTypeJavaSource = static_cast<const CFStringRef>(@"public.java-source"); |
| 74 | + |
| 75 | +// UTI Composite Content Types |
| 76 | +const CFStringRef kUTTypePDF = static_cast<const CFStringRef>(@"com.adobe.pdf"); |
| 77 | +const CFStringRef kUTTypeRTFD = static_cast<const CFStringRef>(@"com.apple.rtfd"); |
| 78 | +const CFStringRef kUTTypeFlatRTFD = static_cast<const CFStringRef>(@"com.apple.flat-rtfd"); |
| 79 | +const CFStringRef kUTTypeTXNTextAndMultimediaData = static_cast<const CFStringRef>(@"com.apple.txn.text-multimedia-data"); |
| 80 | +const CFStringRef kUTTypeWebArchive = static_cast<const CFStringRef>(@"com.apple.webarchive"); |
| 81 | + |
| 82 | +// UTI Image Content Types |
| 83 | +const CFStringRef kUTTypeImage = static_cast<const CFStringRef>(@"public.image"); |
| 84 | +const CFStringRef kUTTypeJPEG = static_cast<const CFStringRef>(@"public.jpeg"); |
| 85 | +const CFStringRef kUTTypeJPEG2000 = static_cast<const CFStringRef>(@"public.jpeg-2000"); |
| 86 | +const CFStringRef kUTTypeTIFF = static_cast<const CFStringRef>(@"public.tiff"); |
| 87 | +const CFStringRef kUTTypePICT = static_cast<const CFStringRef>(@"com.apple.pict"); |
| 88 | +const CFStringRef kUTTypeGIF = static_cast<const CFStringRef>(@"com.compuserve.gif"); |
| 89 | +const CFStringRef kUTTypePNG = static_cast<const CFStringRef>(@"public.png"); |
| 90 | +const CFStringRef kUTTypeQuickTimeImage = static_cast<const CFStringRef>(@"com.apple.quicktime-image"); |
| 91 | +const CFStringRef kUTTypeAppleICNS = static_cast<const CFStringRef>(@"com.apple.icns"); |
| 92 | +const CFStringRef kUTTypeBMP = static_cast<const CFStringRef>(@"com.microsoft.bmp"); |
| 93 | +const CFStringRef kUTTypeICO = static_cast<const CFStringRef>(@"com.microsoft.ico"); |
| 94 | + |
| 95 | +// UTI Audio Visual Content Types |
| 96 | +const CFStringRef kUTTypeAudiovisualContent = static_cast<const CFStringRef>(@"public.audiovisual-content"); |
| 97 | +const CFStringRef kUTTypeMovie = static_cast<const CFStringRef>(@"public.movie"); |
| 98 | +const CFStringRef kUTTypeVideo = static_cast<const CFStringRef>(@"public.video"); |
| 99 | +const CFStringRef kUTTypeAudio = static_cast<const CFStringRef>(@"public.audio"); |
| 100 | +const CFStringRef kUTTypeQuickTimeMovie = static_cast<const CFStringRef>(@"com.apple.quicktime-movie"); |
| 101 | +const CFStringRef kUTTypeMPEG = static_cast<const CFStringRef>(@"public.mpeg"); |
| 102 | +const CFStringRef kUTTypeMPEG4 = static_cast<const CFStringRef>(@"public.mpeg-4"); |
| 103 | +const CFStringRef kUTTypeMP3 = static_cast<const CFStringRef>(@"public.mp"); |
| 104 | +const CFStringRef kUTTypeMPEG4Audio = static_cast<const CFStringRef>(@"public.mpeg-4-audio"); |
| 105 | +const CFStringRef kUTTypeAppleProtectedMPEG4Audio = static_cast<const CFStringRef>(@"com.apple.protected-mpeg-4-audio"); |
| 106 | + |
| 107 | +// UTI Directory Types |
| 108 | +const CFStringRef kUTTypeFolder = static_cast<const CFStringRef>(@"public.folder"); |
| 109 | +const CFStringRef kUTTypeVolume = static_cast<const CFStringRef>(@"public.volume"); |
| 110 | +const CFStringRef kUTTypePackage = static_cast<const CFStringRef>(@"com.apple.package"); |
| 111 | +const CFStringRef kUTTypeBundle = static_cast<const CFStringRef>(@"com.apple.bundle"); |
| 112 | +const CFStringRef kUTTypeFramework = static_cast<const CFStringRef>(@"com.apple.framework"); |
| 113 | + |
| 114 | +// UTI Miscellaneous Types |
| 115 | +const CFStringRef kUTTypeApplicationBundle = static_cast<const CFStringRef>(@"com.apple.application-bundle"); |
| 116 | +const CFStringRef kUTTypeApplicationFile = static_cast<const CFStringRef>(@"com.apple.application-file"); |
| 117 | +const CFStringRef kUTTypeVCard = static_cast<const CFStringRef>(@"public.vcard"); |
| 118 | +const CFStringRef kUTTypeInkText = static_cast<const CFStringRef>(@"com.apple.ink.inktext"); |
| 119 | + |
| 120 | +/** |
| 121 | + @Status Stub |
| 122 | + @Notes |
| 123 | +*/ |
| 124 | +CFStringRef UTTypeCreatePreferredIdentifierForTag(CFStringRef inTagClass, CFStringRef inTag, CFStringRef inConformingToUTI) { |
| 125 | + UNIMPLEMENTED(); |
| 126 | + return StubReturn(); |
| 127 | +} |
| 128 | + |
| 129 | +/** |
| 130 | + @Status Stub |
| 131 | + @Notes |
| 132 | +*/ |
| 133 | +CFArrayRef UTTypeCreateAllIdentifiersForTag(CFStringRef inTagClass, CFStringRef inTag, CFStringRef inConformingToUTI) { |
| 134 | + UNIMPLEMENTED(); |
| 135 | + return StubReturn(); |
| 136 | +} |
| 137 | + |
| 138 | +/** |
| 139 | + @Status Stub |
| 140 | + @Notes |
| 141 | +*/ |
| 142 | +CFStringRef UTTypeCopyPreferredTagWithClass(CFStringRef inUTI, CFStringRef inTagClass) { |
| 143 | + UNIMPLEMENTED(); |
| 144 | + return StubReturn(); |
| 145 | +} |
| 146 | + |
| 147 | +/** |
| 148 | + @Status Stub |
| 149 | + @Notes |
| 150 | +*/ |
| 151 | +Boolean UTTypeEqual(CFStringRef inUTI1, CFStringRef inUTI2) { |
| 152 | + UNIMPLEMENTED(); |
| 153 | + return StubReturn(); |
| 154 | +} |
| 155 | + |
| 156 | +/** |
| 157 | + @Status Stub |
| 158 | + @Notes |
| 159 | +*/ |
| 160 | +Boolean UTTypeConformsTo(CFStringRef inUTI, CFStringRef inConformsToUTI) { |
| 161 | + UNIMPLEMENTED(); |
| 162 | + return StubReturn(); |
| 163 | +} |
| 164 | + |
| 165 | +/** |
| 166 | + @Status Stub |
| 167 | + @Notes |
| 168 | +*/ |
| 169 | +CFStringRef UTTypeCopyDescription(CFStringRef inUTI) { |
| 170 | + UNIMPLEMENTED(); |
| 171 | + return StubReturn(); |
| 172 | +} |
| 173 | + |
| 174 | +/** |
| 175 | + @Status Stub |
| 176 | + @Notes |
| 177 | +*/ |
| 178 | +CFDictionaryRef UTTypeCopyDeclaration(CFStringRef inUTI) { |
| 179 | + UNIMPLEMENTED(); |
| 180 | + return StubReturn(); |
| 181 | +} |
| 182 | + |
| 183 | +/** |
| 184 | + @Status Stub |
| 185 | + @Notes |
| 186 | +*/ |
| 187 | +CFURLRef UTTypeCopyDeclaringBundleURL(CFStringRef inUTI) { |
| 188 | + UNIMPLEMENTED(); |
| 189 | + return StubReturn(); |
| 190 | +} |
0 commit comments