FreeRDP
Utils.m File Reference
#import "Utils.h"
#import "OrderedDictionary.h"
#import "TSXAdditions.h"
#import <freerdp/input.h>
#import <freerdp/version.h>
#import <freerdp/config.h>
#include <sys/types.h>
#include <sys/sysctl.h>
#include <sys/socket.h>
#include <ifaddrs.h>
#include <net/if_dl.h>
#import "Bookmark.h"

Functions

BOOL ScanHostNameAndPort (NSString *address, NSString **host, unsigned short *port)
 
NSString * LocalizedFitScreen ()
 
NSString * LocalizedCustom ()
 
BOOL ScanScreenResolution (NSString *description, int *width, int *height, TSXScreenOptions *type)
 
NSString * ScreenResolutionDescription (TSXScreenOptions type, int width, int height)
 
NSDictionary * SelectionForColorSetting ()
 
NSArray * ResolutionModes ()
 
NSString * LocalizedAutomaticSecurity ()
 
NSString * ProtocolSecurityDescription (TSXProtocolSecurityOptions type)
 
BOOL ScanProtocolSecurity (NSString *description, TSXProtocolSecurityOptions *type)
 
NSDictionary * SelectionForSecuritySetting ()
 
NSMutableArray * FilterBookmarks (NSArray *bookmarks, NSArray *filter_words)
 
NSMutableArray * FilterHistory (NSArray *history, NSString *filterStr)
 
NSString * TSXAppFullVersion ()
 
BOOL IsPad ()
 
BOOL IsPhone ()
 
void SetSwapMouseButtonsFlag (BOOL swapped)
 
void SetInvertScrollingFlag (BOOL invert)
 
int GetLeftMouseButtonClickEvent (BOOL down)
 
int GetRightMouseButtonClickEvent (BOOL down)
 
int GetMouseMoveEvent ()
 
int GetMouseWheelEvent (BOOL down)
 
CGFloat GetScrollGestureDelta ()
 
void WakeUpWWAN ()
 
NSString * TSXGetPrimaryMACAddress (NSString *sep)
 
BOOL TSXDeviceHasJailBreak ()
 
NSString * TSXGetPlatform ()
 

Variables

static BOOL g_swap_mouse_buttons = NO
 
static BOOL g_invert_scrolling = NO
 

Function Documentation

◆ FilterBookmarks()

NSMutableArray* FilterBookmarks ( NSArray *  bookmarks,
NSArray *  filter_words 
)

◆ FilterHistory()

NSMutableArray* FilterHistory ( NSArray *  history,
NSString *  filterStr 
)

◆ GetLeftMouseButtonClickEvent()

int GetLeftMouseButtonClickEvent ( BOOL  down)

◆ GetMouseMoveEvent()

int GetMouseMoveEvent ( )

◆ GetMouseWheelEvent()

int GetMouseWheelEvent ( BOOL  down)

◆ GetRightMouseButtonClickEvent()

int GetRightMouseButtonClickEvent ( BOOL  down)

◆ GetScrollGestureDelta()

CGFloat GetScrollGestureDelta ( )

◆ IsPad()

BOOL IsPad ( )

◆ IsPhone()

BOOL IsPhone ( )
Here is the caller graph for this function:

◆ LocalizedAutomaticSecurity()

NSString* LocalizedAutomaticSecurity ( )
Here is the caller graph for this function:

◆ LocalizedCustom()

NSString* LocalizedCustom ( )
Here is the caller graph for this function:

◆ LocalizedFitScreen()

NSString* LocalizedFitScreen ( )
Here is the caller graph for this function:

◆ ProtocolSecurityDescription()

NSString* ProtocolSecurityDescription ( TSXProtocolSecurityOptions  type)
Here is the call graph for this function:

◆ ResolutionModes()

NSArray* ResolutionModes ( )

◆ ScanHostNameAndPort()

BOOL ScanHostNameAndPort ( NSString *  address,
NSString **  host,
unsigned short *  port 
)

◆ ScanProtocolSecurity()

BOOL ScanProtocolSecurity ( NSString *  description,
TSXProtocolSecurityOptions type 
)
Here is the call graph for this function:

◆ ScanScreenResolution()

BOOL ScanScreenResolution ( NSString *  description,
int *  width,
int *  height,
TSXScreenOptions type 
)
Here is the call graph for this function:

◆ ScreenResolutionDescription()

NSString* ScreenResolutionDescription ( TSXScreenOptions  type,
int  width,
int  height 
)
Here is the call graph for this function:

◆ SelectionForColorSetting()

NSDictionary* SelectionForColorSetting ( )
Here is the caller graph for this function:

◆ SelectionForSecuritySetting()

NSDictionary* SelectionForSecuritySetting ( )

◆ SetInvertScrollingFlag()

void SetInvertScrollingFlag ( BOOL  invert)

◆ SetSwapMouseButtonsFlag()

void SetSwapMouseButtonsFlag ( BOOL  swapped)

◆ TSXAppFullVersion()

NSString* TSXAppFullVersion ( )

◆ TSXDeviceHasJailBreak()

BOOL TSXDeviceHasJailBreak ( )

◆ TSXGetPlatform()

NSString* TSXGetPlatform ( )

◆ TSXGetPrimaryMACAddress()

NSString* TSXGetPrimaryMACAddress ( NSString *  sep)
Here is the call graph for this function:

◆ WakeUpWWAN()

void WakeUpWWAN ( )

Variable Documentation

◆ g_invert_scrolling

BOOL g_invert_scrolling = NO
static

◆ g_swap_mouse_buttons

BOOL g_swap_mouse_buttons = NO
static