1{ Parsed from OpenDirectory.framework ODRecord.h }
2
3
4{$ifdef TYPES}
5type
6  ODRecordPtr = ^ODRecord;
7{$endif}
8
9{$ifdef CLASSES}
10
11type
12  ODRecord = objcclass external (NSObject)
13  public
14    function setNodeCredentials_password_error (inUsername: NSString; inPassword: NSString; outError: NSErrorPtr): ObjCBOOL; message 'setNodeCredentials:password:error:'; { available in 10_6, NA }
15    function setNodeCredentialsWithRecordType_authenticationType_authenticationItems_continueItems_context_error (inRecordType: ODRecordType; inType: ODAuthenticationType; inItems: NSArray; outItems: NSArrayPtr; outContext: idPtr; outError: NSErrorPtr): ObjCBOOL; message 'setNodeCredentialsWithRecordType:authenticationType:authenticationItems:continueItems:context:error:'; { available in 10_6, NA }
16    function setNodeCredentialsUsingKerberosCache_error (inCacheName: NSString; outError: NSErrorPtr): ObjCBOOL; message 'setNodeCredentialsUsingKerberosCache:error:'; deprecated 'in 10_6, 10_7';
17    function passwordPolicyAndReturnError (outError: NSErrorPtr): NSDictionary; message 'passwordPolicyAndReturnError:'; { available in __MAC_10_6, __MAC_10_9, __IPHONE_NA, __IPHONE_NA, "use effectivePoliciesAndReturnError" }
18    function verifyPassword_error (inPassword: NSString; outError: NSErrorPtr): ObjCBOOL; message 'verifyPassword:error:'; { available in 10_6, NA }
19    function verifyExtendedWithAuthenticationType_authenticationItems_continueItems_context_error (inType: ODAuthenticationType; inItems: NSArray; outItems: NSArrayPtr; outContext: idPtr; outError: NSErrorPtr): ObjCBOOL; message 'verifyExtendedWithAuthenticationType:authenticationItems:continueItems:context:error:'; { available in 10_6, NA }
20    function changePassword_toPassword_error (oldPassword: NSString; newPassword: NSString; outError: NSErrorPtr): ObjCBOOL; message 'changePassword:toPassword:error:'; { available in 10_6, NA }
21    function synchronizeAndReturnError (outError: NSErrorPtr): ObjCBOOL; message 'synchronizeAndReturnError:'; { available in 10_6, NA }
22    function recordType: NSString; message 'recordType';
23    function recordName: NSString; message 'recordName';
24    function recordDetailsForAttributes_error (inAttributes: NSArray; outError: NSErrorPtr): NSDictionary; message 'recordDetailsForAttributes:error:'; { available in 10_6, NA }
25    function valuesForAttribute_error (inAttribute: ODAttributeType; outError: NSErrorPtr): NSArray; message 'valuesForAttribute:error:'; { available in 10_6, NA }
26    function setValue_forAttribute_error (inValueOrValues: id; inAttribute: ODAttributeType; outError: NSErrorPtr): ObjCBOOL; message 'setValue:forAttribute:error:'; { available in 10_6, NA }
27    function removeValuesForAttribute_error (inAttribute: ODAttributeType; outError: NSErrorPtr): ObjCBOOL; message 'removeValuesForAttribute:error:'; { available in 10_6, NA }
28    function addValue_toAttribute_error (inValue: id; inAttribute: ODAttributeType; outError: NSErrorPtr): ObjCBOOL; message 'addValue:toAttribute:error:'; { available in 10_6, NA }
29    function removeValue_fromAttribute_error (inValue: id; inAttribute: ODAttributeType; outError: NSErrorPtr): ObjCBOOL; message 'removeValue:fromAttribute:error:'; { available in 10_6, NA }
30    function deleteRecordAndReturnError (outError: NSErrorPtr): ObjCBOOL; message 'deleteRecordAndReturnError:'; { available in 10_6, NA }
31    function policiesAndReturnError (error: NSErrorPtr): NSDictionary; message 'policiesAndReturnError:'; { available in __MAC_10_9, __MAC_10_10, __IPHONE_NA, __IPHONE_NA, "use accountPoliciesAndReturnError:" }
32    function effectivePoliciesAndReturnError (error: NSErrorPtr): NSDictionary; message 'effectivePoliciesAndReturnError:'; { available in __MAC_10_9, __MAC_10_10, __IPHONE_NA, __IPHONE_NA, "use authenticationAllowedAndReturnError: and similar methods" }
33    function supportedPoliciesAndReturnError (error: NSErrorPtr): NSDictionary; message 'supportedPoliciesAndReturnError:'; deprecated 'in __MAC_10_9, __MAC_10_10, __IPHONE_NA, __IPHONE_NA';
34    function setPolicies_error (policies: NSDictionary; error: NSErrorPtr): ObjCBOOL; message 'setPolicies:error:'; { available in __MAC_10_9, __MAC_10_10, __IPHONE_NA, __IPHONE_NA, "use setAccountPolicies:error:" }
35    function setPolicy_value_error (policy: ODPolicyType; value: id; error: NSErrorPtr): ObjCBOOL; message 'setPolicy:value:error:'; { available in __MAC_10_9, __MAC_10_10, __IPHONE_NA, __IPHONE_NA, "use addAccountPolicy:toCategory:error:" }
36    function removePolicy_error (policy: ODPolicyType; error: NSErrorPtr): ObjCBOOL; message 'removePolicy:error:'; { available in __MAC_10_9, __MAC_10_10, __IPHONE_NA, __IPHONE_NA, "use removeAccountPolicy:fromCategory:error:" }
37    function addAccountPolicy_toCategory_error (policy: NSDictionary; category: ODPolicyCategoryType; error: NSErrorPtr): ObjCBOOL; message 'addAccountPolicy:toCategory:error:'; { available starting in __MAC_10_10, __IPHONE_NA }
38    function removeAccountPolicy_fromCategory_error (policy: NSDictionary; category: ODPolicyCategoryType; error: NSErrorPtr): ObjCBOOL; message 'removeAccountPolicy:fromCategory:error:'; { available starting in __MAC_10_10, __IPHONE_NA }
39    function setAccountPolicies_error (policies: NSDictionary; error: NSErrorPtr): ObjCBOOL; message 'setAccountPolicies:error:'; { available starting in __MAC_10_10, __IPHONE_NA }
40    function accountPoliciesAndReturnError (error: NSErrorPtr): NSDictionary; message 'accountPoliciesAndReturnError:'; { available starting in __MAC_10_10, __IPHONE_NA }
41    function authenticationAllowedAndReturnError (error: NSErrorPtr): ObjCBOOL; message 'authenticationAllowedAndReturnError:'; { available starting in __MAC_10_10, __IPHONE_NA }
42    function passwordChangeAllowed_error (newPassword: NSString; error: NSErrorPtr): ObjCBOOL; message 'passwordChangeAllowed:error:'; { available starting in __MAC_10_10, __IPHONE_NA }
43    function willPasswordExpire (willExpireIn: cuint64): ObjCBOOL; message 'willPasswordExpire:'; { available starting in __MAC_10_10, __IPHONE_NA }
44    function willAuthenticationsExpire (willExpireIn: cuint64): ObjCBOOL; message 'willAuthenticationsExpire:'; { available starting in __MAC_10_10, __IPHONE_NA }
45    function secondsUntilPasswordExpires: cint64; message 'secondsUntilPasswordExpires';
46    function secondsUntilAuthenticationsExpire: cint64; message 'secondsUntilAuthenticationsExpire';
47  end;
48
49
50type
51  ODRecordGroupExtensions = objccategory external (ODRecord)
52    function addMemberRecord_error (inRecord: ODRecord; outError: NSErrorPtr): ObjCBOOL; message 'addMemberRecord:error:'; { available in 10_6, NA }
53    function removeMemberRecord_error (inRecord: ODRecord; outError: NSErrorPtr): ObjCBOOL; message 'removeMemberRecord:error:'; { available in 10_6, NA }
54    function isMemberRecord_error (inRecord: ODRecord; outError: NSErrorPtr): ObjCBOOL; message 'isMemberRecord:error:'; { available in 10_6, NA }
55  end;
56{$endif}
57
58