Rename to OpenPgpMetadata

This commit is contained in:
Dominik Schürmann 2014-08-11 21:26:34 +02:00
parent 9aa5f23788
commit 777d22d75d

View file

@ -23,7 +23,7 @@ import android.os.Parcelable;
* Parcelable versioning has been copied from Dashclock Widget * Parcelable versioning has been copied from Dashclock Widget
* https://code.google.com/p/dashclock/source/browse/api/src/main/java/com/google/android/apps/dashclock/api/ExtensionData.java * https://code.google.com/p/dashclock/source/browse/api/src/main/java/com/google/android/apps/dashclock/api/ExtensionData.java
*/ */
public class OpenPgpDecryptMetadata implements Parcelable { public class OpenPgpMetadata implements Parcelable {
/** /**
* Since there might be a case where new versions of the client using the library getting * Since there might be a case where new versions of the client using the library getting
* old versions of the protocol (and thus old versions of this class), we need a versioning * old versions of the protocol (and thus old versions of this class), we need a versioning
@ -52,10 +52,10 @@ public class OpenPgpDecryptMetadata implements Parcelable {
return originalSize; return originalSize;
} }
public OpenPgpDecryptMetadata() { public OpenPgpMetadata() {
} }
public OpenPgpDecryptMetadata(String filename, String mimeType, long modificationTime, public OpenPgpMetadata(String filename, String mimeType, long modificationTime,
long originalSize) { long originalSize) {
this.filename = filename; this.filename = filename;
this.mimeType = mimeType; this.mimeType = mimeType;
@ -63,7 +63,7 @@ public class OpenPgpDecryptMetadata implements Parcelable {
this.originalSize = originalSize; this.originalSize = originalSize;
} }
public OpenPgpDecryptMetadata(OpenPgpDecryptMetadata b) { public OpenPgpMetadata(OpenPgpMetadata b) {
this.filename = b.filename; this.filename = b.filename;
this.mimeType = b.mimeType; this.mimeType = b.mimeType;
this.modificationTime = b.modificationTime; this.modificationTime = b.modificationTime;
@ -97,13 +97,13 @@ public class OpenPgpDecryptMetadata implements Parcelable {
dest.setDataPosition(startPosition + parcelableSize); dest.setDataPosition(startPosition + parcelableSize);
} }
public static final Creator<OpenPgpDecryptMetadata> CREATOR = new Creator<OpenPgpDecryptMetadata>() { public static final Creator<OpenPgpMetadata> CREATOR = new Creator<OpenPgpMetadata>() {
public OpenPgpDecryptMetadata createFromParcel(final Parcel source) { public OpenPgpMetadata createFromParcel(final Parcel source) {
int parcelableVersion = source.readInt(); int parcelableVersion = source.readInt();
int parcelableSize = source.readInt(); int parcelableSize = source.readInt();
int startPosition = source.dataPosition(); int startPosition = source.dataPosition();
OpenPgpDecryptMetadata vr = new OpenPgpDecryptMetadata(); OpenPgpMetadata vr = new OpenPgpMetadata();
vr.filename = source.readString(); vr.filename = source.readString();
vr.mimeType = source.readString(); vr.mimeType = source.readString();
vr.modificationTime = source.readLong(); vr.modificationTime = source.readLong();
@ -115,8 +115,8 @@ public class OpenPgpDecryptMetadata implements Parcelable {
return vr; return vr;
} }
public OpenPgpDecryptMetadata[] newArray(final int size) { public OpenPgpMetadata[] newArray(final int size) {
return new OpenPgpDecryptMetadata[size]; return new OpenPgpMetadata[size];
} }
}; };