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.MessagingException;
|
|
|
|
import com.fsck.k9.mail.internet.MimeBodyPart;
|
|
|
|
import org.openintents.openpgp.OpenPgpError;
|
|
|
|
import org.openintents.openpgp.OpenPgpSignatureResult;
|
|
|
|
|
|
|
|
|
2015-01-30 08:51:44 -05:00
|
|
|
public class OpenPgpResultAnnotation extends MimeBodyPart {
|
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-29 13:01:44 -05:00
|
|
|
|
2015-01-30 08:51:44 -05:00
|
|
|
public OpenPgpResultAnnotation(boolean wasEncrypted) throws MessagingException {
|
2015-01-29 13:01:44 -05:00
|
|
|
this.wasEncrypted = wasEncrypted;
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean wasEncrypted() {
|
|
|
|
return wasEncrypted;
|
|
|
|
}
|
|
|
|
}
|