|
|
@ -11,11 +11,63 @@ void pEpViewerInterface::convert_pEpMessage_to_mMessage(message m) |
|
|
|
message pEpViewerInterface::convert_mMessage_to_pEpMessage() |
|
|
|
{ |
|
|
|
message m; |
|
|
|
pEp_identity from; |
|
|
|
from.address=mMessage->from()->asUnicodeString().toLatin1().data(); |
|
|
|
m.from=&from; |
|
|
|
|
|
|
|
return m; |
|
|
|
|
|
|
|
m.dir=0; |
|
|
|
m.id=""; // UTF-8 string of message ID
|
|
|
|
m.shortmsg=""; // UTF-8 string of short message
|
|
|
|
m.longmsg=""; // UTF-8 string of long message (plain)
|
|
|
|
m.longmsg_formatted=""; // UTF-8 string of long message (formatted)
|
|
|
|
|
|
|
|
bloblist_t attachments; |
|
|
|
m.attachments=&attachments; // blobs with attachements
|
|
|
|
|
|
|
|
m.rawmsg_ref=""; // reference to raw message data
|
|
|
|
m.rawmsg_size=0; // size of raw message data
|
|
|
|
|
|
|
|
timestamp sent; |
|
|
|
m.sent=&sent; // when the message is sent
|
|
|
|
|
|
|
|
timestamp recv; |
|
|
|
m.recv=&recv; // when the message is received
|
|
|
|
|
|
|
|
pEp_identity from; |
|
|
|
m.from=&from; // whom the message is from
|
|
|
|
m.from->address=mMessage->from()->asUnicodeString().toLatin1().data(); |
|
|
|
|
|
|
|
identity_list to; |
|
|
|
m.to=&to; // whom the message is to
|
|
|
|
|
|
|
|
pEp_identity recv_by; |
|
|
|
m.recv_by=&recv_by; // via which identity the message is received
|
|
|
|
|
|
|
|
identity_list cc; |
|
|
|
m.cc=&cc; // whom a CC is being sent
|
|
|
|
|
|
|
|
identity_list bcc; |
|
|
|
m.bcc=&bcc; // whom a BCC is being sent
|
|
|
|
|
|
|
|
identity_list reply_to; |
|
|
|
m.reply_to=&reply_to; // where a reply should go to
|
|
|
|
|
|
|
|
stringlist_t in_reply_to; |
|
|
|
m.in_reply_to=&in_reply_to; // list of UTF-8 strings with MessageIDs of refering messages
|
|
|
|
|
|
|
|
/*
|
|
|
|
struct _message *refering_msg_ref; // reference to refering message
|
|
|
|
stringlist_t *references; // list of UTF-8 strings with references
|
|
|
|
struct _message_ref_list *refered_by; // list of references to messages being
|
|
|
|
// refered
|
|
|
|
stringlist_t *keywords; // list of UTF-8 strings with keywords
|
|
|
|
char *comments; // UTF-8 string with comments
|
|
|
|
stringpair_list_t *opt_fields; // optional fields
|
|
|
|
PEP_enc_format enc_format; // format of encrypted data
|
|
|
|
char* _sender_fpr; // INTERNAL USE ONLY - fingerprint of
|
|
|
|
// sending signer.
|
|
|
|
// (read_only to the outside)
|
|
|
|
*/ |
|
|
|
|
|
|
|
/* QByteArray type;
|
|
|
|
QByteArray pgpText; |
|
|
|
|
|
|
|