diff options
Diffstat (limited to 'Sparkle.framework/Versions/A/Headers')
38 files changed, 0 insertions, 1342 deletions
diff --git a/Sparkle.framework/Versions/A/Headers/NSBundle+SUAdditions.h b/Sparkle.framework/Versions/A/Headers/NSBundle+SUAdditions.h deleted file mode 100644 index 38fc9238..00000000 --- a/Sparkle.framework/Versions/A/Headers/NSBundle+SUAdditions.h +++ /dev/null @@ -1,57 +0,0 @@ -// -// NSBundle+SUAdditions.h -// Sparkle -// -// Created by Andy Matuschak on 12/21/07. -// Copyright 2007 Andy Matuschak. All rights reserved. -// - -#ifndef NSBUNDLE_PLUS_ADDITIONS_H -#define NSBUNDLE_PLUS_ADDITIONS_H - -@interface NSBundle (SUAdditions) -/*! - @method - @abstract Returns a name for the bundle suitable for display to the user. - @discussion This is performed by asking NSFileManager for the display name of the bundle. -*/ -- (NSString *)name; - -/*! - @method - @abstract Returns the current internal version of the bundle. - @discussion This uses the CFBundleVersion info value. This string is not appropriate for display to users: use -displayVersion instead. -*/ -- (NSString *)version; - -/*! - @method - @abstract Returns the bundle's version, suitable for display to the user. - @discussion If the CFBundleShortVersionString is available and different from the CFBundleVersion, this looks like CFBundleShortVersionString (CFBundleVersion). If the version strings are the same or CFBundleShortVersionString is not defined, this is equivalent to -version. -*/ -- (NSString *)displayVersion; - -/*! - @method - @abstract Returns a suitable icon for this bundle. - @discussion Uses the CFBundleIconFile icon if defined; otherwise, uses the default application icon. -*/ -- (NSImage *)icon; - -/*! - @method - @abstract Returns whether the application is running from a disk image. -*/ -- (BOOL)isRunningFromDiskImage; - -/*! - @method - @abstract Returns a profile of the users system useful for statistical purposes. - @discussion Returns an array of dictionaries; each dictionary represents a piece of data and has keys "key", "visibleKey", "value", and "visibleValue". -*/ -- (NSArray *)systemProfile; - -- (NSString *)publicDSAKey; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/NSFileManager+Aliases.h b/Sparkle.framework/Versions/A/Headers/NSFileManager+Aliases.h deleted file mode 100644 index 76b2b501..00000000 --- a/Sparkle.framework/Versions/A/Headers/NSFileManager+Aliases.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// NSFileManager+Aliases.h -// Sparkle -// -// Created by Andy Matuschak on 2/4/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef NSFILEMANAGER_PLUS_ALIASES_H -#define NSFILEMANAGER_PLUS_ALIASES_H - -#import <Cocoa/Cocoa.h> - -@interface NSFileManager (Aliases) -- (BOOL)isAliasFolderAtPath:(NSString *)path; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/NSFileManager+Authentication.h b/Sparkle.framework/Versions/A/Headers/NSFileManager+Authentication.h deleted file mode 100644 index 80b91a9b..00000000 --- a/Sparkle.framework/Versions/A/Headers/NSFileManager+Authentication.h +++ /dev/null @@ -1,16 +0,0 @@ -// -// NSFileManager+Authentication.m -// Sparkle -// -// Created by Andy Matuschak on 3/9/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef NSFILEMANAGER_PLUS_AUTHENTICATION_H -#define NSFILEMANAGER_PLUS_AUTHENTICATION_H - -@interface NSFileManager (SUAuthenticationAdditions) -- (BOOL)copyPathWithAuthentication:(NSString *)src overPath:(NSString *)dst error:(NSError **)error; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/NSFileManager+ExtendedAttributes.h b/Sparkle.framework/Versions/A/Headers/NSFileManager+ExtendedAttributes.h deleted file mode 100644 index e541c300..00000000 --- a/Sparkle.framework/Versions/A/Headers/NSFileManager+ExtendedAttributes.h +++ /dev/null @@ -1,53 +0,0 @@ -// -// NSFileManager+ExtendedAttributes.h -// Sparkle -// -// Created by Mark Mentovai on 2008-01-22. -// Copyright 2008 Mark Mentovai. All rights reserved. -// - -#ifndef NSFILEMANAGER_PLUS_EXTENDEDATTRIBUTES -#define NSFILEMANAGER_PLUS_EXTENDEDATTRIBUTES - -#import <Cocoa/Cocoa.h> - -@interface NSFileManager (ExtendedAttributes) - -// Wraps the removexattr system call, allowing an AppKit-style NSString* to -// be used for the pathname argument. Note that the order of the arguments -// has changed from what removexattr accepts, so that code reads more -// naturally. -// -// removexattr is only available on Mac OS X 10.4 ("Tiger") and later. If -// built with an SDK that includes removexattr, this method will link against -// removexattr directly. When using earlier SDKs, this method will dynamically -// look up the removexattr symbol at runtime. If the symbol is not present, -// as will be the case when running on 10.3, this method returns -1 and sets -// errno to ENOSYS. -- (int)removeXAttr:(const char*)name - fromFile:(NSString*)file - options:(int)options; - -// Removes the directory tree rooted at |root| from the file quarantine. -// The quarantine was introduced on Mac OS X 10.5 and is described at: -// -// http://developer.apple.com/releasenotes/Carbon/RN-LaunchServices/index.html -//#apple_ref/doc/uid/TP40001369-DontLinkElementID_2 -// -// If |root| is not a directory, then it alone is removed from the quarantine. -// Symbolic links, including |root| if it is a symbolic link, will not be -// traversed. -// -// Ordinarily, the quarantine is managed by calling LSSetItemAttribute -// to set the kLSItemQuarantineProperties attribute to a dictionary specifying -// the quarantine properties to be applied. However, it does not appear to be -// possible to remove an item from the quarantine directly through any public -// Launch Services calls. Instead, this method takes advantage of the fact -// that the quarantine is implemented in part by setting an extended attribute, -// "com.apple.quarantine", on affected files. Removing this attribute is -// sufficient to remove files from the quarantine. -- (void)releaseFromQuarantine:(NSString*)root; - -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/NSFileManager+Verification.h b/Sparkle.framework/Versions/A/Headers/NSFileManager+Verification.h deleted file mode 100644 index 9a97eacd..00000000 --- a/Sparkle.framework/Versions/A/Headers/NSFileManager+Verification.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// NSFileManager+Verification.h -// Sparkle -// -// Created by Andy Matuschak on 3/16/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef NSFILEMANAGER_PLUS_VERIFICATION_H -#define NSFILEMANAGER_PLUS_VERIFICATION_H - -// For the paranoid folks! -@interface NSFileManager (SUVerification) -- (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature withPublicDSAKey:(NSString *)pkeyString; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/NSString+extras.h b/Sparkle.framework/Versions/A/Headers/NSString+extras.h deleted file mode 100644 index 7d84b688..00000000 --- a/Sparkle.framework/Versions/A/Headers/NSString+extras.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - -BSD License - -Copyright (c) 2002, Brent Simmons -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. -* Neither the name of ranchero.com or Brent Simmons nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, -OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT -OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -*/ - -#ifndef NSSTRING_PLUS_EXTRAS_H -#define NSSTRING_PLUS_EXTRAS_H - - -/* - NSString+extras.h - NetNewsWire - - Created by Brent Simmons on Fri Jun 14 2002. - Copyright (c) 2002 Brent Simmons. All rights reserved. -*/ - - -#import <Foundation/Foundation.h> -#import <CoreFoundation/CoreFoundation.h> -#import "SUConstants.h" // for NSInteger - -@interface NSString (extras) - -- (NSString *)stringWithSubstitute:(NSString *)subs forCharactersFromSet:(NSCharacterSet *)set; - -- (NSString *) trimWhiteSpace; - -- (NSString *) stripHTML; - -- (NSString *) ellipsizeAfterNWords: (NSInteger) n; - -+ (BOOL) stringIsEmpty: (NSString *) s; - - -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/NSURL+Parameters.h b/Sparkle.framework/Versions/A/Headers/NSURL+Parameters.h deleted file mode 100644 index 40b2f9e8..00000000 --- a/Sparkle.framework/Versions/A/Headers/NSURL+Parameters.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// NSURL+Parameters.h -// Sparkle -// -// Created by Andy Matuschak on 5/6/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef NSURL_PLUS_PARAMETERS_H -#define NSURL_PLUS_PARAMETERS_H - -#import <Cocoa/Cocoa.h> - -@interface NSURL (SUParameterAdditions) -- (NSURL *)URLWithParameters:(NSArray *)parameters; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/NSWorkspace+SystemVersion.h b/Sparkle.framework/Versions/A/Headers/NSWorkspace+SystemVersion.h deleted file mode 100644 index 11194125..00000000 --- a/Sparkle.framework/Versions/A/Headers/NSWorkspace+SystemVersion.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// NSWorkspace+SystemVersion.h -// Sparkle -// -// Created by Andy Matuschak on 5/7/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef NSWORKSPACE_PLUS_SYSTEMVERSION_H -#define NSWORKSPACE_PLUS_SYSTEMVERSION_H - -#import <Cocoa/Cocoa.h> - -@interface NSWorkspace (SystemVersion) -+ (NSString *)systemVersionString; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/NSWorkspace_RBAdditions.h b/Sparkle.framework/Versions/A/Headers/NSWorkspace_RBAdditions.h deleted file mode 100644 index bd50fb13..00000000 --- a/Sparkle.framework/Versions/A/Headers/NSWorkspace_RBAdditions.h +++ /dev/null @@ -1,41 +0,0 @@ -// -// NSWorkspace_RBAdditions.h -// PathProps -// -// Created by Rainer Brockerhoff on 10/04/2007. -// Copyright 2007 Rainer Brockerhoff. All rights reserved. -// - -#ifndef NSWORKSPACE_RBADDITIONS_H -#define NSWORKSPACE_RBADDITIONS_H - - -extern NSString* NSWorkspace_RBfstypename; -extern NSString* NSWorkspace_RBmntonname; -extern NSString* NSWorkspace_RBmntfromname; -extern NSString* NSWorkspace_RBdeviceinfo; -extern NSString* NSWorkspace_RBimagefilepath; -extern NSString* NSWorkspace_RBconnectiontype; -extern NSString* NSWorkspace_RBpartitionscheme; -extern NSString* NSWorkspace_RBserverURL; - -@interface NSWorkspace (NSWorkspace_RBAdditions) - -// This method will return nil if the input path is invalid. Otherwise, the returned NSDictionary may contain -// the following keys: -//- NSWorkspace_RBfstypename: will always be present.Shows the filesystem type (usually "hfs"), from statfs. -//- NSWorkspace_RBmntonname: will always be present. Shows the volume mount point. -//- NSWorkspace_RBmntfromname: will always be present. Shows the BSD device path for local volumes; info for -// remote volumes depends on the filesystem type. -//- NSWorkspace_RBconnectiontype: should always be present for local volumes. Shows the connection type ("SATA", "USB", etc.). -//- NSWorkspace_RBpartitionscheme: should always be present for local volumes. Shows the partition scheme. -//- NSWorkspace_RBdeviceinfo: should always be present for local volumes. Shows some information about the -// physical device; varies widely. -//- NSWorkspace_RBimagefilepath: should be present for disk images only. Shows the path of the disk image file. -//- NSWorkspace_RBserverURL: should be present for remote volumes only. Shows the server URL. - -- (NSDictionary*)propertiesForPath:(NSString*)path; - -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/NTSynchronousTask.h b/Sparkle.framework/Versions/A/Headers/NTSynchronousTask.h deleted file mode 100644 index 1cf5c04e..00000000 --- a/Sparkle.framework/Versions/A/Headers/NTSynchronousTask.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// NTSynchronousTask.h -// CocoatechCore -// -// Created by Steve Gehrman on 9/29/05. -// Copyright 2005 Steve Gehrman. All rights reserved. -// - -#ifndef NTSYNCHRONOUSTASK_H -#define NTSYNCHRONOUSTASK_H - -@interface NTSynchronousTask : NSObject -{ - NSTask *mv_task; - NSPipe *mv_outputPipe; - NSPipe *mv_inputPipe; - - NSData* mv_output; - BOOL mv_done; - int mv_result; -} - -// pass nil for directory if not needed -// returns the result -+ (NSData*)task:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input; - -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/RSS.h b/Sparkle.framework/Versions/A/Headers/RSS.h deleted file mode 100644 index 38978b2b..00000000 --- a/Sparkle.framework/Versions/A/Headers/RSS.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - -BSD License - -Copyright (c) 2002, Brent Simmons -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. -* Neither the name of ranchero.com or Brent Simmons nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, -OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT -OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -*/ - -#ifndef RSS_H -#define RSS_H - - -/* - RSS.h - A class for reading RSS feeds. - - Created by Brent Simmons on Wed Apr 17 2002. - Copyright (c) 2002 Brent Simmons. All rights reserved. -*/ - - -#import <Cocoa/Cocoa.h> -#import <CoreFoundation/CoreFoundation.h> -#import "NSString+extras.h" - - -@interface RSS : NSObject { - NSMutableData *incrementalData; - id delegate; - - NSDictionary *headerItems; - NSMutableArray *newsItems; - NSString *version; - - BOOL flRdf; - BOOL normalize; - } - -- (RSS *)initWithURL:(NSURL *) url userAgent:(NSString*)userAgent delegate:delegate; -- (BOOL)loadData:(NSData *)rssData normalize:(BOOL)fl; - -- (NSMutableArray *)newsItems; -- (NSDictionary *)newestItem; - -@end - -@interface NSObject (RSSDelegateProtocol) -- (void)feedDidFinishLoading:(RSS *)feed; -- (void)feed:(RSS *)feed didFailWithError:(NSError *)error; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUAppcast.h b/Sparkle.framework/Versions/A/Headers/SUAppcast.h deleted file mode 100644 index 624f3f21..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUAppcast.h +++ /dev/null @@ -1,32 +0,0 @@ -// -// SUAppcast.h -// Sparkle -// -// Created by Andy Matuschak on 3/12/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUAPPCAST_H -#define SUAPPCAST_H - -@class RSS, SUAppcastItem; -@interface SUAppcast : NSObject { - NSArray *items; - NSString *userAgentString; - id delegate; -} - -- (void)fetchAppcastFromURL:(NSURL *)url; -- (void)setDelegate:delegate; -- (void)setUserAgentString:(NSString *)userAgentString; - -- (NSArray *)items; - -@end - -@interface NSObject (SUAppcastDelegate) -- (void)appcastDidFinishLoading:(SUAppcast *)appcast; -- (void)appcast:(SUAppcast *)appcast failedToLoadWithError:(NSError *)error; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h b/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h deleted file mode 100644 index d0c0523e..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h +++ /dev/null @@ -1,48 +0,0 @@ -// -// SUAppcastItem.h -// Sparkle -// -// Created by Andy Matuschak on 3/12/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUAPPCASTITEM_H -#define SUAPPCASTITEM_H - - -@interface SUAppcastItem : NSObject { - NSString *title; - NSDate *date; - NSString *description; - - NSURL *releaseNotesURL; - - NSString *DSASignature; - NSString *minimumSystemVersion; - - NSURL *fileURL; - NSString *versionString; - NSString *displayVersionString; - - NSDictionary *propertiesDictionary; -} - -// Initializes with data from a dictionary provided by the RSS class. -- initWithDictionary:(NSDictionary *)dict; - -- (NSString *)title; -- (NSString *)versionString; -- (NSString *)displayVersionString; -- (NSDate *)date; -- (NSString *)description; -- (NSURL *)releaseNotesURL; -- (NSURL *)fileURL; -- (NSString *)DSASignature; -- (NSString *)minimumSystemVersion; - -// Returns the dictionary provided in initWithDictionary; this might be useful later for extensions. -- (NSDictionary *)propertiesDictionary; - -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUAutomaticUpdateAlert.h b/Sparkle.framework/Versions/A/Headers/SUAutomaticUpdateAlert.h deleted file mode 100644 index 76fb35f4..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUAutomaticUpdateAlert.h +++ /dev/null @@ -1,39 +0,0 @@ -// -// SUAutomaticUpdateAlert.h -// Sparkle -// -// Created by Andy Matuschak on 3/18/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUAUTOMATICUPDATEALERT_H -#define SUAUTOMATICUPDATEALERT_H - -#import "SUWindowController.h" - -typedef enum -{ - SUInstallNowChoice, - SUInstallLaterChoice, - SUDoNotInstallChoice -} SUAutomaticInstallationChoice; - -@class SUAppcastItem; -@interface SUAutomaticUpdateAlert : SUWindowController { - SUAppcastItem *updateItem; - id delegate; - NSBundle *hostBundle; -} - -- (id)initWithAppcastItem:(SUAppcastItem *)item hostBundle:(NSBundle *)hostBundle delegate:delegate; -- (IBAction)installNow:sender; -- (IBAction)installLater:sender; -- (IBAction)doNotInstall:sender; - -@end - -@interface NSObject (SUAutomaticUpdateAlertDelegateProtocol) -- (void)automaticUpdateAlert:(SUAutomaticUpdateAlert *)aua finishedWithChoice:(SUAutomaticInstallationChoice)choice; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUAutomaticUpdateDriver.h b/Sparkle.framework/Versions/A/Headers/SUAutomaticUpdateDriver.h deleted file mode 100644 index f63c194e..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUAutomaticUpdateDriver.h +++ /dev/null @@ -1,23 +0,0 @@ -// -// SUAutomaticUpdateDriver.h -// Sparkle -// -// Created by Andy Matuschak on 5/6/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUAUTOMATICUPDATEDRIVER_H -#define SUAUTOMATICUPDATEDRIVER_H - -#import <Cocoa/Cocoa.h> -#import "SUBasicUpdateDriver.h" - -@class SUAutomaticUpdateAlert; -@interface SUAutomaticUpdateDriver : SUBasicUpdateDriver { - BOOL postponingInstallation, showErrors; - SUAutomaticUpdateAlert *alert; -} - -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUBasicUpdateDriver.h b/Sparkle.framework/Versions/A/Headers/SUBasicUpdateDriver.h deleted file mode 100644 index bd0297c5..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUBasicUpdateDriver.h +++ /dev/null @@ -1,59 +0,0 @@ -// -// SUBasicUpdateDriver.h -// Sparkle, -// -// Created by Andy Matuschak on 4/23/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUBASICUPDATEDRIVER_H -#define SUBASICUPDATEDRIVER_H - -#import <Cocoa/Cocoa.h> -#import "SUUpdateDriver.h" - -@class SUAppcastItem, SUUnarchiver, SUAppcast, SUUnarchiver; -@interface SUBasicUpdateDriver : SUUpdateDriver { - NSBundle *hostBundle; - SUAppcastItem *updateItem; - - NSURLDownload *download; - NSString *downloadPath; - - SUUnarchiver *unarchiver; - - NSString *relaunchPath; -} - -- (void)checkForUpdatesAtURL:(NSURL *)appcastURL hostBundle:(NSBundle *)hb; - -- (void)appcastDidFinishLoading:(SUAppcast *)ac; -- (void)appcast:(SUAppcast *)ac failedToLoadWithError:(NSError *)error; - -- (BOOL)isItemNewer:(SUAppcastItem *)ui; -- (BOOL)hostSupportsItem:(SUAppcastItem *)ui; -- (BOOL)itemContainsSkippedVersion:(SUAppcastItem *)ui; -- (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui; -- (void)didFindValidUpdate; -- (void)didNotFindUpdate; - -- (void)downloadUpdate; -- (void)download:(NSURLDownload *)d decideDestinationWithSuggestedFilename:(NSString *)name; -- (void)downloadDidFinish:(NSURLDownload *)d; -- (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error; - -- (void)extractUpdate; -- (void)unarchiverDidFinish:(SUUnarchiver *)ua; -- (void)unarchiverDidFail:(SUUnarchiver *)ua; - -- (void)installUpdate; -- (void)installerFinishedForHostBundle:(NSBundle *)hb; -- (void)installerForHostBundle:(NSBundle *)hb failedWithError:(NSError *)error; -- (void)relaunchHostApp; - -- (void)abortUpdate; -- (void)abortUpdateWithError:(NSError *)error; - -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUConstants.h b/Sparkle.framework/Versions/A/Headers/SUConstants.h deleted file mode 100644 index c0c427af..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUConstants.h +++ /dev/null @@ -1,72 +0,0 @@ -// -// SUConstants.h -// Sparkle -// -// Created by Andy Matuschak on 3/16/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - - -#ifndef SUCONSTANTS_H -#define SUCONSTANTS_H - - -extern NSString *SUUpdaterWillRestartNotification; -extern NSString *SUTechnicalErrorInformationKey; - -extern NSString *SUFeedURLKey; -extern NSString *SUHasLaunchedBeforeKey; -extern NSString *SUShowReleaseNotesKey; -extern NSString *SUSkippedVersionKey; -extern NSString *SUScheduledCheckIntervalKey; -extern NSString *SULastCheckTimeKey; -extern NSString *SUExpectsDSASignatureKey; -extern NSString *SUPublicDSAKeyKey; -extern NSString *SUPublicDSAKeyFileKey; -extern NSString *SUAutomaticallyUpdateKey; -extern NSString *SUAllowsAutomaticUpdatesKey; -extern NSString *SUEnableAutomaticChecksKey; -extern NSString *SUEnableAutomaticChecksKeyOld; -extern NSString *SUEnableSystemProfilingKey; -extern NSString *SUSendProfileInfoKey; - -extern NSString *SUSparkleErrorDomain; -// Appcast phase errors. -extern OSStatus SUAppcastParseError; -extern OSStatus SUNoUpdateError; -extern OSStatus SUAppcastError; -extern OSStatus SURunningFromDiskImageError; - -// Downlaod phase errors. -extern OSStatus SUTemporaryDirectoryError; - -// Extraction phase errors. -extern OSStatus SUUnarchivingError; -extern OSStatus SUSignatureError; - -// Installation phase errors. -extern OSStatus SUFileCopyFailure; -extern OSStatus SUAuthenticationFailure; -extern OSStatus SUMissingUpdateError; -extern OSStatus SUMissingInstallerToolError; -extern OSStatus SURelaunchError; -extern OSStatus SUInstallationError; - -// NSInteger is a type that was added to Leopard. -// Here is some glue to ensure that NSInteger will work with pre-10.5 SDKs: -#ifndef NSINTEGER_DEFINED - #ifdef NS_BUILD_32_LIKE_64 - typedef long NSInteger; - typedef unsigned long NSUInteger; - #else - typedef int NSInteger; - typedef unsigned int NSUInteger; - #endif - #define NSIntegerMax LONG_MAX - #define NSIntegerMin LONG_MIN - #define NSUIntegerMax ULONG_MAX - #define NSINTEGER_DEFINED 1 -#endif - - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUInstaller.h b/Sparkle.framework/Versions/A/Headers/SUInstaller.h deleted file mode 100644 index 08bfc974..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUInstaller.h +++ /dev/null @@ -1,24 +0,0 @@ -// -// SUInstaller.h -// Sparkle -// -// Created by Andy Matuschak on 4/10/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUINSTALLER_H -#define SUINSTALLER_H - -#import <Cocoa/Cocoa.h> - -@interface SUInstaller : NSObject { } -+ (void)installFromUpdateFolder:(NSString *)updateFolder overHostBundle:(NSBundle *)hostBundle delegate:delegate synchronously:(BOOL)synchronously; -+ (void)_finishInstallationWithResult:(BOOL)result hostBundle:(NSBundle *)hostBundle error:(NSError *)error delegate:delegate; -@end - -@interface NSObject (SUInstallerDelegateInformalProtocol) -- (void)installerFinishedForHostBundle:(NSBundle *)hostBundle; -- (void)installerForHostBundle:(NSBundle *)hostBundle failedWithError:(NSError *)error; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUPackageInstaller.h b/Sparkle.framework/Versions/A/Headers/SUPackageInstaller.h deleted file mode 100644 index 94bb3ad0..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUPackageInstaller.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// SUPackageInstaller.h -// Sparkle -// -// Created by Andy Matuschak on 4/10/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUPACKAGEINSTALLER_H -#define SUPACKAGEINSTALLER_H - -#import "Sparkle.h" -#import "SUPlainInstaller.h" - -@interface SUPackageInstaller : SUPlainInstaller { } -+ (void)installPath:(NSString *)path overHostBundle:(NSBundle *)bundle delegate:delegate; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUPlainInstaller.h b/Sparkle.framework/Versions/A/Headers/SUPlainInstaller.h deleted file mode 100644 index 075ffe66..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUPlainInstaller.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// SUPlainInstaller.h -// Sparkle -// -// Created by Andy Matuschak on 4/10/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUPLAININSTALLER_H -#define SUPLAININSTALLER_H - -#import "Sparkle.h" - -@interface SUPlainInstaller : SUInstaller { } -+ (void)performInstallationWithPath:(NSString *)path hostBundle:(NSBundle *)hostBundle delegate:delegate synchronously:(BOOL)synchronously; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUProbingUpdateDriver.h b/Sparkle.framework/Versions/A/Headers/SUProbingUpdateDriver.h deleted file mode 100644 index c91c6a32..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUProbingUpdateDriver.h +++ /dev/null @@ -1,24 +0,0 @@ -// -// SUProbingUpdateDriver.h -// Sparkle -// -// Created by Andy Matuschak on 5/7/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUPROBINGUPDATEDRIVER_H -#define SUPROBINGUPDATEDRIVER_H - -#import <Cocoa/Cocoa.h> -#import "SUBasicUpdateDriver.h" - -// This replaces the old SUStatusChecker. -@interface SUProbingUpdateDriver : SUBasicUpdateDriver { } -@end - -@interface NSObject (SUProbeDriverDelegateProtocol) -- (void)didFindValidUpdate:(SUAppcastItem *)item toHostBundle:(NSBundle *)hb; -- (void)didNotFindUpdateToHostBundle:(NSBundle *)hb; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUScheduledUpdateDriver.h b/Sparkle.framework/Versions/A/Headers/SUScheduledUpdateDriver.h deleted file mode 100644 index 892a6a74..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUScheduledUpdateDriver.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// SUScheduledUpdateDriver.h -// Sparkle -// -// Created by Andy Matuschak on 5/6/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUSCHEDULEDUPDATEDRIVER_H -#define SUSCHEDULEDUPDATEDRIVER_H - -#import <Cocoa/Cocoa.h> -#import "SUUIBasedUpdateDriver.h" - -@interface SUScheduledUpdateDriver : SUUIBasedUpdateDriver { - BOOL showErrors; -} - -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUStandardVersionComparator.h b/Sparkle.framework/Versions/A/Headers/SUStandardVersionComparator.h deleted file mode 100644 index 0bc15706..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUStandardVersionComparator.h +++ /dev/null @@ -1,36 +0,0 @@ -// -// SUStandardVersionComparator.h -// Sparkle -// -// Created by Andy Matuschak on 12/21/07. -// Copyright 2007 Andy Matuschak. All rights reserved. -// - -#ifndef SUSTANDARDVERSIONCOMPARATOR_H -#define SUSTANDARDVERSIONCOMPARATOR_H - - -#import "SUVersionComparisonProtocol.h" - -/*! - @class - @abstract Sparkle's default version comparator. - @discussion This comparator is adapted from MacPAD, by Kevin Ballard. It's "dumb" in that it does essentially string comparison, in components split by character type. -*/ -@interface SUStandardVersionComparator : NSObject <SUVersionComparison> { } - -/*! - @method - @abstract Returns a singleton instance of the comparator. -*/ -+ (SUStandardVersionComparator *)defaultComparator; - -/*! - @method - @abstract Compares version strings through textual analysis. - @discussion See the implementation for more details. -*/ -- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUStatusChecker.h b/Sparkle.framework/Versions/A/Headers/SUStatusChecker.h deleted file mode 100755 index a1fca913..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUStatusChecker.h +++ /dev/null @@ -1,30 +0,0 @@ -// -// SUStatusChecker.h -// Sparkle -// -// Created by Evan Schoenberg on 7/6/06. -// - -#ifndef SUSTATUSCHECKER_H -#define SUSTATUSCHECKER_H - -#import "SUUpdater.h" - -@class SUStatusChecker; - -@protocol SUStatusCheckerDelegate <NSObject> -//versionString will be nil and isNewVersion will be NO if version checking fails. -- (void)statusChecker:(SUStatusChecker *)statusChecker foundVersion:(NSString *)versionString isNewVersion:(BOOL)isNewVersion; -@end - -@interface SUStatusChecker : SUUpdater { - id<SUStatusCheckerDelegate> scDelegate; -} - -// Create a status checker which will notifiy delegate once the appcast version is determined. -// Notification occurs via the method defined in the SUStatusCheckerDelegate informal protocol. -+ (SUStatusChecker *)statusCheckerForDelegate:(id<SUStatusCheckerDelegate>)delegate; - -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUStatusController.h b/Sparkle.framework/Versions/A/Headers/SUStatusController.h deleted file mode 100644 index dc0c197f..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUStatusController.h +++ /dev/null @@ -1,42 +0,0 @@ -// -// SUStatusController.h -// Sparkle -// -// Created by Andy Matuschak on 3/14/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUSTATUSCONTROLLER_H -#define SUSTATUSCONTROLLER_H - -#import "SUWindowController.h" - -@interface SUStatusController : SUWindowController { - double progressValue, maxProgressValue; - NSString *title, *statusText, *buttonTitle; - IBOutlet NSButton *actionButton; - IBOutlet NSProgressIndicator* progressBar; - NSBundle *hostBundle; -} - -- (id)initWithHostBundle:(NSBundle *)hostBundle; - -// Pass 0 for the max progress value to get an indeterminate progress bar. -// Pass nil for the status text to not show it. -- (void)beginActionWithTitle:(NSString *)title maxProgressValue:(double)maxProgressValue statusText:(NSString *)statusText; - -// If isDefault is YES, the button's key equivalent will be \r. -- (void)setButtonTitle:(NSString *)buttonTitle target:target action:(SEL)action isDefault:(BOOL)isDefault; -- (void)setButtonEnabled:(BOOL)enabled; -- (void)setButtonHidden:(BOOL)hidden; - -- (double)progressValue; -- (void)setProgressValue:(double)value; -- (double)maxProgressValue; -- (void)setMaxProgressValue:(double)value; - -- (void)setStatusText:(NSString *)statusText; - -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUSystemProfiler.h b/Sparkle.framework/Versions/A/Headers/SUSystemProfiler.h deleted file mode 100644 index 8ce9f545..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUSystemProfiler.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// SUSystemProfiler.h -// Sparkle -// -// Created by Andy Matuschak on 12/22/07. -// Copyright 2007 Andy Matuschak. All rights reserved. -// - -#ifndef SUSYSTEMPROFILER_H -#define SUSYSTEMPROFILER_H - -@interface SUSystemProfiler : NSObject {} -+ (SUSystemProfiler *)sharedSystemProfiler; -- (NSMutableArray *)systemProfileArrayForHostBundle:(NSBundle *)hostBundle; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUUIBasedUpdateDriver.h b/Sparkle.framework/Versions/A/Headers/SUUIBasedUpdateDriver.h deleted file mode 100644 index d3459801..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUUIBasedUpdateDriver.h +++ /dev/null @@ -1,23 +0,0 @@ -// -// SUUIBasedUpdateDriver.h -// Sparkle -// -// Created by Andy Matuschak on 5/5/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUUIBASEDUPDATEDRIVER_H -#define SUUIBASEDUPDATEDRIVER_H - -#import <Cocoa/Cocoa.h> -#import "SUBasicUpdateDriver.h" - -@class SUStatusController, SUUpdateAlert; -@interface SUUIBasedUpdateDriver : SUBasicUpdateDriver { - SUStatusController *statusController; - SUUpdateAlert *updateAlert; -} - -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUUnarchiver.h b/Sparkle.framework/Versions/A/Headers/SUUnarchiver.h deleted file mode 100644 index 337bf500..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUUnarchiver.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// SUUnarchiver.h -// Sparkle -// -// Created by Andy Matuschak on 3/16/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUUNARCHIVER_H -#define SUUNARCHIVER_H - -@interface SUUnarchiver : NSObject { - id delegate; - NSString *archivePath; -} - -- (void)unarchivePath:(NSString *)path; -- (void)setDelegate:delegate; -- (void)cleanUp; - -@end - -@interface NSObject (SUUnarchiverDelegate) -- (void)unarchiver:(SUUnarchiver *)unarchiver extractedLength:(long)length; -- (void)unarchiverDidFinish:(SUUnarchiver *)unarchiver; -- (void)unarchiverDidFail:(SUUnarchiver *)unarchiver; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUUpdateAlert.h b/Sparkle.framework/Versions/A/Headers/SUUpdateAlert.h deleted file mode 100644 index a0288aba..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUUpdateAlert.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// 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 "SUWindowController.h" - -typedef enum -{ - SUInstallUpdateChoice, - SURemindMeLaterChoice, - SUSkipThisVersionChoice -} SUUpdateAlertChoice; - -@class WebView, SUAppcastItem; -@interface SUUpdateAlert : SUWindowController { - SUAppcastItem *updateItem; - NSBundle *hostBundle; - id delegate; - - IBOutlet WebView *releaseNotesView; - IBOutlet NSTextField *description; - NSProgressIndicator *releaseNotesSpinner; - BOOL webViewFinishedLoading; -} - -- (id)initWithAppcastItem:(SUAppcastItem *)item hostBundle:(NSBundle *)hostBundle; -- (void)setDelegate:delegate; - -- (IBAction)installUpdate:sender; -- (IBAction)skipThisVersion:sender; -- (IBAction)remindMeLater:sender; - -@end - -@interface NSObject (SUUpdateAlertDelegate) -- (void)updateAlert:(SUUpdateAlert *)updateAlert finishedWithChoice:(SUUpdateAlertChoice)updateChoice; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUUpdateDriver.h b/Sparkle.framework/Versions/A/Headers/SUUpdateDriver.h deleted file mode 100644 index f0c4413d..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUUpdateDriver.h +++ /dev/null @@ -1,27 +0,0 @@ -// -// SUUpdateDriver.h -// Sparkle -// -// Created by Andy Matuschak on 5/7/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUUPDATEDRIVER_H -#define SUUPDATEDRIVER_H - -#import <Cocoa/Cocoa.h> - -@interface SUUpdateDriver : NSObject -{ - BOOL finished; - id delegate; -} -- (void)checkForUpdatesAtURL:(NSURL *)appcastURL hostBundle:(NSBundle *)hb; -- (void)abortUpdate; -- (BOOL)finished; - -- delegate; -- (void)setDelegate:delegate; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUUpdatePermissionPrompt.h b/Sparkle.framework/Versions/A/Headers/SUUpdatePermissionPrompt.h deleted file mode 100644 index 24959da7..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUUpdatePermissionPrompt.h +++ /dev/null @@ -1,36 +0,0 @@ -// -// 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 "Sparkle.h" - -typedef enum { - SUAutomaticallyCheck, - SUDoNotAutomaticallyCheck -} SUPermissionPromptResult; - -@interface SUUpdatePermissionPrompt : SUWindowController { - NSBundle *hostBundle; - id delegate; - IBOutlet NSTextField *descriptionTextField; - IBOutlet NSView *moreInfoView; - IBOutlet NSButton *moreInfoButton; - BOOL isShowingMoreInfo, shouldSendProfile; -} -+ (void)promptWithHostBundle:(NSBundle *)hb delegate:(id)d; -- (IBAction)toggleMoreInfo:(id)sender; -- (IBAction)finishPrompt:(id)sender; -@end - -@interface NSObject (SUUpdatePermissionPromptDelegateInformalProtocol) -- (void)updatePermissionPromptFinishedWithResult:(SUPermissionPromptResult)result; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUUpdater.h b/Sparkle.framework/Versions/A/Headers/SUUpdater.h deleted file mode 100644 index 80788728..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUUpdater.h +++ /dev/null @@ -1,80 +0,0 @@ -// -// SUUpdater.h -// Sparkle -// -// Created by Andy Matuschak on 1/4/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUUPDATER_H -#define SUUPDATER_H - -@class SUUpdateDriver; -@interface SUUpdater : NSObject { - NSTimer *checkTimer; - SUUpdateDriver *driver; - - NSBundle *hostBundle; - id delegate; -} - -- (void)setHostBundle:(NSBundle *)hostBundle; -- (void)setDelegate:(id)delegate; - -// 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 forces an update to begin with a particular driver (see SU*UpdateDriver.h) -- (void)checkForUpdatesWithDriver:(SUUpdateDriver *)driver; - -- (BOOL)updateInProgress; - -@end - -@interface NSObject (SUUpdaterDelegateInformalProtocol) -// This method allows you to add extra parameters to the appcast URL, potentially based on whether or not -// Sparkle will also be sending along the system profile. This method should return an array of dictionaries with the following keys: -- (NSArray *)feedParametersForUpdater:(SUUpdater *)updater sendingSystemProfile:(BOOL)sendingProfile; - -// Use this to override the default behavior for Sparkle prompting the user about automatic update checks. -- (BOOL)shouldPromptForPermissionToCheckForUpdates; - -// Implement this if you want to do some special handling with the appcast once it finishes loading. -- (void)appcastDidFinishLoading:(SUAppcast *)appcast; - -// If you're using special logic or extensions in your appcast, implement this to use your own logic for finding -// a valid update, if any, in the given appcast. -- (SUAppcastItem *)bestValidUpdateInAppcast:(SUAppcast *)appcast; - -// Sent when a valid update is found by the update driver. -- (void)didFindValidUpdate:(SUAppcastItem *)update; - -// Sent when the user makes a choice in the update alert dialog (install now / remind me later / skip this version). -- (void)userChoseAction:(SUUpdateAlertChoice)action forUpdate:(SUAppcastItem *)update; - -// Sent immediately before installing the specified update. -- (void)updateWillInstall:(SUAppcastItem *)update; - -// Return YES to delay the relaunch until you do some processing; invoke the given NSInvocation to continue. -- (BOOL)shouldPostponeRelaunchForUpdate:(SUAppcastItem *)update untilInvoking:(NSInvocation *)invocation; - -// Called immediately before relaunching. -- (void)updaterWillRelaunchApplication; - -@end - -// Define some minimum intervals to avoid DOS-like checking attacks. These are in seconds. -#ifdef DEBUG -#define SU_MIN_CHECK_INTERVAL 60 -#else -#define SU_MIN_CHECK_INTERVAL 60*60 -#endif - -#ifdef DEBUG -#define SU_DEFAULT_CHECK_INTERVAL 60 -#else -#define SU_DEFAULT_CHECK_INTERVAL 60*60*24 -#endif - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUUserDefaults.h b/Sparkle.framework/Versions/A/Headers/SUUserDefaults.h deleted file mode 100644 index ba2eedb2..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUUserDefaults.h +++ /dev/null @@ -1,41 +0,0 @@ -// -// SUUserDefaults.h -// Sparkle -// -// Created by Andy Matuschak on 12/21/07. -// Copyright 2007 Andy Matuschak. All rights reserved. -// - -#ifndef SUUSERDEFAULTS_H -#define SUUSERDEFAULTS_H - -/*! - @class - @abstract A substitute for NSUserDefaults that will work with arbitrary bundle identifiers. - @discussion Make sure you call -setIdentifier: before using SUUserDefaults. The other methods in this class work just like those in NSUserDefaults. -*/ - -@interface SUUserDefaults : NSObject { - NSString *identifier; -} - -/*! - @method - @abstract Returns a singleton instance of the user defaults class. -*/ -+ (SUUserDefaults *)standardUserDefaults; - -/*! - @method - @abstract Sets which bundle identifier to use when setting and retrieving defaults. - @discussion It is imperative that you set the identifier through this method before trying to set or retrieve defaults. -*/ -- (void)setIdentifier:(NSString *)identifier; - -- (id)objectForKey:(NSString *)defaultName; -- (void)setObject:(id)value forKey:(NSString *)defaultName; -- (BOOL)boolForKey:(NSString *)defaultName; -- (void)setBool:(BOOL)value forKey:(NSString *)defaultName; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUUserInitiatedUpdateDriver.h b/Sparkle.framework/Versions/A/Headers/SUUserInitiatedUpdateDriver.h deleted file mode 100644 index 6849c91d..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUUserInitiatedUpdateDriver.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// SUUserInitiatedUpdateDriver.h -// Sparkle -// -// Created by Andy Matuschak on 5/30/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUUSERINITIATEDUPDATEDRIVER_H -#define SUUSERINITIATEDUPDATEDRIVER_H - -#import <Cocoa/Cocoa.h> -#import "SUUIBasedUpdateDriver.h" - -@interface SUUserInitiatedUpdateDriver : SUUIBasedUpdateDriver { - SUStatusController *checkingController; -} - -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h b/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h deleted file mode 100644 index 3d11ae87..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h +++ /dev/null @@ -1,27 +0,0 @@ -// -// SUVersionComparisonProtocol.h -// Sparkle -// -// Created by Andy Matuschak on 12/21/07. -// Copyright 2007 Andy Matuschak. All rights reserved. -// - -#ifndef SUVERSIONCOMPARISONPROTOCOL_H -#define SUVERSIONCOMPARISONPROTOCOL_H - -/*! - @protocol - @abstract Implement this protocol to provide version comparison facilities for Sparkle. -*/ -@protocol SUVersionComparison - -/*! - @method - @abstract An abstract method to compare two version strings. - @discussion Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a, and NSOrderedSame if they are equivalent. -*/ -- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; - -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/SUVersionComparisonTest.h b/Sparkle.framework/Versions/A/Headers/SUVersionComparisonTest.h deleted file mode 100644 index b263a8d4..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUVersionComparisonTest.h +++ /dev/null @@ -1,16 +0,0 @@ -// -// SUVersionComparisonTest.h -// Sparkle -// -// Created by Andy Matuschak on 4/15/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import <SenTestingKit/SenTestingKit.h> - - -@interface SUVersionComparisonTest : SenTestCase { - -} - -@end diff --git a/Sparkle.framework/Versions/A/Headers/SUWindowController.h b/Sparkle.framework/Versions/A/Headers/SUWindowController.h deleted file mode 100644 index 8b50a64c..00000000 --- a/Sparkle.framework/Versions/A/Headers/SUWindowController.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// SUWindowController.h -// Sparkle -// -// Created by Andy Matuschak on 2/13/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUWINDOWCONTROLLER_H -#define SUWINDOWCONTROLLER_H - -#import <Cocoa/Cocoa.h> - -@interface SUWindowController : NSWindowController { } -// We use this instead of plain old NSWindowController initWithWindowNibName so that we'll be able to find the right path when running in a bundle loaded from another app. -- (id)initWithHostBundle:(NSBundle *)hb windowNibName:(NSString *)nibName; -@end - -#endif diff --git a/Sparkle.framework/Versions/A/Headers/Sparkle.h b/Sparkle.framework/Versions/A/Headers/Sparkle.h deleted file mode 100644 index 924ce289..00000000 --- a/Sparkle.framework/Versions/A/Headers/Sparkle.h +++ /dev/null @@ -1,63 +0,0 @@ -// -// Sparkle.h -// Sparkle -// -// Created by Andy Matuschak on 3/16/06. (Modified by CDHW on 23/12/07) -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -// -// Prefix header for all source files of the 'Sparkle' target in the 'Sparkle' project. -// - -#ifndef SPARKLE_H -#define SPARKLE_H - -#define SULocalizedString(key,comment) NSLocalizedStringFromTableInBundle(key, @"Sparkle", [NSBundle bundleForClass:[self class]], comment) - -#ifdef __OBJC__ -#import <Cocoa/Cocoa.h> -#import "SUConstants.h" -#endif - - -// This list should include the shared headers. It doesn't matter if some of them aren't shared (unless -// there are name-space collisions) so we can list all of them to start with: - -#import "NSBundle+SUAdditions.h" -#import "NSFileManager+Aliases.h" -#import "NSFileManager+Authentication.h" -#import "NSFileManager+Verification.h" -#import "NSString+extras.h" -#import "NSURL+Parameters.h" -#import "NSWorkspace_RBAdditions.h" -#import "NSWorkspace+SystemVersion.h" - -#import "NTSynchronousTask.h" - -#import "RSS.h" - -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUAutomaticUpdateAlert.h" -#import "SUAutomaticUpdateDriver.h" -#import "SUBasicUpdateDriver.h" -#import "SUConstants.h" -#import "SUInstaller.h" -#import "SUProbingUpdateDriver.h" -#import "SUScheduledUpdateDriver.h" -#import "SUStandardVersionComparator.h" -#import "SUStatusController.h" -#import "SUSystemProfiler.h" -#import "SUUIBasedUpdateDriver.h" -#import "SUUnarchiver.h" -#import "SUUpdateAlert.h" -#import "SUUpdateDriver.h" -#import "SUUpdater.h" -#import "SUUpdatePermissionPrompt.h" -#import "SUUserInitiatedUpdateDriver.h" -#import "SUUserDefaults.h" -#import "SUVersionComparisonProtocol.h" -#import "SUWindowController.h" - -#endif |