2015-01-14 03:56:57 -05:00
|
|
|
package com.fsck.k9.mailstore;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
2015-02-06 13:57:30 -05:00
|
|
|
import android.app.PendingIntent;
|
|
|
|
|
2015-01-14 03:56:57 -05:00
|
|
|
import com.fsck.k9.mail.Message;
|
2015-02-06 14:03:33 -05:00
|
|
|
import com.fsck.k9.mail.Part;
|
2015-01-29 10:10:03 -05:00
|
|
|
import org.openintents.openpgp.OpenPgpError;
|
2015-01-27 06:55:47 -05:00
|
|
|
import org.openintents.openpgp.OpenPgpSignatureResult;
|
2015-01-14 03:56:57 -05:00
|
|
|
|
|
|
|
|
|
|
|
public class MessageViewInfo {
|
|
|
|
public final Message message;
|
2015-01-28 08:35:18 -05:00
|
|
|
public final List<MessageViewContainer> containers;
|
2015-01-14 03:56:57 -05:00
|
|
|
|
2015-01-27 06:55:47 -05:00
|
|
|
|
2015-01-28 08:35:18 -05:00
|
|
|
public MessageViewInfo(List<MessageViewContainer> containers, Message message) {
|
|
|
|
this.containers = containers;
|
|
|
|
this.message = message;
|
|
|
|
}
|
|
|
|
|
2015-01-27 06:55:47 -05:00
|
|
|
|
2015-02-06 13:57:30 -05:00
|
|
|
public static class MessageViewContainer {
|
|
|
|
public final String text;
|
2015-02-06 14:03:33 -05:00
|
|
|
public final Part rootPart;
|
2015-02-06 13:57:30 -05:00
|
|
|
public final List<AttachmentViewInfo> attachments;
|
|
|
|
public final boolean encrypted;
|
|
|
|
public final OpenPgpSignatureResult signatureResult;
|
|
|
|
public final OpenPgpError pgpError;
|
|
|
|
public final PendingIntent pgpPendingIntent;
|
2015-01-27 06:55:47 -05:00
|
|
|
|
2015-02-06 14:03:33 -05:00
|
|
|
MessageViewContainer(String text, Part rootPart, List<AttachmentViewInfo> attachments) {
|
|
|
|
this(text, rootPart, attachments, null, null, false, null);
|
2015-01-27 06:55:47 -05:00
|
|
|
}
|
|
|
|
|
2015-02-06 14:03:33 -05:00
|
|
|
MessageViewContainer(String text, Part rootPart, List<AttachmentViewInfo> attachments,
|
|
|
|
OpenPgpSignatureResult signatureResult, OpenPgpError pgpError, boolean encrypted,
|
|
|
|
PendingIntent pgpPendingIntent) {
|
2015-01-27 06:55:47 -05:00
|
|
|
this.text = text;
|
2015-02-06 14:03:33 -05:00
|
|
|
this.rootPart = rootPart;
|
2015-01-27 06:55:47 -05:00
|
|
|
this.attachments = attachments;
|
|
|
|
this.signatureResult = signatureResult;
|
2015-01-29 10:10:03 -05:00
|
|
|
this.pgpError = pgpError;
|
2015-01-28 05:30:29 -05:00
|
|
|
this.encrypted = encrypted;
|
|
|
|
this.pgpPendingIntent = pgpPendingIntent;
|
2015-01-27 06:55:47 -05:00
|
|
|
}
|
|
|
|
}
|
2015-01-14 03:56:57 -05:00
|
|
|
}
|