comparison dstep/coreservices/launchservices/UTType.d @ 11:07194b026fa4

Added bindings to a couple of frameworks, new license + some other things
author Jacob Carlborg <doob@me.com>
date Sat, 01 Aug 2009 15:03:28 +0200
parents
children
comparison
equal deleted inserted replaced
10:27e00625790b 11:07194b026fa4
1 /**
2 * Copyright: Copyright (c) 2009 Jacob Carlborg.
3 * Authors: Jacob Carlborg
4 * Version: Initial created: Jul 22, 2009
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
6 */
7 module dstep.coreservices.launchservices.UTType;
8
9 //import dstep.AvailabilityMacros;
10 import dstep.coreservices.carboncore.CarbonCore;
11 import dstep.corefoundation.CoreFoundation;
12
13 extern (C)
14 {
15 extern
16 {
17 const CFStringRef kUTExportedTypeDeclarationsKey;
18 const CFStringRef kUTImportedTypeDeclarationsKey;
19 const CFStringRef kUTTypeIdentifierKey;
20 const CFStringRef kUTTypeTagSpecificationKey;
21 const CFStringRef kUTTypeConformsToKey;
22 const CFStringRef kUTTypeDescriptionKey;
23 const CFStringRef kUTTypeIconFileKey;
24 const CFStringRef kUTTypeReferenceURLKey;
25 const CFStringRef kUTTypeVersionKey;
26 const CFStringRef kUTTagClassFilenameExtension;
27 const CFStringRef kUTTagClassMIMEType;
28 const CFStringRef kUTTagClassNSPboardType;
29 const CFStringRef kUTTagClassOSType;
30 }
31 }
32
33 extern (C)
34 {
35 CFStringRef UTTypeCreatePreferredIdentifierForTag (CFStringRef inTagClass, CFStringRef inTag, CFStringRef inConformingToUTI);
36 CFArrayRef UTTypeCreateAllIdentifiersForTag (CFStringRef inTagClass, CFStringRef inTag, CFStringRef inConformingToUTI);
37 CFStringRef UTTypeCopyPreferredTagWithClass (CFStringRef inUTI, CFStringRef inTagClass);
38 ubyte UTTypeEqual (CFStringRef inUTI1, CFStringRef inUTI2);
39 ubyte UTTypeConformsTo (CFStringRef inUTI, CFStringRef inConformsToUTI);
40 CFStringRef UTTypeCopyDescription (CFStringRef inUTI);
41 CFDictionaryRef UTTypeCopyDeclaration (CFStringRef inUTI);
42 CFURLRef UTTypeCopyDeclaringBundleURL (CFStringRef inUTI);
43 CFStringRef UTCreateStringForOSType (uint inOSType);
44 uint UTGetOSTypeFromString (CFStringRef inString);
45 }