/core/autoinstaller/UpdateEngineExtensions/EngineDelegate.h

http://macfuse.googlecode.com/ · C Header · 37 lines · 11 code · 6 blank · 20 comment · 0 complexity · 9c2e4af9b7f2669800744f9f673503f1 MD5 · raw file

  1. //
  2. // EngineDelegate.h
  3. // autoinstaller
  4. //
  5. // Created by Greg Miller on 7/10/08.
  6. // Copyright 2008 Google Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class UpdatePrinter;
  10. // EngineDelegate
  11. //
  12. // The MacFUSE autoinstaller's delegate object for a KSUpdateEngine instance.
  13. // This object is created with with an optional UpdatePrinter object, that will
  14. // print the available updates (if any). A BOOL that specifies whether to
  15. // actually install the updates is also given. If doInstall is YES, then the
  16. // updates will be installed. If doInstall is NO, then updates will not be
  17. // installed. Typically, if updates are not being installed, then an
  18. // UpdatePrinter should be specified so that the updates are printed, otherwise
  19. // this instance is almost pointless.
  20. //
  21. @interface EngineDelegate : NSObject {
  22. @private
  23. UpdatePrinter *printer_;
  24. BOOL doInstall_;
  25. BOOL wasSuccess_;
  26. }
  27. // Designated initializer.
  28. - (id)initWithPrinter:(UpdatePrinter *)printer doInstall:(BOOL)doInstall;
  29. // Returns whether the MacFUSE update was successful.
  30. - (BOOL)wasSuccess;
  31. @end