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