FreeRDP
Loading...
Searching...
No Matches
RDPSessionViewController.h
1/*
2 RDP Session View Controller
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 <UIKit/UIKit.h>
12#import "RDPSession.h"
13#import "RDPKeyboard.h"
14#import "RDPSessionView.h"
15#import "RDPCursor.h"
16#import "AdvancedKeyboardView.h"
17
19 : UIViewController <RDPSessionDelegate, AdvancedKeyboardDelegate, RDPKeyboardDelegate,
20 UIScrollViewDelegate, UITextFieldDelegate, UIGestureRecognizerDelegate,
21 UIPointerInteractionDelegate>
22{
23 // scrollview that hosts the rdp session view
24 IBOutlet UIScrollView *_session_scrollview;
25
26 // rdp session view
27 IBOutlet RDPSessionView *_session_view;
28
29 // rdp session toolbar
30 IBOutlet UIToolbar *_session_toolbar;
31 BOOL _session_toolbar_visible;
32
33 // dummy text field used to display the keyboard
34 IBOutlet UITextField *_dummy_textfield;
35
36 // connecting view and the controls within that view
37 IBOutlet UIView *_connecting_view;
38 IBOutlet UILabel *_lbl_connecting;
39 IBOutlet UIActivityIndicatorView *_connecting_indicator_view;
40 IBOutlet UIButton *_cancel_connect_button;
41
42 // extended keyboard toolbar
43 UIToolbar *_keyboard_toolbar;
44
45 // rdp session
46 RDPSession *_session;
47 BOOL _session_initilized;
48
49 // flag that indicates whether the keyboard is visible or not
50 BOOL _keyboard_visible;
51
52 // keyboard extension view
53 AdvancedKeyboardView *_advanced_keyboard_view;
54 BOOL _advanced_keyboard_visible;
55 BOOL _requesting_advanced_keyboard;
56 CGSize _last_session_viewport_size;
57
58 CGPoint _prev_long_press_position;
59 CGPoint _cursor_view_position;
60 CGPoint _last_mouse_pan_location;
61 BOOL _has_cursor_view_position;
62 BOOL _has_user_moved_cursor;
63 BOOL _mouse_pan_active;
64 BOOL _long_press_active;
65 BOOL _mouse_drag_active;
66 BOOL _pointer_is_indirect;
67}
68
69- (id)initWithNibName:(NSString *)nibNameOrNil
70 bundle:(NSBundle *)nibBundleOrNil
71 session:(RDPSession *)session;
72
73@end