FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
com.freerdp.freerdpcore.domain.ManualBookmark Class Reference
Inheritance diagram for com.freerdp.freerdpcore.domain.ManualBookmark:
Collaboration diagram for com.freerdp.freerdpcore.domain.ManualBookmark:

Data Structures

class  GatewaySettings
 

Public Member Functions

 ManualBookmark (Parcel parcel)
 
String getHostname ()
 
void setHostname (String hostname)
 
int getPort ()
 
void setPort (int port)
 
boolean getEnableGatewaySettings ()
 
void setEnableGatewaySettings (boolean enableGatewaySettings)
 
GatewaySettings getGatewaySettings ()
 
void setGatewaySettings (GatewaySettings gatewaySettings)
 
int describeContents ()
 
void writeToParcel (Parcel out, int flags)
 
void writeToSharedPreferences (SharedPreferences sharedPrefs)
 
void readFromSharedPreferences (SharedPreferences sharedPrefs)
 
Object clone ()
 
- Public Member Functions inherited from com.freerdp.freerdpcore.domain.BookmarkBase
 BookmarkBase (Parcel parcel)
 
int getType ()
 
long getId ()
 
void setId (long id)
 
String getLabel ()
 
void setLabel (String label)
 
String getUsername ()
 
void setUsername (String username)
 
String getPassword ()
 
void setPassword (String password)
 
String getDomain ()
 
void setDomain (String domain)
 
ScreenSettings getScreenSettings ()
 
void setScreenSettings (ScreenSettings screenSettings)
 
PerformanceFlags getPerformanceFlags ()
 
void setPerformanceFlags (PerformanceFlags performanceFlags)
 
AdvancedSettings getAdvancedSettings ()
 
void setAdvancedSettings (AdvancedSettings advancedSettings)
 
DebugSettings getDebugSettings ()
 
void setDebugSettings (DebugSettings debugSettings)
 
ScreenSettings getActiveScreenSettings ()
 
PerformanceFlags getActivePerformanceFlags ()
 

Static Public Attributes

static final Parcelable.Creator< ManualBookmarkCREATOR
 
- Static Public Attributes inherited from com.freerdp.freerdpcore.domain.BookmarkBase
static final int TYPE_INVALID = -1
 
static final int TYPE_MANUAL = 1
 
static final int TYPE_QUICKCONNECT = 2
 
static final int TYPE_PLACEHOLDER = 3
 
static final int TYPE_CUSTOM_BASE = 1000
 
static final Parcelable.Creator< BookmarkBaseCREATOR
 

Additional Inherited Members

- Protected Attributes inherited from com.freerdp.freerdpcore.domain.BookmarkBase
int type
 

Detailed Description

Definition at line 17 of file ManualBookmark.java.

Constructor & Destructor Documentation

◆ ManualBookmark() [1/2]

com.freerdp.freerdpcore.domain.ManualBookmark.ManualBookmark ( Parcel  parcel)
inline

Definition at line 36 of file ManualBookmark.java.

37 {
38 super(parcel);
39 type = TYPE_MANUAL;
40 hostname = parcel.readString();
41 port = parcel.readInt();
42
43 enableGatewaySettings = (parcel.readInt() == 1);
44 gatewaySettings = parcel.readParcelable(GatewaySettings.class.getClassLoader());
45 }

◆ ManualBookmark() [2/2]

com.freerdp.freerdpcore.domain.ManualBookmark.ManualBookmark ( )
inline

Definition at line 47 of file ManualBookmark.java.

48 {
49 super();
50 init();
51 }

Member Function Documentation

◆ clone()

Object com.freerdp.freerdpcore.domain.ManualBookmark.clone ( )
inline

Reimplemented from com.freerdp.freerdpcore.domain.BookmarkBase.

Definition at line 147 of file ManualBookmark.java.

148 {
149 return super.clone();
150 }

◆ describeContents()

int com.freerdp.freerdpcore.domain.ManualBookmark.describeContents ( )
inline

Reimplemented from com.freerdp.freerdpcore.domain.BookmarkBase.

Definition at line 102 of file ManualBookmark.java.

103 {
104 return 0;
105 }

◆ getEnableGatewaySettings()

boolean com.freerdp.freerdpcore.domain.ManualBookmark.getEnableGatewaySettings ( )
inline

Definition at line 82 of file ManualBookmark.java.

83 {
84 return enableGatewaySettings;
85 }

◆ getGatewaySettings()

GatewaySettings com.freerdp.freerdpcore.domain.ManualBookmark.getGatewaySettings ( )
inline

Definition at line 92 of file ManualBookmark.java.

93 {
94 return gatewaySettings;
95 }

◆ getHostname()

String com.freerdp.freerdpcore.domain.ManualBookmark.getHostname ( )
inline

Definition at line 62 of file ManualBookmark.java.

63 {
64 return hostname;
65 }

◆ getPort()

int com.freerdp.freerdpcore.domain.ManualBookmark.getPort ( )
inline

Definition at line 72 of file ManualBookmark.java.

73 {
74 return port;
75 }

◆ readFromSharedPreferences()

void com.freerdp.freerdpcore.domain.ManualBookmark.readFromSharedPreferences ( SharedPreferences  sharedPrefs)
inline

Reimplemented from com.freerdp.freerdpcore.domain.BookmarkBase.

Definition at line 132 of file ManualBookmark.java.

133 {
134 super.readFromSharedPreferences(sharedPrefs);
135
136 hostname = sharedPrefs.getString("bookmark.hostname", "");
137 port = sharedPrefs.getInt("bookmark.port", 3389);
138 enableGatewaySettings = sharedPrefs.getBoolean("bookmark.enable_gateway_settings", false);
139 gatewaySettings.setHostname(sharedPrefs.getString("bookmark.gateway_hostname", ""));
140 gatewaySettings.setPort(sharedPrefs.getInt("bookmark.gateway_port", 443));
141 gatewaySettings.setUsername(sharedPrefs.getString("bookmark.gateway_username", ""));
142 gatewaySettings.setPassword(sharedPrefs.getString("bookmark.gateway_password", ""));
143 gatewaySettings.setDomain(sharedPrefs.getString("bookmark.gateway_domain", ""));
144 }

◆ setEnableGatewaySettings()

void com.freerdp.freerdpcore.domain.ManualBookmark.setEnableGatewaySettings ( boolean  enableGatewaySettings)
inline

Definition at line 87 of file ManualBookmark.java.

88 {
89 this.enableGatewaySettings = enableGatewaySettings;
90 }

◆ setGatewaySettings()

void com.freerdp.freerdpcore.domain.ManualBookmark.setGatewaySettings ( GatewaySettings  gatewaySettings)
inline

Definition at line 97 of file ManualBookmark.java.

98 {
99 this.gatewaySettings = gatewaySettings;
100 }

◆ setHostname()

void com.freerdp.freerdpcore.domain.ManualBookmark.setHostname ( String  hostname)
inline

Definition at line 67 of file ManualBookmark.java.

68 {
69 this.hostname = hostname;
70 }

◆ setPort()

void com.freerdp.freerdpcore.domain.ManualBookmark.setPort ( int  port)
inline

Definition at line 77 of file ManualBookmark.java.

78 {
79 this.port = port;
80 }

◆ writeToParcel()

void com.freerdp.freerdpcore.domain.ManualBookmark.writeToParcel ( Parcel  out,
int  flags 
)
inline

Reimplemented from com.freerdp.freerdpcore.domain.BookmarkBase.

Definition at line 107 of file ManualBookmark.java.

108 {
109 super.writeToParcel(out, flags);
110 out.writeString(hostname);
111 out.writeInt(port);
112 out.writeInt(enableGatewaySettings ? 1 : 0);
113 out.writeParcelable(gatewaySettings, flags);
114 }

◆ writeToSharedPreferences()

void com.freerdp.freerdpcore.domain.ManualBookmark.writeToSharedPreferences ( SharedPreferences  sharedPrefs)
inline

Reimplemented from com.freerdp.freerdpcore.domain.BookmarkBase.

Definition at line 116 of file ManualBookmark.java.

117 {
118 super.writeToSharedPreferences(sharedPrefs);
119
120 SharedPreferences.Editor editor = sharedPrefs.edit();
121 editor.putString("bookmark.hostname", hostname);
122 editor.putInt("bookmark.port", port);
123 editor.putBoolean("bookmark.enable_gateway_settings", enableGatewaySettings);
124 editor.putString("bookmark.gateway_hostname", gatewaySettings.getHostname());
125 editor.putInt("bookmark.gateway_port", gatewaySettings.getPort());
126 editor.putString("bookmark.gateway_username", gatewaySettings.getUsername());
127 editor.putString("bookmark.gateway_password", gatewaySettings.getPassword());
128 editor.putString("bookmark.gateway_domain", gatewaySettings.getDomain());
129 editor.commit();
130 }

Field Documentation

◆ CREATOR

final Parcelable.Creator<ManualBookmark> com.freerdp.freerdpcore.domain.ManualBookmark.CREATOR
static
Initial value:
=
new Parcelable.Creator<ManualBookmark>() {
public ManualBookmark createFromParcel(Parcel in)
{
return new ManualBookmark(in);
}
@Override public ManualBookmark[] newArray(int size)
{
return new ManualBookmark[size];
}
}

Definition at line 19 of file ManualBookmark.java.

20 {
21 public ManualBookmark createFromParcel(Parcel in)
22 {
23 return new ManualBookmark(in);
24 }
25
26 @Override public ManualBookmark[] newArray(int size)
27 {
28 return new ManualBookmark[size];
29 }
30 };

The documentation for this class was generated from the following file: