cog/Updates/UpdateController.h

47 lines
1.0 KiB
C
Raw Normal View History

2005-06-02 18:16:43 +00:00
//
// UpdateController.h
// Cog
//
// Created by Vincent Spader on 3/26/05.
2005-07-02 21:02:06 +00:00
// Copyright 2005 Vincent Spader All rights reserved.
2005-06-02 18:16:43 +00:00
//
#import <Cocoa/Cocoa.h>
#import "MacPADSocket.h"
//Set to 0 for every startup
#ifndef DAYS_BETWEEN_CHECKS
#define DAYS_BETWEEN_CHECKS 0
#endif
@interface UpdateController : NSObject {
IBOutlet NSWindow* updateWindow;
IBOutlet NSButton* okayButton;
IBOutlet NSProgressIndicator* checkingIndicator;
IBOutlet NSTextField *statusView;
IBOutlet NSButton *autoCheckButton;
BOOL checkInBackground;
BOOL updateAvailable;
NSString *downloadURL;
MacPADSocket *macPAD;
}
- (void)setCheckAtStartup: (BOOL)shouldCheck;
- (void)checkForUpdate;
- (void)macPADCheckFinished:(NSNotification *)aNotification;
- (void)macPADErrorOccurred:(NSNotification *)aNotification;
- (void)updateDisplay:(MacPADSocket *)socket info:(NSDictionary *)info;
- (IBAction)openUpdateWindow:(id)sender;
- (IBAction)okay:(id)sender;
- (IBAction)takeBoolFromObject:(id)sender;
- (void)setDownloadURL:(NSString *)d;
@end