URLCredential.h 667 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // Credentials.h
  3. // iOS-URLDownloader
  4. //
  5. // Created by Kristijan Sedlak on 7/21/11.
  6. // Copyright 2011 AppStrides. All rights reserved.
  7. //
  8. #define OurLog(format, ...) CFShow((__bridge CFStringRef)[NSString stringWithFormat:format, ## __VA_ARGS__]);
  9. #import <Foundation/Foundation.h>
  10. @interface URLCredential : NSObject
  11. {
  12. NSString *username;
  13. NSString *password;
  14. NSURLCredentialPersistence persistance;
  15. }
  16. @property(retain) NSString *username;
  17. @property(retain) NSString *password;
  18. @property(assign) NSURLCredentialPersistence persistance;
  19. + (id)credentialWithUsername:(NSString *)user andPassword:(NSString *)pass;
  20. - (id)initWithDefaults;
  21. @end