Files
DoNotDisturb/shared/UpdateWindowController.h
Patrick Wardle 039ee72e8b v 1.1.0; (mounted) volume monitoring, improved installer,
-added new monitoring plugin: mounted volumes
-improved installer, now, no need to spawn main app during install
-improved error checking for executed tasks
-minor code cleanup
2018-04-23 13:33:22 -10:00

50 lines
1.1 KiB
Objective-C
Executable File

//
// file: UpdateWindowController.m
// project: DND (shared)
// description: window handler for update window/popup (header)
//
// created by Patrick Wardle
// copyright (c) 2018 Objective-See. All rights reserved.
//
@import Cocoa;
@interface UpdateWindowController : NSWindowController <NSWindowDelegate>
{
}
/* PROPERTIES */
//version label/string
@property(weak)IBOutlet NSTextField *infoLabel;
//action button
@property(weak)IBOutlet NSButton *actionButton;
//label string
@property(nonatomic, retain)NSString* infoLabelString;
//first button ('update check')
@property(weak)IBOutlet NSView *firstButton;
//button title
@property(nonatomic, retain)NSString* actionButtonTitle;
//overlay view
@property(weak)IBOutlet NSView *overlayView;
//spinner
@property(weak)IBOutlet NSProgressIndicator *progressIndicator;
/* METHODS */
//save the main label's & button title's text
-(void)configure:(NSString*)label buttonTitle:(NSString*)buttonTitle;
//invoked when user clicks button
// trigger action such as opening product website, updating, etc
-(IBAction)buttonHandler:(id)sender;
@end