Changeset View
Changeset View
Standalone View
Standalone View
mimetreeparser/src/bodyformatter/applicationpkcs7mime.cpp
Show All 39 Lines | |||||
40 | const Interface::BodyPartFormatter *ApplicationPkcs7MimeBodyPartFormatter::create() | 40 | const Interface::BodyPartFormatter *ApplicationPkcs7MimeBodyPartFormatter::create() | ||
41 | { | 41 | { | ||
42 | if (!self) { | 42 | if (!self) { | ||
43 | self = new ApplicationPkcs7MimeBodyPartFormatter(); | 43 | self = new ApplicationPkcs7MimeBodyPartFormatter(); | ||
44 | } | 44 | } | ||
45 | return self; | 45 | return self; | ||
46 | } | 46 | } | ||
47 | 47 | | |||
48 | Interface::MessagePart::Ptr ApplicationPkcs7MimeBodyPartFormatter::process(Interface::BodyPart &part) const | 48 | MessagePart::Ptr ApplicationPkcs7MimeBodyPartFormatter::process(Interface::BodyPart &part) const | ||
49 | { | 49 | { | ||
50 | KMime::Content *node = part.content(); | 50 | KMime::Content *node = part.content(); | ||
51 | 51 | | |||
52 | if (node->head().isEmpty()) { | 52 | if (node->head().isEmpty()) { | ||
53 | return MessagePart::Ptr(); | 53 | return MessagePart::Ptr(); | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | const auto smimeCrypto = QGpgME::smime(); | 56 | const auto smimeCrypto = QGpgME::smime(); | ||
▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines |