FreeRDP
BookmarkListController.h
1 /*
2  bookmarks and active 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 "Bookmark.h"
13 #import "BookmarkTableCell.h"
14 #import "SessionTableCell.h"
15 #import "BookmarkEditorController.h"
16 #import "Reachability.h"
17 
18 @interface BookmarkListController : UIViewController <UISearchBarDelegate, UITableViewDelegate,
19  UITableViewDataSource, BookmarkEditorDelegate>
20 {
21  // custom bookmark and session table cells
22  BookmarkTableCell *_bmTableCell;
23  SessionTableCell *_sessTableCell;
24 
25  // child views
26  UISearchBar *_searchBar;
27  UITableView *_tableView;
28 
29  // array with search results (or nil if no search active)
30  NSMutableArray *_manual_search_result;
31  NSMutableArray *_history_search_result;
32 
33  // bookmark arrays
34  NSMutableArray *_manual_bookmarks;
35 
36  // bookmark star images
37  UIImage *_star_on_img;
38  UIImage *_star_off_img;
39 
40  // array with active sessions
41  NSMutableArray *_active_sessions;
42 
43  // array with connection history entries
44  NSMutableArray *_connection_history;
45 
46  // temporary bookmark when asking if the user wants to store a bookmark for a session initiated
47  // by a quick connect
48  ComputerBookmark *_temporary_bookmark;
49 }
50 
51 @property(nonatomic, retain) IBOutlet UISearchBar *searchBar;
52 @property(nonatomic, retain) IBOutlet UITableView *tableView;
53 @property(nonatomic, retain) IBOutlet BookmarkTableCell *bmTableCell;
54 @property(nonatomic, retain) IBOutlet SessionTableCell *sessTableCell;
55 
56 @end