| Line | |
|---|
| 1 |
// |
|---|
| 2 |
// UpdateCheckerAppDelegate.h |
|---|
| 3 |
// Perian |
|---|
| 4 |
// |
|---|
| 5 |
// Created by Augie Fackler on 1/6/07. |
|---|
| 6 |
// Copyright 2007 Augie Fackler. All rights reserved. |
|---|
| 7 |
// |
|---|
| 8 |
|
|---|
| 9 |
#import <Cocoa/Cocoa.h> |
|---|
| 10 |
#import "SUAppcast.h" |
|---|
| 11 |
#import "SUAppcastItem.h" |
|---|
| 12 |
#import "SUUtilities.h" |
|---|
| 13 |
#import "SUUpdateAlert.h" |
|---|
| 14 |
#import "SUStatusController.h" |
|---|
| 15 |
|
|---|
| 16 |
#define NEXT_RUN_KEY @"NextRunDate" |
|---|
| 17 |
#define MANUAL_RUN_KEY @"ManualUpdateCheck" |
|---|
| 18 |
#define UPDATE_URL_KEY @"UpdateFeedURL" |
|---|
| 19 |
#define SKIPPED_VERSION_KEY @"SkippedVersion" |
|---|
| 20 |
#define UPDATE_STATUS_NOTIFICATION @"org.perian.UpdateCheckStatus" |
|---|
| 21 |
#define TIME_INTERVAL_TIL_NEXT_RUN 7*24*60*60 |
|---|
| 22 |
|
|---|
| 23 |
@interface UpdateCheckerAppDelegate : NSObject { |
|---|
| 24 |
SUUpdateAlert *updateAlert; |
|---|
| 25 |
SUAppcastItem *latest; |
|---|
| 26 |
SUStatusController *statusController; |
|---|
| 27 |
NSURLDownload *downloader; |
|---|
| 28 |
NSString *downloadPath; |
|---|
| 29 |
NSDate *lastRunDate; |
|---|
| 30 |
BOOL manualRun; |
|---|
| 31 |
} |
|---|
| 32 |
|
|---|
| 33 |
- (void)doUpdateCheck; |
|---|
| 34 |
- (void)showUpdatePanelForItem:(SUAppcastItem *)updateItem; |
|---|
| 35 |
- (void)beginDownload; |
|---|
| 36 |
- (void)updateFailed; |
|---|
| 37 |
|
|---|
| 38 |
@end |
|---|