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)))
20 BOOL ScanHostNameAndPort(NSString *address, NSString **host,
unsigned short *port);
23 #pragma mark Screen Resolutions
25 NSString *ScreenResolutionDescription(TSXScreenOptions type,
int width,
int height);
26 BOOL ScanScreenResolution(NSString *description,
int *width,
int *height, TSXScreenOptions *type);
28 NSDictionary *SelectionForColorSetting(
void);
29 NSArray *ResolutionModes(
void);
31 #pragma mark Security Protocol
33 NSString *ProtocolSecurityDescription(TSXProtocolSecurityOptions type);
34 BOOL ScanProtocolSecurity(NSString *description, TSXProtocolSecurityOptions *type);
35 NSDictionary *SelectionForSecuritySetting(
void);
37 #pragma mark Bookmarks
39 NSMutableArray *FilterBookmarks(NSArray *bookmarks, NSArray *filter_words);
40 NSMutableArray *FilterHistory(NSArray *history, NSString *filterStr);
42 #pragma mark iPad/iPhone detection
47 #pragma mark Version Info
48 NSString *TSXAppFullVersion(
void);
50 #pragma mark Touch/Mouse handling
53 void SetSwapMouseButtonsFlag(BOOL swapped);
56 void SetInvertScrollingFlag(BOOL invert);
59 int GetLeftMouseButtonClickEvent(BOOL down);
62 int GetRightMouseButtonClickEvent(BOOL down);
65 int GetMouseMoveEvent(
void);
68 int GetMouseWheelEvent(BOOL down);
71 CGFloat GetScrollGestureDelta(
void);
73 #pragma mark Connectivity tools
75 void WakeUpWWAN(
void);
77 #pragma mark System Info functions
78 NSString *TSXGetPlatform(
void);
79 BOOL TSXDeviceHasJailBreak(
void);
80 NSString *TSXGetPrimaryMACAddress(NSString *sep);