You've already forked hotpocket
26 lines
677 B
Objective-C
26 lines
677 B
Objective-C
//
|
|
// AuthorizationProgressViewController.h
|
|
// HotPocket (macOS)
|
|
//
|
|
// Created by Tomek Wójcik on 20/09/2025.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import <AuthenticationServices/AuthenticationServices.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface AuthorizationProgressViewController : NSViewController<ASWebAuthenticationPresentationContextProviding>
|
|
|
|
@property IBOutlet NSProgressIndicator *progressIndicator;
|
|
@property NSString *progressLabelTitle;
|
|
@property (nullable, strong) NSURL *authorizationURL;
|
|
@property (nullable, strong) ASWebAuthenticationSession *webAuthenticationSession;
|
|
@property BOOL userCancelledSession;
|
|
|
|
-(IBAction)doCancel:(id)sender;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|