diff options
author | Hoà V. DINH <dinh.viet.hoa@gmail.com> | 2014-08-02 17:51:40 -0700 |
---|---|---|
committer | Hoà V. DINH <dinh.viet.hoa@gmail.com> | 2014-08-02 17:51:40 -0700 |
commit | 3db6e0e46595a617468cf239eae9fe1978e60651 (patch) | |
tree | 6c97ad9f4ac89b24c7cc65aea356e8aff178c120 /src/core/rfc822/MCAttachment.h | |
parent | 085e89548ed3acc377b21e82bf822dad9836839e (diff) | |
parent | c1efc1d44b0a315b17701aed28c7de096b413337 (diff) |
Merge pull request #814 from foxinushka/feature/attachment-extra-parameters
Added extra parameters to attachment
Diffstat (limited to 'src/core/rfc822/MCAttachment.h')
-rw-r--r-- | src/core/rfc822/MCAttachment.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/rfc822/MCAttachment.h b/src/core/rfc822/MCAttachment.h index 7dd15b89..069688f2 100644 --- a/src/core/rfc822/MCAttachment.h +++ b/src/core/rfc822/MCAttachment.h @@ -29,6 +29,11 @@ namespace mailcore { virtual Data * data(); virtual String * decodedString(); + virtual void setContentTypeParameter(String * name, String * value); + virtual void removeContentTypeParameter(String * name); + virtual String * contentTypeParameterValueForName(String *name); + virtual Array * allContentTypeParametersNames(); + public: // subclass behavior Attachment(Attachment * other); virtual String * description(); @@ -39,6 +44,8 @@ namespace mailcore { private: Data * mData; + HashMap * mContentTypeParameters; + HashMap * mlcContentTypeParameters; void init(); static void fillMultipartSubAttachments(AbstractMultipart * multipart, struct mailmime * mime); static AbstractPart * attachmentsWithMIMEWithMain(struct mailmime * mime, bool isMain); @@ -46,6 +53,7 @@ namespace mailcore { static MessagePart * attachmentWithMessageMIME(struct mailmime * mime); static Encoding encodingForMIMEEncoding(struct mailmime_mechanism * mechanism, int defaultMimeEncoding); static HashMap * readMimeTypesFile(String * filename); + void setContentTypeParameters(HashMap * parameters); }; } |