-
Notifications
You must be signed in to change notification settings - Fork 0
/
VNCServerInfoView.h
66 lines (53 loc) · 1.45 KB
/
VNCServerInfoView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//
// VNCServerInfoView.h
// vnsea
//
// Created by Chris Reed on 9/6/07.
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <UIKit/UIPreferencesTable.h>
#import <UIKit/UISwitchControl.h>
#import <UIKit/UIPreferencesDeleteTableCell.h>
#import <UIKit/UISegmentedControl.h>
//! @brief Array indices for the preferences table cells.
enum _server_info_cell_indices
{
kServerNameCellIndex,
kServerAddressCellIndex,
kServerPasswordCellIndex,
kServerDisplayCellIndex,
kServerSharedCellIndex,
kServerViewOnlyCellIndex,
kServerPixelDepthCellIndex
};
/*!
* @brief View where user can enter info about a server.
*/
@interface VNCServerInfoView : UIView
{
UINavigationBar * _navBar;
UIPreferencesTable * _table;
NSMutableDictionary * _serverInfo;
id _delegate;
NSArray * _cells;
UISwitchControl * _sharedSwitch;
UISwitchControl * _viewOnlySwitch;
UISwitchControl * _keepRemoteMouseVisibleSwitch;
UISegmentedControl * _pixelDepthControl;
UIPreferencesDeleteTableCell * _deleteCell;
int _nGroups;
}
- (id)initWithFrame:(CGRect)frame;
- (void) scrollTableToTop;
- (void)setDelegate:(id)newDelegate;
- (id)delegate;
- (void)setServerInfo:(NSDictionary *)info;
- (void)setKeyboardVisible:(BOOL)visible;
- (void)deleteButtonPressed:(id)sender;
@end
@interface VNCServerInfoView (DelegateMethods)
//! Pass nil for serverInfo to cancel editing.
- (void)finishedEditingServer:(NSDictionary *)serverInfo;
- (void)deleteServer;
@end