11#import <Foundation/Foundation.h>
12#import <UIKit/UIKit.h>
14#include <freerdp/freerdp.h>
22extern NSString *TSXSessionDidDisconnectNotification;
23extern NSString *TSXSessionDidFailToConnectNotification;
26@protocol RDPSessionDelegate <NSObject>
28- (void)session:(
RDPSession *)session didFailToConnect:(
int)reason;
29- (void)sessionWillConnect:(
RDPSession *)session;
30- (void)sessionDidConnect:(
RDPSession *)session;
31- (void)sessionWillDisconnect:(
RDPSession *)session;
32- (void)sessionDidDisconnect:(
RDPSession *)session;
33- (void)sessionBitmapContextWillChange:(
RDPSession *)session;
34- (void)sessionBitmapContextDidChange:(
RDPSession *)session;
35- (void)session:(
RDPSession *)session needsRedrawInRect:(CGRect)rect;
36- (CGSize)sizeForFitScreenForSession:(
RDPSession *)session;
39 requestsAuthenticationWithParams:(NSMutableDictionary *)params;
40- (void)session:(
RDPSession *)session verifyCertificateWithParams:(NSMutableDictionary *)params;
54 NSObject<RDPSessionDelegate> *_delegate;
56 NSCondition *_ui_request_completed;
64 BOOL _toolbar_visible;
69@property(assign) id<RDPSessionDelegate> delegate;
70@property(assign) BOOL toolbarVisible;
71@property(readonly) CGContextRef bitmapContext;
72@property(readonly) NSCondition *uiRequestCompleted;
77#pragma mark - session control functions
95- (void)sendInputEvent:(NSDictionary *)event;
98- (void)setNeedsDisplayInRectAsValue:(NSValue *)rect_value;
101- (UIImage *)getScreenshotWithSize:(CGSize)size;
104- (rdpSettings *)getSessionParams;
107- (NSString *)sessionName;