2015-01-29 13:01:44 -05:00
|
|
|
package com.fsck.k9.mailstore;
|
|
|
|
|
|
|
|
|
2015-01-29 13:27:48 -05:00
|
|
|
import android.app.PendingIntent;
|
|
|
|
|
2015-01-29 13:01:44 -05:00
|
|
|
import com.fsck.k9.mail.internet.MimeBodyPart;
|
|
|
|
import org.openintents.openpgp.OpenPgpError;
|
|
|
|
import org.openintents.openpgp.OpenPgpSignatureResult;
|
|
|
|
|
|
|
|
|
2015-01-30 10:10:47 -05:00
|
|
|
public class OpenPgpResultAnnotation {
|
2015-01-29 13:01:44 -05:00
|
|
|
private boolean wasEncrypted;
|
|
|
|
private OpenPgpSignatureResult signatureResult;
|
|
|
|
private OpenPgpError error;
|
2015-01-29 13:27:48 -05:00
|
|
|
private PendingIntent pendingIntent;
|
2015-01-30 10:10:47 -05:00
|
|
|
private MimeBodyPart outputData;
|
2015-01-29 13:01:44 -05:00
|
|
|
|
|
|
|
public OpenPgpSignatureResult getSignatureResult() {
|
|
|
|
return signatureResult;
|
|
|
|
}
|
|
|
|
|
2015-01-29 13:27:48 -05:00
|
|
|
public PendingIntent getPendingIntent() {
|
|
|
|
return pendingIntent;
|
|
|
|
}
|
|
|
|
|
2015-01-29 13:01:44 -05:00
|
|
|
public void setSignatureResult(OpenPgpSignatureResult signatureResult) {
|
|
|
|
this.signatureResult = signatureResult;
|
|
|
|
}
|
|
|
|
|
2015-01-29 13:27:48 -05:00
|
|
|
public void setPendingIntent(PendingIntent pendingIntent) {
|
|
|
|
this.pendingIntent = pendingIntent;
|
|
|
|
}
|
|
|
|
|
2015-01-29 13:01:44 -05:00
|
|
|
public OpenPgpError getError() {
|
|
|
|
return error;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setError(OpenPgpError error) {
|
|
|
|
this.error = error;
|
|
|
|
}
|
|
|
|
|
2015-01-30 10:10:47 -05:00
|
|
|
public boolean hasOutputData() {
|
|
|
|
return outputData != null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setOutputData(MimeBodyPart outputData) {
|
|
|
|
this.outputData = outputData;
|
|
|
|
}
|
|
|
|
|
|
|
|
public MimeBodyPart getOutputData() {
|
|
|
|
return outputData;
|
|
|
|
}
|
|
|
|
|
2015-01-29 13:01:44 -05:00
|
|
|
public boolean wasEncrypted() {
|
|
|
|
return wasEncrypted;
|
|
|
|
}
|
2015-01-30 10:10:47 -05:00
|
|
|
|
|
|
|
public void setWasEncrypted(boolean wasEncrypted) {
|
|
|
|
this.wasEncrypted = wasEncrypted;
|
|
|
|
}
|
|
|
|
|
2015-01-29 13:01:44 -05:00
|
|
|
}
|