mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-22 04:03:19 +00:00
27 lines
584 B
Objective-C
27 lines
584 B
Objective-C
//
|
|
// PairManager.h
|
|
// Limelight
|
|
//
|
|
// Created by Diego Waxemberg on 10/19/14.
|
|
// Copyright (c) 2014 Limelight Stream. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "HttpManager.h"
|
|
|
|
@protocol PairCallback <NSObject>
|
|
|
|
- (void) showPIN:(NSString*)PIN;
|
|
- (void) pairSuccessful;
|
|
- (void) pairFailed:(NSString*)message;
|
|
|
|
@end
|
|
|
|
@interface PairManager : NSOperation
|
|
- (id) initWithManager:(HttpManager*)httpManager andCert:(NSData*)cert callback:(id<PairCallback>)callback;
|
|
- (NSString*) generatePIN;
|
|
- (NSData*) saltPIN:(NSString*)PIN;
|
|
- (void) initiatePair;
|
|
|
|
@end
|