//
// SUUpdater.h
// Sparkle
//
// Created by Andy Matuschak on 1/4/06.
// Copyright 2006 Andy Matuschak. All rights reserved.
//
// $Id: SUUpdater.h 87 2007-07-05 19:16:34Z evands $
// $HeadURL: http://sparkleplus.googlecode.com/svn/trunk/SUUpdater.h $
#import <Cocoa/Cocoa.h>
// Before you use Sparkle in your app, you must set SUFeedURL in Info.plist to the
// address of the appcast on your webserver. If you don't already have an
// appcast, please see the Sparkle documentation to learn about how to set one up.
// .zip, .dmg, .tar, .tbz, .tgz archives are supported at this time.
// By default, Sparkle offers to show the user the release notes of the build they'll be
// getting, which it assumes are in the description (or body) field of the relevant RSS item.
// Set SUShowReleaseNotes to <false/> in Info.plist to hide the button.
@class SUAppcastItem, SUUpdateAlert, SUStatusController;
@interface SUUpdater : NSObject {
SUAppcastItem *updateItem;
SUStatusController *statusController;
SUUpdateAlert *updateAlert;
NSURLDownload *downloader;
NSString *downloadPath;
NSTimer *checkTimer;
NSTimeInterval checkInterval;
BOOL verbose;
BOOL updateInProgress;
id delegate;
IBOutlet NSWindow *profileMoreInfoWindow;
IBOutlet NSView *profileMoreInfoView;
IBOutlet NSButton *profileMoreInfoButton;
IBOutlet NSTextField *checkForUpdatesText;
BOOL moreInfoVisible;
}
// This IBAction is meant for a main menu item. Hook up any menu item to this action,
// and Sparkle will check for updates and report back its findings verbosely.
- (IBAction)checkForUpdates:sender;
// This method is similar to the above, but it's intended for updates initiated by
// the computer instead of by the user. It does not alert the user when he is up to date,
// and it remains silent about network errors in fetching the feed. This is what you
// want to call to update programmatically; only use checkForUpdates: with buttons and menu items.
- (void)checkForUpdatesInBackground;
// This method allows you to schedule a check to run every time interval. You can
// pass 0 to this method to cancel a previously scheduled timer. You probably don't want
// to call this directly: if you set a SUScheduledCheckInterval key in Info.plist or
// the user defaults, Sparkle will set this up for you automatically on startup. You might
// just want to call this every time the user changes the setting in the preferences.
- (void)scheduleCheckWithInterval:(NSTimeInterval)interval;
// Get information that will be included with update-check requests. This method can be used
// whether or not profile information is enabled. Use this method to show the user what kind
// of information will be included. This method will invoke -updaterCustomizeProfileInfo: on
// the delegate, if it's implemented.
- (NSMutableArray *)systemProfileInformationArray;
- (IBAction)closeProfileInfoSheet:(id)sender;
@end
@interface NSObject (SUUpdaterDelegate)
// Specify whether the updater should include system-profile information with update checks.
- (BOOL)updaterShouldSendProfileInfo;
// This method gives the delegate the opportunity to customize the information that will
// be included with update checks. Add or remove items from the dictionary as desired.
- (NSMutableArray *)updaterCustomizeProfileInfo:(NSMutableArray *)profileInfo;
// This method lets the delegate customize how versions are compared
- (NSComparisonResult)compareVersion:(NSString *)appcastVersion toVersion:(NSString *)appVersion;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
ThisServiceDoxygen_rb.zip (92个子文件)
ThisService&Doxygen_rb
Doxygen.rb 10KB
ThisService-2
ThisService.app
Contents
Frameworks
Sparkle.framework
Resources 26B
Versions
A
Resources
SUModelTranslation.plist 5KB
en.lproj
SUAutomaticUpdateAlert.nib
keyedobjects.nib 6KB
classes.nib 332B
info.nib 453B
SUUpdateAlert.nib
keyedobjects.nib 10KB
classes.nib 760B
info.nib 452B
SUProfileInfo.nib
keyedobjects.nib 11KB
classes.nib 642B
info.nib 591B
Sparkle.strings 8KB
SUStatus.nib
keyedobjects.nib 7KB
classes.nib 309B
info.nib 451B
Info.plist 663B
Sparkle 214KB
Headers
SUStatusChecker.h 786B
SUConstants.h 759B
NSString+extras.h 2KB
SUAppcast.h 479B
SUUpdateAlert.h 888B
SUStatusController.h 996B
NSFileManager+Authentication.h 287B
SUUnarchiver.h 530B
NSFileManager+Verification.h 412B
SUUpdater.h 3KB
SUAutomaticUpdateAlert.h 402B
SUAppcastItem.h 1KB
NSApplication+AppCopies.h 241B
RSS.h 3KB
Sparkle.h 514B
SUUtilities.h 658B
Current 1B
Sparkle 24B
Headers 24B
Resources
English.lproj
Localizable.strings 4KB
installation-template.html 2KB
ShortcutSafeguard.plist 1KB
MainMenu.nib
keyedobjects.nib 36KB
objects.nib 19KB
classes.nib 3KB
info.nib 913B
ThisService Help
css
accessPage.css 2KB
genlist.html 1KB
genlist_style.css 1KB
topicPage.css 4KB
indexPage.css 2KB
ThisService Help idx 22KB
pages
creatingservices.html 5KB
sharingconsiderations.html 3KB
sharingservices.html 4KB
explainingservices.html 3KB
writingscripts.html 3KB
writingscripts-standard.html 7KB
serviceprerequisites.html 4KB
writingscripts-applescript.html 5KB
index.html 2KB
ThisService Help.helpindex 25KB
gfx
splashScreenshot.png 19KB
iconSmall.png 3KB
orngbullet.gif 60B
icon.png 5KB
index.html 2KB
ShortcutRecorder.strings 2KB
InfoPlist.strings 198B
Credits.rtf 5KB
thisservice.icns 39KB
ServiceSkeleton 103KB
fr.lproj
ShortcutRecorder.strings 3KB
Info.plist 2KB
MacOS
ThisService 351KB
PkgInfo 8B
.DS_Store 6KB
ThisService Starting Points
Perl
Filter.pl 858B
Acts on input.pl 720B
Produces output.pl 524B
.DS_Store 6KB
AppleScript
Acts on input.scpt 700B
Filter.scpt 688B
Produces output.scpt 556B
.DS_Store 6KB
Ruby
Acts on input.rb 774B
.DS_Store 6KB
Filter.rb 827B
Produces output.rb 769B
.DS_Store 6KB
Python
Filter.py 1KB
Produces output.py 1KB
Acts on input.py 1KB
.DS_Store 6KB
共 92 条
- 1
周敏
- 粉丝: 46
- 资源: 49
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页