mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-22 20:26:41 +00:00
33 lines
895 B
Objective-C
33 lines
895 B
Objective-C
//
|
|
// Connection.h
|
|
// Limelight-iOS
|
|
//
|
|
// Created by Diego Waxemberg on 1/19/14.
|
|
// Copyright (c) 2014 Diego Waxemberg. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "VideoDecoderRenderer.h"
|
|
#import "StreamConfiguration.h"
|
|
|
|
@protocol ConnectionCallbacks <NSObject>
|
|
|
|
- (void) connectionStarted;
|
|
- (void) connectionTerminated:(long)errorCode;
|
|
- (void) stageStarting:(char*)stageName;
|
|
- (void) stageComplete:(char*)stageName;
|
|
- (void) stageFailed:(char*)stageName withError:(long)errorCode;
|
|
- (void) launchFailed:(NSString*)message;
|
|
- (void) displayMessage:(char*)message;
|
|
- (void) displayTransientMessage:(char*)message;
|
|
|
|
@end
|
|
|
|
@interface Connection : NSOperation <NSStreamDelegate>
|
|
|
|
-(id) initWithConfig:(StreamConfiguration*)config renderer:(VideoDecoderRenderer*)myRenderer connectionCallbacks:(id<ConnectionCallbacks>)callbacks;
|
|
-(void) terminate;
|
|
-(void) main;
|
|
|
|
@end
|