/core/autoinstaller/UpdateEngineExtensions/EngineDelegate.h
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 9#import <Foundation/Foundation.h> 10 11@class UpdatePrinter; 12 13// EngineDelegate 14// 15// The MacFUSE autoinstaller's delegate object for a KSUpdateEngine instance. 16// This object is created with with an optional UpdatePrinter object, that will 17// print the available updates (if any). A BOOL that specifies whether to 18// actually install the updates is also given. If doInstall is YES, then the 19// updates will be installed. If doInstall is NO, then updates will not be 20// installed. Typically, if updates are not being installed, then an 21// UpdatePrinter should be specified so that the updates are printed, otherwise 22// this instance is almost pointless. 23// 24@interface EngineDelegate : NSObject { 25 @private 26 UpdatePrinter *printer_; 27 BOOL doInstall_; 28 BOOL wasSuccess_; 29} 30 31// Designated initializer. 32- (id)initWithPrinter:(UpdatePrinter *)printer doInstall:(BOOL)doInstall; 33 34// Returns whether the MacFUSE update was successful. 35- (BOOL)wasSuccess; 36 37@end