mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
* origin/master: (39 commits) %s is deliberate in this format string Unused Make generate_appcast available as a shared scheme Shush Xcode Link straight to docs from the readme ignore .html files when scanning for archives Missing strings translation. Updated swift Warn against abusing installUpdatesIfAvailable when generating the appcast, if an .html file exists of the same name as the archive, then it will be linked in as the releaseNotesLink Revert "Fix pt_BR translations" Revert "Fix pt_BR translations (#1039)" Fix Japanse localization Add more info to auth tool run failure Fix pt_BR translations (#1039) Fix pt_BR translations Disable the keyboard shortcut for the install button for scheduled updates to avoid accidental installs. added `sparkle:shortVersionString` to the enclosure, #1032 Changelog percent encode the filename used in the delta url ...
40 lines
1.4 KiB
Objective-C
40 lines
1.4 KiB
Objective-C
//
|
|
// SUUpdateAlert.h
|
|
// Sparkle
|
|
//
|
|
// Created by Andy Matuschak on 3/12/06.
|
|
// Copyright 2006 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#ifndef SUUPDATEALERT_H
|
|
#define SUUPDATEALERT_H
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "SUVersionDisplayProtocol.h"
|
|
#import "SPUStatusCompletionResults.h"
|
|
|
|
@protocol SUUpdateAlertDelegate;
|
|
|
|
@class SUAppcastItem, SPUDownloadData, SUHost;
|
|
@interface SUUpdateAlert : NSWindowController
|
|
|
|
@property (nonatomic, weak, readonly) id <SUVersionDisplay> versionDisplayer;
|
|
|
|
- (instancetype)initWithAppcastItem:(SUAppcastItem *)item alreadyDownloaded:(BOOL)alreadyDownloaded host:(SUHost *)aHost versionDisplayer:(id <SUVersionDisplay>)aVersionDisplayer completionBlock:(void (^)(SPUUpdateAlertChoice))block;
|
|
|
|
- (instancetype)initWithAppcastItem:(SUAppcastItem *)item host:(SUHost *)aHost versionDisplayer:(id <SUVersionDisplay>)aVersionDisplayer resumableCompletionBlock:(void (^)(SPUInstallUpdateStatus))block;
|
|
|
|
- (instancetype)initWithAppcastItem:(SUAppcastItem *)item host:(SUHost *)aHost versionDisplayer:(id <SUVersionDisplay>)aVersionDisplayer informationalCompletionBlock:(void (^)(SPUInformationalUpdateAlertChoice))block;
|
|
|
|
- (void)showUpdateReleaseNotesWithDownloadData:(SPUDownloadData *)downloadData;
|
|
- (void)showReleaseNotesFailedToDownload;
|
|
|
|
- (IBAction)installUpdate:sender;
|
|
- (IBAction)skipThisVersion:sender;
|
|
- (IBAction)remindMeLater:sender;
|
|
- (void)disableKeyboardShortcutForInstallButton;
|
|
|
|
@end
|
|
|
|
#endif
|