ACAccountStore.inc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. { Parsed from Accounts.framework ACAccountStore.h }
  2. {$ifdef TYPES}
  3. type
  4. ACAccountStorePtr = ^ACAccountStore;
  5. {$endif}
  6. {$ifdef TYPES}
  7. type
  8. ACAccountCredentialRenewResult = NSInteger;
  9. ACAccountCredentialRenewResultPtr = ^ACAccountCredentialRenewResult;
  10. const
  11. ACAccountCredentialRenewResultRenewed = 0;
  12. ACAccountCredentialRenewResultRejected = 1;
  13. ACAccountCredentialRenewResultFailed = 2;
  14. type
  15. ACAccountStoreSaveCompletionHandler = OpaqueCBlock;
  16. ACAccountStoreRemoveCompletionHandler = OpaqueCBlock;
  17. ACAccountStoreRequestAccessCompletionHandler = OpaqueCBlock;
  18. ACAccountStoreCredentialRenewalHandler = OpaqueCBlock;
  19. {$endif}
  20. {$ifdef CLASSES}
  21. type
  22. ACAccountStore = objcclass external (NSObject)
  23. public
  24. function accounts: NSArray; message 'accounts';
  25. function accountWithIdentifier (identifier: NSString): ACAccount; message 'accountWithIdentifier:';
  26. function accountTypeWithAccountTypeIdentifier (typeIdentifier: NSString): ACAccountType; message 'accountTypeWithAccountTypeIdentifier:';
  27. function accountsWithAccountType (accountType: ACAccountType): NSArray; message 'accountsWithAccountType:';
  28. procedure saveAccount_withCompletionHandler (account: ACAccount; completionHandler: ACAccountStoreSaveCompletionHandler); message 'saveAccount:withCompletionHandler:';
  29. procedure requestAccessToAccountsWithType_withCompletionHandler (accountType: ACAccountType; handler: ACAccountStoreRequestAccessCompletionHandler); message 'requestAccessToAccountsWithType:withCompletionHandler:'; deprecated 'in NA, NA, 5_0, NA';
  30. procedure requestAccessToAccountsWithType_options_completion (accountType: ACAccountType; options: NSDictionary; completion: ACAccountStoreRequestAccessCompletionHandler); message 'requestAccessToAccountsWithType:options:completion:';
  31. procedure renewCredentialsForAccount_completion (account: ACAccount; completionHandler: ACAccountStoreCredentialRenewalHandler); message 'renewCredentialsForAccount:completion:';
  32. procedure removeAccount_withCompletionHandler (account: ACAccount; completionHandler: ACAccountStoreRemoveCompletionHandler); message 'removeAccount:withCompletionHandler:';
  33. end;
  34. {$endif}
  35. {$ifdef EXTERNAL_SYMBOLS}
  36. var
  37. ACAccountStoreDidChangeNotification: NSString { available in 10_8, 5_0 }; cvar; external;
  38. {$endif}