FreeRDP
QuickConnectBookmark.java
1 /*
2  Quick Connect bookmark (used for quick connects using just a hostname)
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 package com.freerdp.freerdpcore.domain;
12 
13 import android.content.SharedPreferences;
14 import android.os.Parcel;
15 import android.os.Parcelable;
16 
18 {
19 
20  public static final Parcelable.Creator<QuickConnectBookmark> CREATOR =
21  new Parcelable.Creator<QuickConnectBookmark>() {
22  public QuickConnectBookmark createFromParcel(Parcel in)
23  {
24  return new QuickConnectBookmark(in);
25  }
26 
27  @Override public QuickConnectBookmark[] newArray(int size)
28  {
29  return new QuickConnectBookmark[size];
30  }
31  };
32 
33  public QuickConnectBookmark(Parcel parcel)
34  {
35  super(parcel);
36  type = TYPE_QUICKCONNECT;
37  }
38 
39  public QuickConnectBookmark()
40  {
41  super();
42  type = TYPE_QUICKCONNECT;
43  }
44 
45  @Override public int describeContents()
46  {
47  return 0;
48  }
49 
50  @Override public void writeToParcel(Parcel out, int flags)
51  {
52  super.writeToParcel(out, flags);
53  }
54 
55  @Override public void writeToSharedPreferences(SharedPreferences sharedPrefs)
56  {
57  super.writeToSharedPreferences(sharedPrefs);
58  }
59 
60  @Override public void readFromSharedPreferences(SharedPreferences sharedPrefs)
61  {
62  super.readFromSharedPreferences(sharedPrefs);
63  }
64 
65  // Cloneable
66  public Object clone()
67  {
68  return super.clone();
69  }
70 }