Files
santa/Source/gui/SNTMessageWindowController.h
2023-01-25 12:16:31 -05:00

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