FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Bookmark.h
1/*
2 Bookmark model abstraction
3
4 Copyright 2013 Thincast Technologies GmbH, Authors: Dorian Johnson
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 <Foundation/Foundation.h>
12#import <UIKit/UIKit.h>
13#import "ConnectionParams.h"
14
15@interface ComputerBookmark : NSObject <NSCoding>
16{
17 @protected
18 ComputerBookmark *_parent;
19 NSString *_uuid, *_label;
20 UIImage *_image;
21 ConnectionParams *_connection_params;
22 BOOL _connected_via_wlan;
23}
24
25@property(nonatomic, assign) ComputerBookmark *parent;
26@property(nonatomic, readonly) NSString *uuid;
27@property(nonatomic, copy) NSString *label;
28@property(nonatomic, retain) UIImage *image;
29@property(readonly, nonatomic) ConnectionParams *params;
30@property(nonatomic, assign) BOOL conntectedViaWLAN;
31
32// Creates a copy of this object, with a new UUID
33- (id)copy;
34- (id)copyWithUUID;
35
36// Whether user can delete, move, or rename this entry
37- (BOOL)isDeletable;
38- (BOOL)isMovable;
39- (BOOL)isRenamable;
40- (BOOL)hasImmutableHost;
41
42- (id)initWithConnectionParameters:(ConnectionParams *)params;
43- (id)initWithBaseDefaultParameters;
44
45// A copy of @params, with _bookmark_uuid set.
46- (ConnectionParams *)copyMarkedParams;
47
48@end