mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
31 lines
823 B
Objective-C
31 lines
823 B
Objective-C
//
|
|
// 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
|