diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-05 10:39:32 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-06 17:21:01 +0200 |
commit | 01594e68275a09c67b5ee258e2af86598118a6a0 (patch) | |
tree | 4f859815f6455906bb656f9cc27ba5d6e4111599 /framework/src/domain/composercontroller.h | |
parent | 481cb9f600caf3f45596bf78b5ba2bd07007969c (diff) | |
download | kube-01594e68275a09c67b5ee258e2af86598118a6a0.tar.gz kube-01594e68275a09c67b5ee258e2af86598118a6a0.zip |
Port to gpgme only.
QGpgme and Gpgmepp are not readily available, the cmake files buggy, the
buildsystem horrendous and generally just difficult to build on windows.
Given that all they are is a wrapper around gpgme, we're better of
without all the indirections.
What we loose is:
* QGpgme moved the work to separate threads (but we then blocked
anyways), something that we can just do in our own code should we want to.
* QGpgme has a function to prettify dn's that was used to show the
signer. Also something we could bring back should we need to (don't know
where it is useful atm.)
Ported messagepart to gpgme
Almost there
Moved the crypto bits to a separate file
All gpg code is in one place.
All tests passing
Use error codes
Cleanup
Diffstat (limited to 'framework/src/domain/composercontroller.h')
-rw-r--r-- | framework/src/domain/composercontroller.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/src/domain/composercontroller.h b/framework/src/domain/composercontroller.h index 8a831ed5..0d12fcce 100644 --- a/framework/src/domain/composercontroller.h +++ b/framework/src/domain/composercontroller.h | |||
@@ -65,7 +65,7 @@ class KUBE_EXPORT ComposerController : public Kube::Controller | |||
65 | KUBE_CONTROLLER_PROPERTY(KMime::Message::Ptr, ExistingMessage, existingMessage) | 65 | KUBE_CONTROLLER_PROPERTY(KMime::Message::Ptr, ExistingMessage, existingMessage) |
66 | KUBE_CONTROLLER_PROPERTY(Sink::ApplicationDomain::Mail, ExistingMail, existingMail) | 66 | KUBE_CONTROLLER_PROPERTY(Sink::ApplicationDomain::Mail, ExistingMail, existingMail) |
67 | 67 | ||
68 | KUBE_CONTROLLER_PROPERTY(/*std::vector<MailCrypto::Key>*/QVariant, PersonalKeys, personalKeys) | 68 | KUBE_CONTROLLER_PROPERTY(/*std::vector<Crypto::Key>*/QVariant, PersonalKeys, personalKeys) |
69 | KUBE_CONTROLLER_PROPERTY(bool, FoundPersonalKeys, foundPersonalKeys) | 69 | KUBE_CONTROLLER_PROPERTY(bool, FoundPersonalKeys, foundPersonalKeys) |
70 | 70 | ||
71 | KUBE_CONTROLLER_LISTCONTROLLER(to) | 71 | KUBE_CONTROLLER_LISTCONTROLLER(to) |
@@ -109,7 +109,7 @@ private: | |||
109 | void setMessage(const QSharedPointer<KMime::Message> &msg); | 109 | void setMessage(const QSharedPointer<KMime::Message> &msg); |
110 | void addAttachmentPart(KMime::Content *partToAttach); | 110 | void addAttachmentPart(KMime::Content *partToAttach); |
111 | KMime::Message::Ptr assembleMessage(); | 111 | KMime::Message::Ptr assembleMessage(); |
112 | std::vector<MailCrypto::Key> getRecipientKeys(); | 112 | std::vector<Crypto::Key> getRecipientKeys(); |
113 | 113 | ||
114 | QScopedPointer<Completer> mRecipientCompleter; | 114 | QScopedPointer<Completer> mRecipientCompleter; |
115 | QScopedPointer<Selector> mIdentitySelector; | 115 | QScopedPointer<Selector> mIdentitySelector; |