mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Made Sparkle.h no longer a massive multi-headed abomination: now only SUAppcastItem, SUAppcast and SUUpdater (and SUVersionComparisonProtocol because it's part of the delegate protocol) are public. COMPATIBILITY ISSUE: This means there's no longer a public SUProbingUpdateDriver or a checkForUpdatesWithDriver: method. Now use checkForUpdateInformation. I may change that API before release, though. I'm thinking it might be better to give the delegate the opportunity to reject a potential update instead: then you'd just call checkForUpdatesInBackground and override that delegate method to always return NO. We'll see.
38 lines
914 B
Objective-C
38 lines
914 B
Objective-C
//
|
|
// SUUpdatePermissionPrompt.h
|
|
// Sparkle
|
|
//
|
|
// Created by Andy Matuschak on 1/24/08.
|
|
// Copyright 2008 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#ifndef SUUPDATEPERMISSIONPROMPT_H
|
|
#define SUUPDATEPERMISSIONPROMPT_H
|
|
|
|
#import "SUWindowController.h"
|
|
|
|
typedef enum {
|
|
SUAutomaticallyCheck,
|
|
SUDoNotAutomaticallyCheck
|
|
} SUPermissionPromptResult;
|
|
|
|
@class SUHost;
|
|
@interface SUUpdatePermissionPrompt : SUWindowController {
|
|
SUHost *host;
|
|
id delegate;
|
|
IBOutlet NSTextField *descriptionTextField;
|
|
IBOutlet NSView *moreInfoView;
|
|
IBOutlet NSButton *moreInfoButton;
|
|
BOOL isShowingMoreInfo, shouldSendProfile;
|
|
}
|
|
+ (void)promptWithHost:(SUHost *)aHost delegate:(id)d;
|
|
- (IBAction)toggleMoreInfo:(id)sender;
|
|
- (IBAction)finishPrompt:(id)sender;
|
|
@end
|
|
|
|
@interface NSObject (SUUpdatePermissionPromptDelegateInformalProtocol)
|
|
- (void)updatePermissionPromptFinishedWithResult:(SUPermissionPromptResult)result;
|
|
@end
|
|
|
|
#endif
|