Volume-Control/User interface/Accessability/AccessibilityDialog.h

51 lines
1.1 KiB
Objective-C

//
// AccessibilityDialog.h
// iTunes Volume Control
//
// Created by Andrea Alberti on 09.06.19.
// Copyright © 2019 Andrea Alberti. All rights reserved.
//
#import <Cocoa/Cocoa.h>
NS_ASSUME_NONNULL_BEGIN
@interface ScreenshotView : NSImageView
{
NSImage* screenshotImage;
}
-(void)setAppropriateImage;
@end
@interface AccessibilityDialog : NSWindowController
{
NSTimer* checkAuthorizationTimer;
@public
BOOL authorized;
}
@property (nonatomic, weak) IBOutlet NSButton* exitBtn;
@property (nonatomic, weak) IBOutlet NSButton* openSecurityPrivacyBtn;
@property (nonatomic, weak) IBOutlet NSButton* restartBtn;
@property (nonatomic, weak) IBOutlet ScreenshotView* screenshot;
- (IBAction)onRestart:(id)sender;
- (IBAction)onExitButton:(id)sender;
- (IBAction)onOpenSecurityPrivacy:(id)sender;
// we need our own Enum because the system's AVAuthorizationStatus is not available prior to 10.14
typedef NS_ENUM(NSInteger, PrivacyConsentState) {
PrivacyConsentStateUnknown,
PrivacyConsentStateGranted,
PrivacyConsentStateDenied
};
@end
NS_ASSUME_NONNULL_END