11#import <Foundation/Foundation.h>
12#import <CoreGraphics/CoreGraphics.h>
17#define GET_TAG(section, row) ((((int)section) << 16) | ((int)(row)))
18#define GET_TAG_FROM_PATH(path) ((((int)path.section) << 16) | ((int)(path.row)))
20BOOL ScanHostNameAndPort(NSString *address, NSString **host,
unsigned short *port);
23#pragma mark Screen Resolutions
25NSString *ScreenResolutionDescription(TSXScreenOptions type,
int width,
int height);
26BOOL ScanScreenResolution(NSString *description,
int *width,
int *height, TSXScreenOptions *type);
27BOOL IsFitScreenOption(TSXScreenOptions type);
28CGFloat FitScreenScale(TSXScreenOptions type);
30NSDictionary *SelectionForColorSetting(
void);
31NSArray *ResolutionModes(
void);
33#pragma mark Security Protocol
35NSString *ProtocolSecurityDescription(TSXProtocolSecurityOptions type);
36BOOL ScanProtocolSecurity(NSString *description, TSXProtocolSecurityOptions *type);
37NSDictionary *SelectionForSecuritySetting(
void);
41NSMutableArray *FilterBookmarks(NSArray *bookmarks, NSArray *filter_words);
42NSMutableArray *FilterHistory(NSArray *history, NSString *filterStr);
44#pragma mark iPad/iPhone detection
49#pragma mark Version Info
50NSString *TSXAppFullVersion(
void);
52#pragma mark Touch/Mouse handling
55void SetSwapMouseButtonsFlag(BOOL swapped);
58void SetInvertScrollingFlag(BOOL invert);
61int GetLeftMouseButtonClickEvent(BOOL down);
64int GetRightMouseButtonClickEvent(BOOL down);
67int GetMouseMoveEvent(
void);
70int GetMouseWheelEvent(BOOL down);
73CGFloat GetScrollGestureDelta(
void);
75#pragma mark Connectivity tools
79#pragma mark System Info functions
80NSString *TSXGetPlatform(
void);
81BOOL TSXDeviceHasJailBreak(
void);
82NSString *TSXGetPrimaryMACAddress(NSString *sep);