1 #ifndef FREERDP_CLIENT_MAC_MRDPVIEW_H
2 #define FREERDP_CLIENT_MAC_MRDPVIEW_H
23 #import <Cocoa/Cocoa.h>
29 #import <CoreGraphics/CoreGraphics.h>
34 NSBitmapImageRep *bmiRep;
35 NSMutableArray *cursors;
36 NSMutableArray *windows;
37 NSTimer *pasteboard_timer;
38 NSCursor *currentCursor;
39 NSRect prevWinPosition;
42 CGContextRef bitmap_context;
48 NSPoint savedDragLocation;
49 BOOL firstCreateWindow;
50 BOOL isMoveSizeInProgress;
52 BOOL saveInitialDragLoc;
53 BOOL skipMoveWindowOnce;
55 NSPasteboard *pasteboard_rd;
56 NSPasteboard *pasteboard_wr;
57 int pasteboard_changecount;
58 int pasteboard_format;
62 - (int)rdpStart:(rdpContext *)rdp_context;
63 - (void)setCursor:(NSCursor *)cursor;
64 - (void)setScrollOffset:(
int)xOffset y:(
int)yOffset w:(
int)width h:(
int)height;
66 - (void)onPasteboardTimerFired:(NSTimer *)timer;
69 - (void)releaseResources;
71 @property(assign)
int is_connected;
75 BOOL mac_pre_connect(freerdp *instance);
76 BOOL mac_post_connect(freerdp *instance);
77 void mac_post_disconnect(freerdp *instance);
78 BOOL mac_authenticate_ex(freerdp *instance,
char **username,
char **password,
char **domain,
79 rdp_auth_reason reason);
81 DWORD mac_verify_certificate_ex(freerdp *instance,
const char *host, UINT16 port,
82 const char *common_name,
const char *subject,
const char *issuer,
83 const char *fingerprint, DWORD flags);
84 DWORD mac_verify_changed_certificate_ex(freerdp *instance,
const char *host, UINT16 port,
85 const char *common_name,
const char *subject,
86 const char *issuer,
const char *fingerprint,
87 const char *old_subject,
const char *old_issuer,
88 const char *old_fingerprint, DWORD flags);
90 int mac_logon_error_info(freerdp *instance, UINT32 data, UINT32 type);