11 #import "GlobalDefaults.h"
13 #import "ConnectionParams.h"
21 if (_shared_global_defaults == nil)
25 if (_shared_global_defaults == nil)
30 return _shared_global_defaults;
35 if (!(
self = [super init]))
39 NSData *bookmark_data =
40 [[NSUserDefaults standardUserDefaults] objectForKey:@"TSXSharedGlobalDefaultBookmark"];
42 if (bookmark_data && [bookmark_data length])
43 bookmark = [NSKeyedUnarchiver unarchiveObjectWithData:bookmark_data];
46 bookmark = [[[
ComputerBookmark alloc] initWithBaseDefaultParameters] autorelease];
48 _default_bookmark = [bookmark retain];
54 [_default_bookmark release];
60 @synthesize bookmark = _default_bookmark;
64 return [[
ComputerBookmark alloc] initWithConnectionParameters:[[
self newParams] autorelease]];
76 [bm setLabel:@"Test Server"];
77 [[bm params] setValue:@"testservice.ifreerdp.com" forKey:@"hostname"];
78 [[bm params] setInt:0 forKey:@"screen_resolution_type"];
79 [[bm params] setInt:1024 forKey:@"width"];
80 [[bm params] setInt:768 forKey:@"height"];
81 [[bm params] setInt:32 forKey:@"colors"];
82 [[bm params] setBool:YES forKey:@"perf_remotefx"];
83 [[bm params] setBool:YES forKey:@"perf_gfx"];
84 [[bm params] setBool:YES forKey:@"perf_h264"];