On the way of refactoring out SingleServerProfile.java.

+ Move mServerName from SingleServerProfile and VpnProfile.
+ Add mSavedUsername to VpnProfile.
+ Keep empty SingleServerProfile to not break the classes that use it.
+ Remove use of SingleServerProfile from VpnService.java.
This commit is contained in:
Hung-ying Tyan
2009-06-15 11:30:11 +08:00
parent 31390c7528
commit 4c424d61c7
3 changed files with 27 additions and 23 deletions

View File

@@ -23,25 +23,4 @@ import android.os.Parcel;
* {@hide}
*/
public abstract class SingleServerProfile extends VpnProfile {
private String mServerName;
public void setServerName(String name) {
mServerName = name;
}
public String getServerName() {
return mServerName;
}
@Override
protected void readFromParcel(Parcel in) {
super.readFromParcel(in);
mServerName = in.readString();
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
super.writeToParcel(parcel, flags);
parcel.writeString(mServerName);
}
}