FreeRDP
Loading...
Searching...
No Matches
iOS/AppDelegate.m
1/*
2 App delegate
3
4 Copyright 2013 Thincast Technologies GmbH, Author: Martin Fleisz
5
6 This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
7 If a copy of the MPL was not distributed with this file, You can obtain one at
8 http://mozilla.org/MPL/2.0/.
9 */
10
11#import "AppDelegate.h"
12
13#import "AboutController.h"
14#import "BookmarkListController.h"
15#import "AppSettingsController.h"
16#import "MainTabBarController.h"
17#import "Utils.h"
18
19@implementation AppDelegate
20
21@synthesize window = _window, tabBarController = _tabBarController;
22
23- (BOOL)application:(UIApplication *)application
24 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
25{
26 // Set default values for most NSUserDefaults
27 [[NSUserDefaults standardUserDefaults]
28 registerDefaults:[NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle]
29 pathForResource:@"Defaults"
30 ofType:@"plist"]]];
31
32 // init global settings
33 SetSwapMouseButtonsFlag(
34 [[NSUserDefaults standardUserDefaults] boolForKey:@"ui.swap_mouse_buttons"]);
35 SetInvertScrollingFlag(
36 [[NSUserDefaults standardUserDefaults] boolForKey:@"ui.invert_scrolling"]);
37 return YES;
38}
39
40- (void)applicationWillResignActive:(UIApplication *)application
41{
42 /*
43 Sent when the application is about to move from active to inactive state. This can occur for
44 certain types of temporary interruptions (such as an incoming phone call or SMS message) or
45 when the user quits the application and it begins the transition to the background state. Use
46 this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates.
47 Games should use this method to pause the game.
48 */
49}
50
51- (void)applicationDidEnterBackground:(UIApplication *)application
52{
53 /*
54 Use this method to release shared resources, save user data, invalidate timers, and store
55 enough application state information to restore your application to its current state in case
56 it is terminated later. If your application supports background execution, this method is
57 called instead of applicationWillTerminate: when the user quits.
58 */
59}
60
61- (void)applicationWillEnterForeground:(UIApplication *)application
62{
63 /*
64 Called as part of the transition from the background to the inactive state; here you can undo
65 many of the changes made on entering the background.
66 */
67 // cancel disconnect timer
68}
69
70- (void)applicationDidBecomeActive:(UIApplication *)application
71{
72 /*
73 Restart any tasks that were paused (or not yet started) while the application was inactive. If
74 the application was previously in the background, optionally refresh the user interface.
75 */
76}
77
78- (void)applicationWillTerminate:(UIApplication *)application
79{
80 /*
81 Called when the application is about to terminate.
82 Save data if appropriate.
83 See also applicationDidEnterBackground:.
84 */
85}
86
87- (void)dealloc
88{
89 [_window release];
90 [super dealloc];
91}
92
93@end