mirror of
https://github.com/google/santa.git
synced 2026-01-14 00:37:56 -05:00
22 lines
619 B
Objective-C
22 lines
619 B
Objective-C
#import <Cocoa/Cocoa.h>
|
|
|
|
@protocol SNTMessageWindowControllerDelegate
|
|
- (void)windowDidCloseSilenceHash:(NSString *)hash;
|
|
@end
|
|
|
|
@interface SNTMessageWindowController : NSWindowController <NSWindowDelegate>
|
|
|
|
- (IBAction)showWindow:(id)sender;
|
|
- (IBAction)closeWindow:(id)sender;
|
|
|
|
/// Generate a distinct key for a given displayed event. This key is used for silencing future
|
|
/// notifications.
|
|
- (NSString *)messageHash;
|
|
|
|
/// Linked to checkbox in UI to prevent future notifications for the given event.
|
|
@property BOOL silenceFutureNotifications;
|
|
|
|
@property(weak) id<SNTMessageWindowControllerDelegate> delegate;
|
|
|
|
@end
|