Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSURLProtectionSpace.d @ 1:8b48be5454ce
The internal cocoa classes compile now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Tue, 19 Aug 2008 17:35:17 +0200 |
parents | 380af2bdd8e5 |
children | f565d3a95c0a |
comparison
equal
deleted
inserted
replaced
0:380af2bdd8e5 | 1:8b48be5454ce |
---|---|
33 super(id); | 33 super(id); |
34 } | 34 } |
35 | 35 |
36 public NSString authenticationMethod () | 36 public NSString authenticationMethod () |
37 { | 37 { |
38 objc.id result = OS.objc_msgSend(this.id, OS.sel_authenticationMethod); | 38 objc.id result = OS.objc_msgSend(this.id_, OS.sel_authenticationMethod); |
39 return result !is null ? new NSString(result) : null; | 39 return result !is null ? new NSString(result) : null; |
40 } | 40 } |
41 | 41 |
42 public NSString host () | 42 public NSString host () |
43 { | 43 { |
44 objc.id result = OS.objc_msgSend(this.id, OS.sel_host); | 44 objc.id result = OS.objc_msgSend(this.id_, OS.sel_host); |
45 return result !is null ? new NSString(result) : null; | 45 return result !is null ? new NSString(result) : null; |
46 } | 46 } |
47 | 47 |
48 public id initWithHost (NSString host, NSInteger port, NSString protocol, NSString realm, NSString authenticationMethod) | 48 public id initWithHost (NSString host, NSInteger port, NSString protocol, NSString realm, NSString authenticationMethod) |
49 { | 49 { |
50 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithHost_1port_1protocol_1realm_1authenticationMethod_1, host !is null ? host.id : null, | 50 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithHost_1port_1protocol_1realm_1authenticationMethod_1, host !is null ? host.id_ : null, |
51 port, protocol !is null ? protocol.id : null, realm !is null ? realm.id : null, | 51 port, protocol !is null ? protocol.id_ : null, realm !is null ? realm.id_ : null, |
52 authenticationMethod !is null ? authenticationMethod.id : null); | 52 authenticationMethod !is null ? authenticationMethod.id_ : null); |
53 return result !is null ? new id(result) : null; | 53 return result !is null ? new id(result) : null; |
54 } | 54 } |
55 | 55 |
56 public id initWithProxyHost (NSString host, NSInteger port, NSString type, NSString realm, NSString authenticationMethod) | 56 public id initWithProxyHost (NSString host, NSInteger port, NSString type, NSString realm, NSString authenticationMethod) |
57 { | 57 { |
58 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithProxyHost_1port_1type_1realm_1authenticationMethod_1, | 58 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithProxyHost_1port_1type_1realm_1authenticationMethod_1, |
59 host !is null ? host.id : null, port, type !is null ? type.id : null, realm !is null ? realm.id : null, | 59 host !is null ? host.id_ : null, port, type !is null ? type.id_ : null, realm !is null ? realm.id_ : null, |
60 authenticationMethod !is null ? authenticationMethod.id : null); | 60 authenticationMethod !is null ? authenticationMethod.id_ : null); |
61 return result !is null ? new id(result) : null; | 61 return result !is null ? new id(result) : null; |
62 } | 62 } |
63 | 63 |
64 public bool isProxy () | 64 public bool isProxy () |
65 { | 65 { |
66 return OS.objc_msgSend(this.id, OS.sel_isProxy) !is null; | 66 return OS.objc_msgSend(this.id_, OS.sel_isProxy) !is null; |
67 } | 67 } |
68 | 68 |
69 public NSInteger port () | 69 public NSInteger port () |
70 { | 70 { |
71 return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_port); | 71 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_port); |
72 } | 72 } |
73 | 73 |
74 public NSString protocol () | 74 public NSString protocol () |
75 { | 75 { |
76 objc.id result = OS.objc_msgSend(this.id, OS.sel_protocol); | 76 objc.id result = OS.objc_msgSend(this.id_, OS.sel_protocol); |
77 return result !is null ? new NSString(result) : null; | 77 return result !is null ? new NSString(result) : null; |
78 } | 78 } |
79 | 79 |
80 public NSString proxyType () | 80 public NSString proxyType () |
81 { | 81 { |
82 objc.id result = OS.objc_msgSend(this.id, OS.sel_proxyType); | 82 objc.id result = OS.objc_msgSend(this.id_, OS.sel_proxyType); |
83 return result !is null ? new NSString(result) : null; | 83 return result !is null ? new NSString(result) : null; |
84 } | 84 } |
85 | 85 |
86 public NSString realm () | 86 public NSString realm () |
87 { | 87 { |
88 objc.id result = OS.objc_msgSend(this.id, OS.sel_realm); | 88 objc.id result = OS.objc_msgSend(this.id_, OS.sel_realm); |
89 return result !is null ? new NSString(result) : null; | 89 return result !is null ? new NSString(result) : null; |
90 } | 90 } |
91 | 91 |
92 public bool receivesCredentialSecurely () | 92 public bool receivesCredentialSecurely () |
93 { | 93 { |
94 return OS.objc_msgSend(this.id, OS.sel_receivesCredentialSecurely) !is null; | 94 return OS.objc_msgSend(this.id_, OS.sel_receivesCredentialSecurely) !is null; |
95 } | 95 } |
96 | 96 |
97 } | 97 } |