Mercurial > projects > dstep
comparison dstep/corefoundation/CFTimeZone.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 12, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.corefoundation.CFTimeZone; | |
8 | |
9 import dstep.corefoundation.CFArray; | |
10 import dstep.corefoundation.CFBase; | |
11 import dstep.corefoundation.CFData; | |
12 import dstep.corefoundation.CFDate; | |
13 import dstep.corefoundation.CFDictionary; | |
14 import dstep.corefoundation.CFLocale; | |
15 import dstep.corefoundation.CFString; | |
16 import dstep.objc.bridge.Bridge; | |
17 import dstep.objc.objc : id; | |
18 | |
19 alias int CFTimeZoneNameStyle; | |
20 | |
21 extern (C) | |
22 { | |
23 extern | |
24 { | |
25 const CFStringRef kCFTimeZoneSystemTimeZoneDidChangeNotification; | |
26 } | |
27 } | |
28 | |
29 enum | |
30 { | |
31 kCFTimeZoneNameStyleStandard, | |
32 kCFTimeZoneNameStyleShortStandard, | |
33 kCFTimeZoneNameStyleDaylightSaving, | |
34 kCFTimeZoneNameStyleShortDaylightSaving | |
35 } | |
36 | |
37 extern (C) | |
38 { | |
39 uint CFTimeZoneGetTypeID (); | |
40 CFTimeZoneRef CFTimeZoneCopySystem (); | |
41 void CFTimeZoneResetSystem (); | |
42 CFTimeZoneRef CFTimeZoneCopyDefault (); | |
43 void CFTimeZoneSetDefault (CFTimeZoneRef tz); | |
44 CFArrayRef CFTimeZoneCopyKnownNames (); | |
45 CFDictionaryRef CFTimeZoneCopyAbbreviationDictionary (); | |
46 void CFTimeZoneSetAbbreviationDictionary (CFDictionaryRef dict); | |
47 CFTimeZoneRef CFTimeZoneCreate (CFAllocatorRef allocator, CFStringRef name, CFDataRef data); | |
48 CFTimeZoneRef CFTimeZoneCreateWithTimeIntervalFromGMT (CFAllocatorRef allocator, double ti); | |
49 CFTimeZoneRef CFTimeZoneCreateWithName (CFAllocatorRef allocator, CFStringRef name, ubyte tryAbbrev); | |
50 CFStringRef CFTimeZoneGetName (CFTimeZoneRef tz); | |
51 CFDataRef CFTimeZoneGetData (CFTimeZoneRef tz); | |
52 double CFTimeZoneGetSecondsFromGMT (CFTimeZoneRef tz, double at); | |
53 CFStringRef CFTimeZoneCopyAbbreviation (CFTimeZoneRef tz, double at); | |
54 ubyte CFTimeZoneIsDaylightSavingTime (CFTimeZoneRef tz, double at); | |
55 double CFTimeZoneGetDaylightSavingTimeOffset (CFTimeZoneRef tz, double at); | |
56 double CFTimeZoneGetNextDaylightSavingTimeTransition (CFTimeZoneRef tz, double at); | |
57 CFStringRef CFTimeZoneCopyLocalizedName (CFTimeZoneRef tz, int style, CFLocaleRef locale); | |
58 } |