Chromium Updater
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
699 B

13 years ago
  1. //
  2. // SUAppcast.h
  3. // Sparkle
  4. //
  5. // Created by Andy Matuschak on 3/12/06.
  6. // Copyright 2006 Andy Matuschak. All rights reserved.
  7. //
  8. #ifndef SUAPPCAST_H
  9. #define SUAPPCAST_H
  10. @class SUAppcastItem;
  11. @interface SUAppcast : NSObject
  12. {
  13. @private
  14. NSArray *items;
  15. NSString *userAgentString;
  16. id delegate;
  17. NSString *downloadFilename;
  18. NSURLDownload *download;
  19. }
  20. - (void)fetchAppcastFromURL:(NSURL *)url;
  21. - (void)setDelegate:delegate;
  22. - (void)setUserAgentString:(NSString *)userAgentString;
  23. - (NSArray *)items;
  24. @end
  25. @interface NSObject (SUAppcastDelegate)
  26. - (void)appcastDidFinishLoading:(SUAppcast *)appcast;
  27. - (void)appcast:(SUAppcast *)appcast failedToLoadWithError:(NSError *)error;
  28. @end
  29. #endif