mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-04 15:06:06 +00:00
* dark mode & stream overlay * removed all redundant imports * update for the new xcode version with fixes for the new 'implicitly retains self warning' * reworked the overlay view * cleaning up unused variables * small corrections
27 lines
598 B
Objective-C
27 lines
598 B
Objective-C
//
|
|
// PairManager.h
|
|
// Moonlight
|
|
//
|
|
// Created by Diego Waxemberg on 10/19/14.
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
|
//
|
|
|
|
#import "HttpManager.h"
|
|
|
|
@protocol PairCallback <NSObject>
|
|
|
|
- (void) showPIN:(NSString*)PIN;
|
|
- (void) pairSuccessful;
|
|
- (void) pairFailed:(NSString*)message;
|
|
- (void) alreadyPaired;
|
|
|
|
@end
|
|
|
|
@interface PairManager : NSOperation
|
|
- (id) initWithManager:(HttpManager*)httpManager andCert:(NSData*)cert callback:(id<PairCallback>)callback;
|
|
- (NSString*) generatePIN;
|
|
- (NSData*) saltPIN:(NSString*)PIN;
|
|
- (void) initiatePair:(int)serverMajorVersion;
|
|
|
|
@end
|